zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.38k stars 3k forks source link

`extend_comment_on_newline` for zig multiline strings #19839

Open xdBronch opened 1 week ago

xdBronch commented 1 week ago

Check for existing issues

Describe the feature

zig has multiline string literals which are syntactically similar to comments but instead using backslashes, it would be nice if there was an option to extend these on newlines like how comments are done today

If applicable, add mockups / screenshots to help present your vision of the feature

No response

xdBronch commented 5 days ago

would it be unreasonable to just add \\ to zigs line_comments in the config.toml? it feels a bit wrong since obviously its not a comment but it seems to work fine. does this affect anything else?