VAR/END_VAR scope when as parts of other identifiers
msftrncs opened this issue · comments
Carl Morris commented
Sergey Romanov commented
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.
Carl Morris commented
vscode-st/syntaxes/st.tmLanguage.json
Lines 220 to 226 in f33afa2
"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')
Sergey Romanov commented
Carl Morris commented