castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
425 stars 23 forks source link

string arrays as default keyword arguments throws coloring off #271

Closed johrstrom closed 1 year ago

johrstrom commented 1 year ago

When an array of strings is given as the default keyword argument to a function, the vscode extension here is coloring the rest of the file as a string.

1 string in the array is working fine image

2 or more strings throws this off. Now the rest of the file is colored to look like a string. This is the unexpected behavior this ticket concerns with.

image

Using %w for literal words works as you'd expect.

image

(I'm not sure if this is an issue for this repository or the actual language server, but I assume you can move it as appropriate.)

I'm using version 0.24.0.

castwide commented 1 year ago

This is most likely an issue with another extension or VS Code itself. The Solargraph extension does not perform coloring.

johrstrom commented 1 year ago

OK - Thanks for the response! I'll go ahead and close if that's the case.