forked from Mirrors/helix
Update grammar for godot (#5944)
* update grammar for gdscript. * add comment injections for gdscript. * add indent for gdscript * add file-type support for godot-resourcepull/5/head
parent
ef221abe83
commit
c71b4c5579
@ -0,0 +1,35 @@
|
||||
[
|
||||
(if_statement)
|
||||
(for_statement)
|
||||
(while_statement)
|
||||
(match_statement)
|
||||
(pattern_section)
|
||||
|
||||
(function_definition)
|
||||
(constructor_definition)
|
||||
(class_definition)
|
||||
(enum_definition)
|
||||
|
||||
(dictionary (_))
|
||||
(array (_))
|
||||
] @indent
|
||||
|
||||
[
|
||||
(if_statement)
|
||||
(for_statement)
|
||||
(while_statement)
|
||||
(match_statement)
|
||||
(pattern_section)
|
||||
|
||||
(function_definition)
|
||||
(class_definition)
|
||||
] @extend
|
||||
|
||||
|
||||
[
|
||||
(return_statement)
|
||||
(break_statement)
|
||||
(continue_statement)
|
||||
(pass_statement)
|
||||
] @extend.prevent-once
|
||||
|
@ -0,0 +1,2 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
@ -0,0 +1,2 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
Loading…
Reference in New Issue