mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-13 22:37:21 +03:00
451b299c1d
"elif" keyword, handling dnl comments better, and marking trailing whitespace. Patch by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5506 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
32 lines
541 B
Plaintext
32 lines
541 B
Plaintext
## Here is an example for Autoconf.
|
|
|
|
syntax "autoconf" "\.(ac|m4)$"
|
|
|
|
# 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 black "^\*\*\*.*"
|
|
|
|
# Brackets:
|
|
color magenta "\[|\]|\(|\)"
|
|
|
|
# Comments:
|
|
color blue "^[[:blank:]]*#.*" "\<dnl.*"
|
|
|
|
# Trailing whitespace:
|
|
color ,green "[[:space:]]+$"
|