mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 21:01:24 +03:00
3e1fc6385b
The different color will make the name stand out, as it should, instead of looking the same as all the regex strings.
33 lines
555 B
Plaintext
33 lines
555 B
Plaintext
## Here is an example for Autoconf.
|
|
|
|
syntax autoconf "\.(ac|m4)$"
|
|
comment "#"
|
|
|
|
# Keywords:
|
|
color yellow "\<(if|test|then|elif|else|fi|for|in|do|done)\>"
|
|
color yellow "(=|!=|&&|\|\|)"
|
|
|
|
# Macros:
|
|
color cyan "\<[[:upper:]_[:digit:]]+\>"
|
|
|
|
# Version numbers:
|
|
color red "\<[-_.0-9]+\>"
|
|
|
|
# Strings:
|
|
color red "\"[^"]*\"" "\'[^']*\'"
|
|
|
|
# Backticks:
|
|
color green "`[^`]*`"
|
|
|
|
# Error lines:
|
|
color brightred "^\*\*\*.*"
|
|
|
|
# Brackets:
|
|
color magenta "\[|\]|\(|\)"
|
|
|
|
# Comments:
|
|
color blue "^[[:blank:]]*#.*" "\<dnl.*"
|
|
|
|
# Trailing whitespace:
|
|
color ,green "[[:space:]]+$"
|