Closed msftrncs closed 3 years ago
That is strange. Here is the code
let regEx = new RegExp(`\\b(?:${functions.join('|')})\\b\\s+\\(`, "ig");
It should move only functions.
The problem was in function
array. Last element was empty.
Looks like VAR_*
is not considered at all. Also fixed that.
New version released 1.9.1 with 2 fixes.
The formatter (capitalizer) has a couple issues, and exposes a grammar issue.
when formatted:
Note there are multiple issues.
END_TYPE
so it moved it. 'keywords' and the 'end' block keywords should be excluded from this treatment.,The TM grammar changed the scope of the keyword
END_TYPE
when it has a parenthesis behind it. SinceEND_TYPE
is a rigid keyword, it should appear very high in the processing in the grammar file, above anything that utilizes a more generic form.The
VAR_
keywords, but notVAR
orEND_VAR
, seem to be missing from the capitalization behavior. This is not shown above.