diff --git a/configurations/GDScript.tmLanguage.json b/configurations/GDScript.tmLanguage.json index 6332cd7..e8eefa5 100644 --- a/configurations/GDScript.tmLanguage.json +++ b/configurations/GDScript.tmLanguage.json @@ -96,7 +96,7 @@ }, "keywords": { - "match": "\\b(?i:elif|else|for|if|while|break|continue|pass|in|is|return|onready|setget|enum|match|breakpoint|tool|extends|signal)\\b", + "match": "\\b(?i:elif|else|for|if|while|break|continue|pass|in|is|return|onready|setget|enum|match|breakpoint|tool|extends|signal|class)\\b", "name": "keyword.control.gdscript" }, "letter": { @@ -271,4 +271,4 @@ ] } } -} \ No newline at end of file +} diff --git a/configurations/snippets.json b/configurations/snippets.json index 5616194..f53850c 100644 --- a/configurations/snippets.json +++ b/configurations/snippets.json @@ -145,7 +145,7 @@ "define onready variables": { "prefix": "onready", "body": [ - "onready var ${1:name}${2: = default}${3: setget }" + "onready var ${1:name} = get_node($2)" ] }, @@ -193,4 +193,4 @@ "set_process_input(true)" ] } -} \ No newline at end of file +}