2015-08-29 19:52:03 +00:00
|
|
|
## Here is an example for Autoconf.
|
|
|
|
|
2015-12-23 10:54:40 +00:00
|
|
|
syntax "autoconf" "\.(ac|m4)$"
|
2015-08-29 19:52:03 +00:00
|
|
|
|
|
|
|
# Keywords:
|
2015-12-23 10:54:40 +00:00
|
|
|
color yellow "\<(if|test|then|elif|else|fi|for|in|do|done)\>"
|
2015-08-29 19:52:03 +00:00
|
|
|
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:
|
2015-12-23 10:54:40 +00:00
|
|
|
color blue "^[[:blank:]]*#.*" "\<dnl.*"
|
|
|
|
|
|
|
|
# Trailing whitespace:
|
|
|
|
color ,green "[[:space:]]+$"
|