1. Add enum and match keywords highlight support

2. Shorthand if else support fix #17
3. Fix compains with used variables in array and dictionary fix #18
4. Fix error syntax check with keywords in strings fix #12
5. Add syntax check for end of expression
This commit is contained in:
geequlim
2017-05-06 23:25:39 +08:00
parent f40f091421
commit 0f7d4902fd
3 changed files with 108 additions and 78 deletions

View File

@@ -20,7 +20,7 @@
"name": "comment.line.number-sign.gdscript"
},
{
"match": "\\b(?i:elif|else|for|if|while|break|continue|pass|and|in|is|not|or|return|onready|setget|breakpoint)\\b",
"match": "\\b(?i:elif|else|for|if|while|break|continue|pass|and|in|is|not|or|return|onready|setget|enum|match|breakpoint)\\b",
"name": "keyword.control.gdscript"
},
{

View File

@@ -20,7 +20,7 @@
"name": "comment.line.number-sign.gdscript"
},
{
"match": "\\b(?i:elif|else|for|if|while|break|continue|pass|and|in|is|not|or|return|onready|setget|breakpoint)\\b",
"match": "\\b(?i:elif|else|for|if|while|break|continue|pass|and|in|is|not|or|return|onready|setget|enum|match|breakpoint)\\b",
"name": "keyword.control.gdscript"
},
{