syntaxes: change some unneeded 'icolor' commands to 'color' commands

master
Benno Schulenberg 2019-08-17 17:01:19 +02:00
parent 48bff32ee3
commit f2f367ba9c
9 changed files with 11 additions and 11 deletions

View File

@ -8,7 +8,7 @@ color red "\<[A-Z_]{2,}\>"
color brightgreen "\.(data|subsection|text)" color brightgreen "\.(data|subsection|text)"
color green "\.(align|file|globl|global|hidden|section|size|type|weak)" color green "\.(align|file|globl|global|hidden|section|size|type|weak)"
color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)" color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)"
icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" color brightred "^[[:space:]]*[.0-9A-Za-z_]*:"
color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
# Strings. # Strings.

View File

@ -6,7 +6,7 @@ magic "awk script"
comment "#" comment "#"
# Records. # Records.
icolor brightred "\$[0-9A-Z_!@#$*?-]+" color brightred "\$[0-9A-Za-z_!@#$*?-]+"
# Awk-set variables. # Awk-set variables.
color red "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>" color red "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>"
color red "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>" color red "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>"

View File

@ -3,7 +3,7 @@
syntax cmake "(CMakeLists\.txt|\.cmake)$" syntax cmake "(CMakeLists\.txt|\.cmake)$"
comment "#" comment "#"
icolor green "^[[:space:]]*[A-Z0-9_]+" color green "^[[:space:]]*[0-9A-Za-z_]+"
icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>" icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>"
icolor brightgreen "^[[:space:]]*((else|end)?if|else|(end)?while|(end)?foreach|break)\>" icolor brightgreen "^[[:space:]]*((else|end)?if|else|(end)?while|(end)?foreach|break)\>"
@ -12,7 +12,7 @@ color brightgreen "[[:space:]](OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS
icolor brightred "^[[:space:]]*((end)?(function|macro)|return)" icolor brightred "^[[:space:]]*((end)?(function|macro)|return)"
icolor cyan start="\$(\{|ENV\{)" end="\}" icolor cyan start="\$(ENV)?\{" end="\}"
color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>" color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>"
color brightblue "(^|[[:space:]])#.*" color brightblue "(^|[[:space:]])#.*"

View File

@ -34,7 +34,7 @@ icolor yellow "\<(.or.|repeat|select case|then|where|while)\>"
icolor magenta "\<(continue|cycle|exit|go?to|result|return)\>" icolor magenta "\<(continue|cycle|exit|go?to|result|return)\>"
# Strings. # Strings.
icolor yellow "<[^= ]*>" ""(\\.|[^"])*"" color yellow "<[^= ]*>" ""(\\.|[^"])*""
# Comments. # Comments.
icolor blue "!.*" color blue "!.*"

View File

@ -44,7 +44,7 @@ color brightmagenta "\<(false|nil|true)\>"
# Decimal and hexadecimal numbers # Decimal and hexadecimal numbers
color red "\<[0-9]+(\.[0-9]*)?([Ee][+-]?[0-9]+)?\>" color red "\<[0-9]+(\.[0-9]*)?([Ee][+-]?[0-9]+)?\>"
icolor red "\<0x[0-9a-f]+(\.[0-9a-f]*)?(p[+-]?[0-9]+)?\>" color red "\<0x[0-9A-Fa-f]+(\.[0-9A-Fa-f]*)?([Pp][+-]?[0-9]+)?\>"
# Brackets # Brackets
color brightmagenta "\(|\)|\[|\]|\{|\}" color brightmagenta "\(|\)|\[|\]|\{|\}"

View File

@ -4,6 +4,6 @@ syntax mgp "\.mgp$"
header "^%include.*" header "^%include.*"
comment "#" comment "#"
icolor green "^%[a-z].*" color green "^%[A-Za-z].*"
color cyan "(^|[[:space:]])(#|%%).*" color cyan "(^|[[:space:]])(#|%%).*"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -7,7 +7,7 @@ linter pyflakes
comment "#" comment "#"
# Function definitions. # Function definitions.
icolor brightblue "def [0-9A-Z_]+" color brightblue "def [0-9A-Za-z_]+"
# Keywords. # Keywords.
color brightcyan "\<(and|as|assert|async|await|break|class|continue)\>" color brightcyan "\<(and|as|assert|async|await|break|class|continue)\>"
color brightcyan "\<(def|del|elif|else|except|finally|for|from)\>" color brightcyan "\<(def|del|elif|else|except|finally|for|from)\>"

View File

@ -12,7 +12,7 @@ color yellow "\<(next|nil|not|or|redo|rescue|retry|return|self|super|then|true|u
# Constants. # Constants.
color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*"
# Ruby "symbols". # Ruby "symbols".
icolor magenta "([ ]|^):[0-9A-Z_]+\>" color magenta "([ ]|^):[0-9A-Za-z_]+\>"
# Some unique things we want to stand out. # Some unique things we want to stand out.
color brightyellow "\<(__FILE__|__LINE__)\>" color brightyellow "\<(__FILE__|__LINE__)\>"
# Regular expressions. # Regular expressions.

View File

@ -5,6 +5,6 @@ magic "(La)?TeX document"
linter chktex -v0 -q -I linter chktex -v0 -q -I
comment "%" comment "%"
icolor green "\\.|\\[A-Z]*" color green "\\.|\\[A-Za-z]*"
color magenta "[{}]" color magenta "[{}]"
color blue "(^|[^\])%.*" color blue "(^|[^\])%.*"