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