2020-04-20 17:15:43 +00:00
|
|
|
## Syntax highlighting for Autoconf.
|
2015-08-29 19:52:03 +00:00
|
|
|
|
2020-09-14 17:37:45 +00:00
|
|
|
## Original author: Benno Schulenberg
|
|
|
|
## License: GPL version 3 or newer
|
|
|
|
|
2018-02-07 10:25:46 +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)\>"
|
2020-04-21 10:47:08 +00:00
|
|
|
color yellow "=|!=|&&|\|\|"
|
2015-08-29 19:52:03 +00:00
|
|
|
|
|
|
|
# Macros:
|
|
|
|
color cyan "\<[[:upper:]_[:digit:]]+\>"
|
|
|
|
|
|
|
|
# Version numbers:
|
|
|
|
color red "\<[-_.0-9]+\>"
|
|
|
|
|
|
|
|
# Strings:
|
2020-07-27 08:47:27 +00:00
|
|
|
color red ""[^"]*"" "'[^']*'"
|
2015-08-29 19:52:03 +00:00
|
|
|
|
|
|
|
# Backticks:
|
|
|
|
color green "`[^`]*`"
|
|
|
|
|
|
|
|
# Error lines:
|
2021-04-27 09:18:41 +00:00
|
|
|
color brightred "^[[:blank:]]*\*\*\*.*"
|
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:]]+$"
|