From 198a1650c8f37e1e06b536d35ca8549b29d41b6e Mon Sep 17 00:00:00 2001 From: sulincix Date: Sat, 28 Oct 2023 20:34:20 +0000 Subject: [PATCH] Create godot.nanorc --- godot.nanorc | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 godot.nanorc diff --git a/godot.nanorc b/godot.nanorc new file mode 100644 index 0000000..2162407 --- /dev/null +++ b/godot.nanorc @@ -0,0 +1,39 @@ +## Syntax highlighting for Godot. + +syntax gdscript "\.gd$" +header "" +magic "Godot script" +comment "#" + +# Function definitions. +color brightblue "func [0-9A-Za-z_]+" +# Keywords. +color brightred "\<(and|as|assert|async|await|break|class|continue)\>" +color brightred "\<(func|del|elif|else|except|finally|for|from)\>" +color brightred "\<(global|if|import|in|is|lambda|nonlocal|not|or)\>" +color brightred "\<(pass|raise|return|try|while|with|yield|extends)\>" + +color brightcyan "\<(inline|Input|Array|inline)\>" +color brightcyan "\<(exec|print|call)\>" + +# Special values. +color brightmagenta "\<(False|None|True)\>" + +# Mono-quoted strings. +color brightyellow "'([^'\]|\\.)*'|"([^"\]|\\.)*"|'''|"""" +color normal "'''|"""" +# Comments. +color brightred "(^|[[:blank:]])#.*" +# variable +color brightgreen "\<(var|export|export_category)\>" + + +# Backslash escapes. +color lime "\\($|[\'"abfnrtv]|[0-3]?[0-7]?[0-7]|x[[:xdigit:]]{2})" +color lime "\\(N\{[[:alpha:]]+\}|u[[:xdigit:]]{4}|U[[:xdigit:]]{8})" + +# Reminders. +color brightwhite,yellow "\<(FIXME|TODO|XXX)\>" + +# Trailing whitespace. +color ,green "[[:space:]]+$"