Pārlūkot izejas kodu

Add region blocks as a language scope for themes (#800)

Arron 5 mēneši atpakaļ
vecāks
revīzija
0a3c319879
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      syntaxes/GDScript.tmLanguage.json

+ 5 - 0
syntaxes/GDScript.tmLanguage.json

@@ -74,6 +74,7 @@
 				{ "include": "#square_braces" },
 				{ "include": "#round_braces" },
 				{ "include": "#function_call" },
+				{ "include": "#region"},
 				{ "include": "#comment" },
 				{ "include": "#self" },
 				{ "include": "#func" },
@@ -83,6 +84,10 @@
 				{ "include": "#line_continuation" }
 			]
 		},
+		"region": {
+			"match": "#(end)?region.*$\\n?",
+			"name": "keyword.language.region.gdscript"
+		},
 		"comment": {
 			"match": "(##|#).*$\\n?",
 			"name": "comment.line.number-sign.gdscript",