lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

[Feature request] Case-insensitive string enums/aliases

Open emmericp opened this issue 1 year ago • 0 comments

The World of Warcraft Lua API features an enum for frame positioning that is like:

"LEFT" | "RIGHT" | "TOP" | ...etc

The problem is: it's not case sensitive. Some prefer writing "left" or "Left" instead of "LEFT". Technically even "lEfT" would be accepted.

The problem if we just add all styles of writing the enum it will look bad in autocomplete etc.

So the request is to add a way to say that upper vs. lowercase doesn't matter for an enum.

emmericp avatar Mar 08 '24 18:03 emmericp