
A backslash should not be allowed inside a quoted string unless it is used to escape another character. This fixes https://savannah.gnu.org/bugs/?61389. Bug existed since each of these syntaxes was introduced. (Awk and Fortran do not know include files with names between angled brackets, so those regexes are dropped in the bargain.)
25 строки
587 B
Plaintext
25 строки
587 B
Plaintext
## Syntax highlighting for Guile Scheme.
|
|
|
|
syntax guile "\.scm$"
|
|
header "^#!.*guile"
|
|
comment ";"
|
|
|
|
# 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
|
|
color yellow start="^[[:blank:]]+"" end="[^\]""
|
|
color yellow ""(\\.|[^"\])*""
|
|
# Comments
|
|
color cyan "(^|[[:blank:]]);.*"
|