Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Highlight \ escapes in " strings conspicuously #2

Open
lheckemann opened this issue Sep 30, 2020 · 0 comments
Open

Highlight \ escapes in " strings conspicuously #2

lheckemann opened this issue Sep 30, 2020 · 0 comments

Comments

@lheckemann
Copy link

The only cases where a backslash should usually be found in a double-quote string are before \, ${, n and t. Any other use of \ in a double-quote string will swallow the backslash, and is likely unintentional. A common case is in regexes: nix "\." is equivalent to ".", though that's not likely to be what an expression author means! Thus, I'd suggest highlighting any such backslashes in a conspicuous fashion.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant