mirror of
https://github.com/scopatz/nanorc
synced 2024-11-21 16:15:40 +01:00
Add comments
This commit is contained in:
parent
726c1a50f3
commit
11af806d66
43
genie.nanorc
43
genie.nanorc
@ -1,20 +1,53 @@
|
||||
syntax "Genie" "\.gs$"
|
||||
## Here is an example for Genie.
|
||||
syntax "genie" "\.gs$"
|
||||
|
||||
# Namespace.
|
||||
color magenta "\<(uses|namespace)\>"
|
||||
|
||||
# Data types.
|
||||
color green "\<(bool|byte|char|date|datetime|decimal|double|float|int|long|object|sbyte|short|single|string|ulong|ushort)\>"
|
||||
|
||||
# Definitions.
|
||||
color brightred "\<(const|class|construct|def|delegate|enum|exception|extern|event|final|get|init|inline|interface|override|prop|return|set|static|struct|var|virtual|weak)\>"
|
||||
|
||||
# Keywords.
|
||||
color red "\<(abstract|as|and|break|case|cast|continue|default|delete|div|do|downto|dynamic|else|ensures|except|extern|finally|for|if|implements|in|isa|is|lock|new|not|of|out|or|otherwise|pass|private|raise|raises|readonly|ref|requires|to|try|unless|when|while)\>"
|
||||
|
||||
# Special variables.
|
||||
color brightcyan "\<(self|super)\>"
|
||||
|
||||
# Null value.
|
||||
color brightyellow "\<(null)\>"
|
||||
|
||||
# Boolean.
|
||||
color yellow "\<(false|true)\>"
|
||||
|
||||
# Builtin functions.
|
||||
color cyan "\<(array|assert|dict|list|max|min|print|prop|sizeof|typeof)\>"
|
||||
#color brightmagenta "(?<![\w\.])"
|
||||
|
||||
# Numbers.
|
||||
color brightmagenta "[0-9][0-9\.]*(m|ms|d|h|s|f|F|l|L)?"
|
||||
#color brightmagenta "(?![\w\.])"
|
||||
|
||||
# Regular expression.
|
||||
color brightgreen "/(\\.|[^/])*/"
|
||||
color brightblue ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
|
||||
# Double quoted string.
|
||||
color brightblue ""(\\.|[^"])*""
|
||||
|
||||
# Single quoted string.
|
||||
color brightblue "'(\\.|[^'])*'"
|
||||
|
||||
# Multiline string.
|
||||
color blue start=""""" end="""""
|
||||
|
||||
# Line comment.
|
||||
color yellow "(^|[[:space:]])//.*"
|
||||
icolor yellow start="/\*" end="\*/"
|
||||
|
||||
# Block comment.
|
||||
color yellow start="/\*" end="\*/"
|
||||
|
||||
# Trailing whitespace.
|
||||
color ,green "[[:space:]]+$"
|
||||
|
||||
# Spaces in front or rear of tabs.
|
||||
color ,red " + +| + +"
|
||||
|
Loading…
Reference in New Issue
Block a user