Fix keywords being incorrectly highlighted as function calls (#353)

This commit is contained in:
Daelon Suzuka
2022-04-27 16:16:44 -07:00
committed by GitHub
parent 0835506157
commit fb96098c70
3 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
{
"useTabs": false,
"tabWidth": 4
}

View File

@@ -220,6 +220,9 @@
{
"include": "#keywords"
},
{
"include": "#control_flow"
},
{
"include": "#function-call"
},

View File

@@ -155,6 +155,30 @@ export(test_enum) var enum_variable = test_enum.VALUE_1
# ------------------------------------------------------------------------------
func if_test():
var some_bool := true
while some_bool:
pass
while (some_bool):
pass
if some_bool:
return some_bool
if (some_bool):
return (some_bool)
elif !some_bool:
return !some_bool
elif !(some_bool):
return !(some_bool)
elif (some_bool):
pass
else:
pass
# ------------------------------------------------------------------------------
class InnerClass:
var some_var = 100
var dict = {