1
0
Fork 0
slope-nano-syntax/slope.nanorc

32 lines
712 B
Plaintext

syntax "slope" "\.slo$"
header "^#!.*slo"
comment ";"
# Special forms
color green "\<(lambda|quote|and|or|begin|begin0|filter|list|length|assoc|filter|map|car|cdr|cons)\>"
color red "\<\!\>"
# Defining things
color brightcyan "\<(define|set!|if|cond|load|load-mod|load-mod-file)\>"
# Booleans
color brightyellow "(\#t|\#f)"
# Integers
color brightmagenta "(\b|-)[0-9]+[iL]?\b"
# Floating-point numbers
color brightmagenta "(\b|-)([0-9]+[Ee][-+]?[0-9]+|([0-9]*\.[0-9]+|[0-9]+\.)([Ee][-+]?[0-9]+)?)[i]?\b"))"
# Constants
color blue "\<(PI|E|PHI|sys-args|stdin|stdout|stderr|devnull)\>"
# Strings
color yellow start="^[[:blank:]]+\"" end="[^\]\""
color yellow ""(\\.|[^"])*""
# Comments
color cyan ";.*$"