bash-language-server
bash-language-server copied to clipboard
function and variable names with some word-separating characters are not properly recognized during hinting
Function names such as test:1
and test-1-1
shows up as test
on code hinting.
test_1
shows up properly.
Thanks for reporting this @mike-chen-f8. This is very likely a problem with the underlying tree-sitter grammar. I'll have a look over the weekend 👍
test-1-1
comletion works now. But test:1
does not.
But note that in POSIX sh, naming functions outside [a-zA-Z_][a-zA-Z0-9_]* is undefined.