Benno Schulenberg | 6ff772b | 2015-04-18 13:04:57 +0000 | [diff] [blame] | 1 | ## Here is an example for Guile Scheme. |
| 2 | |
| 3 | syntax "guile" "\.scm$" |
| 4 | header "^#!.*guile" |
| 5 | magic "guile" |
Mike Scalora | 6a2032f | 2016-05-25 22:13:50 +0200 | [diff] [blame] | 6 | comment ";" |
Benno Schulenberg | 6ff772b | 2015-04-18 13:04:57 +0000 | [diff] [blame] | 7 | |
| 8 | # Basic scheme functions |
| 9 | color green "\<(do|if|lambda|let(rec)?|map|unless|when)\>" |
| 10 | # Defining things |
| 11 | color brightcyan "\<define(-macro|-module|-public|-syntax)?\>" |
| 12 | # Quoted symbols |
| 13 | color brightyellow "'\<(\w|-)+\>" |
| 14 | # Chars |
| 15 | color brightmagenta "#\\." |
| 16 | color brightmagenta "#\\\w+\>" |
| 17 | # Booleans |
| 18 | color brightred "(#t|#f)\>" |
| 19 | # Keywords |
| 20 | color blue "#?:(\w|[?-])+" |
| 21 | # Strings |
| 22 | color yellow start="^[[:blank:]]+\"" end="[^\]\"" |
| 23 | color yellow ""(\\.|[^"])*"" |
| 24 | # Comments |
| 25 | color cyan "(^|[[:space:]]);.*$" |