Closed msftrncs closed 3 years ago
If you put all in one line not sure it is fixable. Scope is defined with JSON file, and basically as I understand it, VS Code takes care of scopes, open\close brackets.
"begin": "\\b(?:VAR(?:_(?:INPUT|OUTPUT|IN_OUT|TEMP|GLOBAL|ACCESS|EXTERNAL))?|STRUCT|UNION|PUBLIC|PRIVATE|PROTECTED)\\b",
"end": "\\b(?:END_(?:VAR|STRUCT|UNION))\\b",
(different coloring here, but now the keywords run together are no longer 'keywords')
(different coloring here, but now the keywords run together are no longer 'keywords')
Is that how it supposed to behave? Looks correct to me. You can PR this change.
After Appling correction:
VAR
andEND_VAR
incorrectly scope when run in to other identifiers in certain ordersVAR
does not validate word break at end,END_VAR
does not validate work break at either end.VAR_x
seem to be same asVAR
Looks like the \b is missing from the end of both the begin and end clauses.