[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH] syntax: expand autoconf a bit
From: |
Mike Frysinger |
Subject: |
[Nano-devel] [PATCH] syntax: expand autoconf a bit |
Date: |
Mon, 21 Dec 2015 23:04:19 -0500 |
Handle .m4 files too, add the "elif" keyword, handle dnl comments better,
and mark trailing whitespace.
---
doc/syntax/autoconf.nanorc | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/doc/syntax/autoconf.nanorc b/doc/syntax/autoconf.nanorc
index 5760c3c..13f96a4 100644
--- a/doc/syntax/autoconf.nanorc
+++ b/doc/syntax/autoconf.nanorc
@@ -1,9 +1,9 @@
## Here is an example for Autoconf.
-syntax "autoconf" "\.ac$"
+syntax "autoconf" "\.(ac|m4)$"
# Keywords:
-color yellow "\<(if|test|then|else|fi|for|in|do|done)\>"
+color yellow "\<(if|test|then|elif|else|fi|for|in|do|done)\>"
color yellow "(=|!=|&&|\|\|)"
# Macros:
@@ -25,4 +25,7 @@ color black "^\*\*\*.*"
color magenta "\[|\]|\(|\)"
# Comments:
-color blue "^[[:blank:]]*#.*" "^dnl.*"
+color blue "^[[:blank:]]*#.*" "\<dnl.*"
+
+# Trailing whitespace.
+color ,green "[[:space:]]+$"
--
2.6.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nano-devel] [PATCH] syntax: expand autoconf a bit,
Mike Frysinger <=