2015-08-29 22:52:03 +03:00
|
|
|
## Here is an example for Autoconf.
|
|
|
|
|
2018-02-07 13:25:46 +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:
|
2018-12-16 15:35:48 +03:00
|
|
|
color brightred "^[[:space:]]*\*\*\*.*"
|
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:]]+$"
|