From d6326f609c45f162fbbebe02d9e27ac68b460223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C4=83zvan=20C=2E=20R=C4=83dulescu?= Date: Mon, 20 Mar 2023 07:31:08 +0200 Subject: [PATCH] Highlight all uppercase words for constants & enums Godot v4.x GDScript --- rc/filetype/gdscript.kak | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rc/filetype/gdscript.kak b/rc/filetype/gdscript.kak index 5c3fab66..1dfa2fbc 100644 --- a/rc/filetype/gdscript.kak +++ b/rc/filetype/gdscript.kak @@ -58,8 +58,11 @@ add-highlighter shared/gdscript/code/ regex '\b\d+\.' 0: # functions add-highlighter shared/gdscript/code/ regex _?[a-zA-Z]\w*\s*(?=\() 0:function add-highlighter shared/gdscript/code/ regex (?:func\h+)(_?\w+)(?:<[^>]+?>)?\( 1:function - +# operators add-highlighter shared/gdscript/code/ regex '(?:\+|-|\*|/|%|=|<|>|&|\||\^|~|:=)' 0:operator +# constants & enums +add-highlighter shared/gdscript/code/ regex \b[A-Z0-9_]+\b 0:variable + evaluate-commands %sh{ keywords="as await break breakpoint class class const continue elif else enum extends for func if is match name pass return self signal static super var void while"