PhilippeChab / nwscript-ee-language-server

A NWScript Language Server.
https://marketplace.visualstudio.com/items?itemName=PhilippeChab.nwscript-ee-language-server
MIT License
20 stars 7 forks source link

Add support for r/R string litterals #65

Closed ReachPW closed 10 months ago

ReachPW commented 11 months ago

the nwn_script_comp added a new feature:

https://nwn.beamdog.net/docs/#88819336-8---2023-12-10

Added nwscript support for raw string literals: r".." and R"..", which can also span multiple lines.

The formatter appears to be adding a space between the R and quote. Ie, should be:

R", but formatter formats it to R " which causes problems with the compiler.

PhilippeChab commented 10 months ago

When formatting, the language server simply forwards the file content and the arguments to the clang format executable.

I would recommend playing around with the config to see if there is something that allows string literals of this format.

If nothing seems to do the job, you can always disable formatting for specific patterns, or disable it altogether.