mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 04:41:21 +03:00
7e8ee46c09
Case statements occur a lot in gnulib's m4 files, and 'ifelse' is simply part of the m4 language.
36 lines
652 B
Plaintext
36 lines
652 B
Plaintext
## Syntax highlighting for Autoconf.
|
|
|
|
## Original author: Benno Schulenberg
|
|
## License: GPL version 3 or newer
|
|
|
|
syntax autoconf "\.(ac|m4)$"
|
|
comment "#"
|
|
|
|
# Keywords:
|
|
color yellow "\<(if|test|then|elif|else|fi|case|esac|ifelse|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 "^[[:blank:]]*\*\*\*.*"
|
|
|
|
# Brackets:
|
|
color magenta "\[|\]|\(|\)"
|
|
|
|
# Comments:
|
|
color blue "^[[:blank:]]*#.*" "\<dnl.*"
|
|
|
|
# Trailing whitespace:
|
|
color ,green "[[:space:]]+$"
|