From 1e597eb01017bc526915dc42594bc4706bd7b1b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C4=83zvan=20C=2E=20R=C4=83dulescu?= Date: Sat, 25 Mar 2023 07:14:34 +0200 Subject: [PATCH] fix improper set/get = highlight for Godot v4.x GDScript --- rc/filetype/gdscript.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/filetype/gdscript.kak b/rc/filetype/gdscript.kak index 3b30816f..842a51e7 100644 --- a/rc/filetype/gdscript.kak +++ b/rc/filetype/gdscript.kak @@ -65,8 +65,8 @@ add-highlighter shared/gdscript/code/ regex \b[A-Z_][A-Z0-9_]*\b # annotations add-highlighter shared/gdscript/code/ regex @\w+ 0:attribute # 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 +add-highlighter shared/gdscript/code/ regex \b(get)\h*=\h*(\w+) 1:keyword 2:function +add-highlighter shared/gdscript/code/ regex \b(set)\h*=\h*(\w+) 1:keyword 2:function # keywords and built-ins evaluate-commands %sh{ keywords="as await break breakpoint class class_name const continue elif else enum extends for func if in is match pass return self signal static super var void while"