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)$"
|
2016-05-25 20:13:50 +00:00
|
|
|
comment "#"
|
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:
|
2016-11-23 19:30:46 +00:00
|
|
|
color brightred "^\*\*\*.*"
|
2015-08-29 19:52:03 +00:00
|
|
|
|
|
|
|
# Brackets:
|
|
|
|
color magenta "\[|\]|\(|\)"
|
|
|
|
|
|
|
|
# Comments:
|
2015-12-23 10:54:40 +00:00
|
|
|
color blue "^[[:blank:]]*#.*" "\<dnl.*"
|
|
|
|
|
|
|
|
# Trailing whitespace:
|
|
|
|
color ,green "[[:space:]]+$"
|