commit 02eaa4ce6dc7f887969cd68be5cc42e3c04c9f63
parent 636e9ac3e8786762a9e43008275ed9c70c1a25b8
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 3 Nov 2018 21:20:06 +0100
tweaks: fold a few pairs of regexes into each other
Diffstat:
4 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/syntax/awk.nanorc b/syntax/awk.nanorc
@@ -19,8 +19,7 @@ color green "(\{|\}|\(|\)|\;|\]|\[|\\|<|>|!|=|&|\+|-|\*|%|/|\?:|\^|\|)"
color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>"
color brightyellow "\<(break|continue|return)\>"
# I/O statements.
-color brightgreen "\<(close|getline|next|nextfile|print|printf)\>"
-color brightgreen "\<(system|fflush)\>"
+color brightgreen "\<(close|fflush|getline|next|nextfile|print|printf|system)\>"
# Standard functions.
color magenta "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>"
color magenta "\<(asort|asorti|gensub|gsub|index|length|match)\>"
diff --git a/syntax/cmake.nanorc b/syntax/cmake.nanorc
@@ -15,6 +15,5 @@ icolor brightred "^[[:space:]]*((end)?(function|macro)|return)"
icolor cyan start="\$(\{|ENV\{)" end="\}"
color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>"
-icolor brightblue "^([[:space:]]*)?#.*"
-icolor brightblue "[[:space:]]#.*"
+color brightblue "(^|[[:space:]])#.*"
color ,green "[[:space:]]+$"
diff --git a/syntax/mgp.nanorc b/syntax/mgp.nanorc
@@ -5,6 +5,5 @@ header "^%include.*"
comment "#"
icolor green "^%[a-z].*"
-color cyan "(^|[[:space:]])#.*"
-color cyan "(^|[[:space:]])%%.*"
+color cyan "(^|[[:space:]])(#|%%).*"
color ,green "[[:space:]]+$"
diff --git a/syntax/postgresql.nanorc b/syntax/postgresql.nanorc
@@ -59,9 +59,8 @@ color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>"
color green "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
# Comments.
-color red "#[^{].*" "#$"
+color red "##?[^{].*" "##?$"
color red "--[^{].*" "--$"
-color red "##[^{].*" "##$"
color brightblue "//.*"
color brightblue start="/\*" end="\*/"