1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-25 21:16:38 +03:00

Add unique names (%NodeName) highlight for Godot v4.x GDScript

This commit is contained in:
Răzvan C. Rădulescu 2023-03-22 06:24:23 +02:00
parent 0e298ca62e
commit 1882d76392

View File

@ -67,8 +67,6 @@ add-highlighter shared/gdscript/code/ regex @\w+
# special case of get =, set =
add-highlighter shared/gdscript/code/ regex (get)\h*=\h*(\w+) 1:keyword 2:function
add-highlighter shared/gdscript/code/ regex (set)\h*=\h*(\w+) 1:keyword 2:function
# nodes
add-highlighter shared/gdscript/code/ regex \$[\w/]* 0:module
# keywords and built-ins
evaluate-commands %sh{
keywords="as await break breakpoint class class_name const continue elif else enum extends for func if is match pass return self signal static super var void while"
@ -98,6 +96,9 @@ evaluate-commands %sh{
add-highlighter shared/gdscript/code/ regex '\b($(join "${gdscript_constants}" '|'))\b' 0:keyword
"
}
# nodes
add-highlighter shared/gdscript/code/ regex \$[\w/]+\b 0:module
add-highlighter shared/gdscript/code/ regex \%\w+(?!/)\b 0:string
# Commands
# ‾‾‾‾‾‾‾‾