How to make validator case insensitive? #1706
-
I found that if I defined a function to have output parameters in upper case. When I access its parameter in lower case. It will show validation error "undefined variable". How to fix this issue? Currently if we put function parameter definitions in uppercase in LSP, it can only recognize function parameter definitions in uppercase when user use it |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
hmmmm. have you customized error message. normal error message would be "could not resolve reference to Variable named 'x'"? |
Beta Was this translation helpful? Give feedback.
hmmmm. have you customized error message. normal error message would be "could not resolve reference to Variable named 'x'"?
if you want to do case insensitive scoping check out
https://langium.org/docs/recipes/lexing/case-insensitive-languages/#case-insensitivity-for-identifiers-and-cross-references