2020-04-20 20:15:43 +03:00
|
|
|
## Syntax highlighting for Guile Scheme.
|
2015-04-18 16:04:57 +03:00
|
|
|
|
2018-02-07 13:25:46 +03:00
|
|
|
syntax guile "\.scm$"
|
2015-04-18 16:04:57 +03:00
|
|
|
header "^#!.*guile"
|
2016-05-25 23:13:50 +03:00
|
|
|
comment ";"
|
2015-04-18 16:04:57 +03:00
|
|
|
|
|
|
|
# Basic scheme functions
|
|
|
|
color green "\<(do|if|lambda|let(rec)?|map|unless|when)\>"
|
|
|
|
# Defining things
|
|
|
|
color brightcyan "\<define(-macro|-module|-public|-syntax)?\>"
|
|
|
|
# Quoted symbols
|
|
|
|
color brightyellow "'\<(\w|-)+\>"
|
|
|
|
# Chars
|
|
|
|
color brightmagenta "#\\."
|
|
|
|
color brightmagenta "#\\\w+\>"
|
|
|
|
# Booleans
|
|
|
|
color brightred "(#t|#f)\>"
|
|
|
|
# Keywords
|
|
|
|
color blue "#?:(\w|[?-])+"
|
|
|
|
# Strings
|
2020-07-27 11:47:27 +03:00
|
|
|
color yellow start="^[[:blank:]]+"" end="[^\]""
|
2015-04-18 16:04:57 +03:00
|
|
|
color yellow ""(\\.|[^"])*""
|
|
|
|
# Comments
|
2021-04-27 12:18:41 +03:00
|
|
|
color cyan "(^|[[:blank:]]);.*"
|