Skip to content

Commit d367ec1

Browse files
committed
Added BEGIN to the list of heuristic highlighting keywords.
1 parent 663c701 commit d367ec1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GunWin/Editor/SyntaxHighlighting/HeuristicSyntaxHighlightingGuide.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ private bool IsKeyword(DetailedToken token)
115115
case "ELSE":
116116
case "ELSEIF":
117117
case "ENDIF":
118+
case "BEGIN":
118119
case "END":
119120
case "YIELD":
120121
case "THEN":
@@ -140,6 +141,7 @@ private bool IsKeyword(DetailedToken token)
140141
case "STOP":
141142
case "DO":
142143
case "WHEN":
144+
case "WITH":
143145

144146
// Common literals
145147
case "TRUE":
@@ -212,7 +214,6 @@ private bool IsKeyword(DetailedToken token)
212214
case "DEL":
213215
case "DEF":
214216
case "PUTS":
215-
case "WITH":
216217
case "CLASS":
217218
case "STRUCT":
218219
case "INTERFACE":

0 commit comments

Comments
 (0)