scope string value in VariableDeclarations and EnumDeclarations should be lowercase
genius257 opened this issue · comments
scope property strings in AST objects for VariableDeclaration and EnumDeclaration, have the casing from the extracted string preserved.
This gives no benefit and conversion to lower string is needed for basic match checks.
A good solution is just to make it lower case when extracting the string.
autoit3-pegjs/src/autoit3.pegjs
Line 911 in d0b97d0
autoit3-pegjs/src/autoit3.pegjs
Line 921 in d0b97d0
autoit3-pegjs/src/autoit3.pegjs
Line 938 in d0b97d0
A possible fix is to add: ?.toLowerCase()
on the extractOptional call.
An update for the ts file should also reflect this improvement.