1
1

tweaks: fold a few pairs of regexes into each other

Этот коммит содержится в:
Benno Schulenberg 2018-11-03 21:20:06 +01:00
родитель 636e9ac3e8
Коммит 02eaa4ce6d
4 изменённых файлов: 4 добавлений и 8 удалений

Просмотреть файл

@ -19,8 +19,7 @@ color green "(\{|\}|\(|\)|\;|\]|\[|\\|<|>|!|=|&|\+|-|\*|%|/|\?:|\^|\|)"
color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>" color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>"
color brightyellow "\<(break|continue|return)\>" color brightyellow "\<(break|continue|return)\>"
# I/O statements. # I/O statements.
color brightgreen "\<(close|getline|next|nextfile|print|printf)\>" color brightgreen "\<(close|fflush|getline|next|nextfile|print|printf|system)\>"
color brightgreen "\<(system|fflush)\>"
# Standard functions. # Standard functions.
color magenta "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>" color magenta "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>"
color magenta "\<(asort|asorti|gensub|gsub|index|length|match)\>" color magenta "\<(asort|asorti|gensub|gsub|index|length|match)\>"

Просмотреть файл

@ -15,6 +15,5 @@ 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)?)\>"
icolor brightblue "^([[:space:]]*)?#.*" color brightblue "(^|[[:space:]])#.*"
icolor brightblue "[[:space:]]#.*"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

Просмотреть файл

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

Просмотреть файл

@ -59,9 +59,8 @@ color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>"
color green "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" color green "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
# Comments. # Comments.
color red "#[^{].*" "#$" color red "##?[^{].*" "##?$"
color red "--[^{].*" "--$" color red "--[^{].*" "--$"
color red "##[^{].*" "##$"
color brightblue "//.*" color brightblue "//.*"
color brightblue start="/\*" end="\*/" color brightblue start="/\*" end="\*/"