1
0
mirror of https://github.com/scopatz/nanorc synced 2024-10-31 23:00:00 +01:00
nanorc/vala.nanorc
ThomasR bba53c3940 Rename syntax definitions
Duplicate syntax definition names may cause problems.
Since nano comes with predefined all-lowercase syntax definitions,
we use uppercase letters everywhere to reduce the risk of future conflicts
2016-03-02 20:51:19 +01:00

19 lines
789 B
Plaintext

syntax "Vala" "\.vala$"
color green "\<(float|double|bool|char|int|uint|short|long|void|(un)?signed)\>"
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
color cyan "\<(for|if|while|do|else|case|default|switch|try|throw|catch)\>"
color cyan "\<(inline|typedef|struct|enum|union|extern|static|const)\>"
color cyan "\<(operator|new|delete|return|null)\>"
color cyan "\<(class|override|private|public|signal|this|weak)\>"
color brightred "\<(goto|break|continue)\>"
color brightcyan "\<(true|false)\>"
color blue "\<([0-9]+)\>"
color red "[-+/*=<>?:!~%&|]" "->"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " + +| + +"