Benno Schulenberg | 213294e | 2015-08-29 19:52:03 +0000 | [diff] [blame] | 1 | ## Here is an example for Autoconf. |
| 2 | |
Benno Schulenberg | 451b299 | 2015-12-23 10:54:40 +0000 | [diff] [blame] | 3 | syntax "autoconf" "\.(ac|m4)$" |
Mike Scalora | 6a2032f | 2016-05-25 22:13:50 +0200 | [diff] [blame] | 4 | comment "#" |
Benno Schulenberg | 213294e | 2015-08-29 19:52:03 +0000 | [diff] [blame] | 5 | |
| 6 | # Keywords: |
Benno Schulenberg | 451b299 | 2015-12-23 10:54:40 +0000 | [diff] [blame] | 7 | color yellow "\<(if|test|then|elif|else|fi|for|in|do|done)\>" |
Benno Schulenberg | 213294e | 2015-08-29 19:52:03 +0000 | [diff] [blame] | 8 | color yellow "(=|!=|&&|\|\|)" |
| 9 | |
| 10 | # Macros: |
| 11 | color cyan "\<[[:upper:]_[:digit:]]+\>" |
| 12 | |
| 13 | # Version numbers: |
| 14 | color red "\<[-_.0-9]+\>" |
| 15 | |
| 16 | # Strings: |
| 17 | color red "\"[^"]*\"" "\'[^']*\'" |
| 18 | |
| 19 | # Backticks: |
| 20 | color green "`[^`]*`" |
| 21 | |
| 22 | # Error lines: |
Mike Frysinger | eb68cd1 | 2016-11-23 14:30:46 -0500 | [diff] [blame] | 23 | color brightred "^\*\*\*.*" |
Benno Schulenberg | 213294e | 2015-08-29 19:52:03 +0000 | [diff] [blame] | 24 | |
| 25 | # Brackets: |
| 26 | color magenta "\[|\]|\(|\)" |
| 27 | |
| 28 | # Comments: |
Benno Schulenberg | 451b299 | 2015-12-23 10:54:40 +0000 | [diff] [blame] | 29 | color blue "^[[:blank:]]*#.*" "\<dnl.*" |
| 30 | |
| 31 | # Trailing whitespace: |
| 32 | color ,green "[[:space:]]+$" |