From 48c3ef9ae69778db1da320858d4c1a4cf82cf601 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 13 Apr 2022 00:50:39 +0200 Subject: [PATCH] :wrench: Add gwion.nanorc --- highlighters/gwion.nanorc | 79 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 highlighters/gwion.nanorc diff --git a/highlighters/gwion.nanorc b/highlighters/gwion.nanorc new file mode 100644 index 00000000..b6ed677b --- /dev/null +++ b/highlighters/gwion.nanorc @@ -0,0 +1,79 @@ +## Gwion config for GNU nano +## + +syntax "gwion" "\.gw" + +formatter gwion-nano-fmt +linter gwion -g check + +color bold,mauve "\" +color bold,mauve "\" +color bold,mauve "\" +color bold,mauve "\" +color bold,mauve "\" +color bold,mauve "\" +color bold,mauve "\" +color italic,lightyellow "\" +color bold,mauve "\" +color italic,lightyellow "\" +color italic,mauve "\" +color italic,lightyellow "\" +color italic,mauve "\" +color bold,mauve "\" +color italic,lightyellow "\" +color mauve "\" +color italic,lightyellow "\<__func__\>" +color mauve "\" +color italic,lightyellow "\" +color mauve "\" +color mauve "\" +color mauve "\" +color mauve "\" +color mauve "\" +color mauve "\" +color mauve "\" +color mauve "\" +color mauve "\" +color mauve "\" +comment "#!" + +color italic,red start="#\<(pragma|include|define|ifdef|ifndef|undef|endif|import)\>" end="$" + +color brightred "\<(typeof|spork|fork)\>" +color lightred "\<(second|ms|day|samp|minute|hour)\>" +color brightcyan "\<(maybe)\>" +color cyan "\<(adc|blackhole)\>" + +color brightgreen "\<(try|handle|perform|retry|class|struct|trait|union|enum|fun|operator|funptr|typedef|distinct|new)\>" +color italic,yellow "extends" +color italic,brightgreen "\<(final|abstract)\>" +color lightgreen "@[a-zA-Z]+[a-zA-Z0-9_]*|&[a-zA-Z]+[a-zA-Z0-9_]*" +color green "\<(static|global)\>" +color italic,green "\<(protect|private)\>" +color bold,green "\<(var|late|const)\>" +#color bold,italic,green "\<(const)\>" + +color bold,yellow "\<(for|foreach|repeat|until|if|while|do|else|match|case|when|where|defer)\>" +color magenta "\<(goto|continue|break|return)\>" + +## Comment highlighting +color italic,lightblue start="#!" end="$|!#" + +color italic,white "\?|:|$||\+|\-||\*|/|%|~|^|&|!||^|@|=|<|>|\+" + +color pink "\<(\.[0-9]([0-9]*)|[0-9]+(\.)*)\>" + +#String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +#color brightyellow "(\.|[^"])*"" +#color brightyellow "(\.|[^'])*'" +## +## This string is VERY resource intensive! +#color italic,brightyellow start=""(\.|[^"])*\[[:space:]]*$" end="^(\.|[^"])*"" +color italic,brightyellow start="\"" end="\"" +color italic,lightyellow start="`" end="`" +color lightyellow start="'" end="'" + +## Trailing whitespace +color ,green "[[:space:]]+$" -- 2.43.0