mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2025-12-31 13:48:24 +03:00
Fix keywords being incorrectly highlighted as function calls (#353)
This commit is contained in:
4
syntaxes/.prettierrc.json
Normal file
4
syntaxes/.prettierrc.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"useTabs": false,
|
||||
"tabWidth": 4
|
||||
}
|
||||
@@ -220,6 +220,9 @@
|
||||
{
|
||||
"include": "#keywords"
|
||||
},
|
||||
{
|
||||
"include": "#control_flow"
|
||||
},
|
||||
{
|
||||
"include": "#function-call"
|
||||
},
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user