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

function and variable names with some word-separating characters are not properly recognized during hinting

Open mike-chen-f8 opened this issue 6 years ago • 2 comments

Function names such as test:1 and test-1-1 shows up as test on code hinting.

test_1 shows up properly.

mike-chen-f8 avatar Jun 12 '18 00:06 mike-chen-f8

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 👍

mads-hartmann avatar Jun 12 '18 04:06 mads-hartmann

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.

skovhus avatar May 20 '20 09:05 skovhus