Repository navigation
Prevent escaped character from incurring an extra quotation mark - #201
andyfriesen wants to merge 2 commits into
Conversation
|
There are a couple places where this falls down. In the examples below, the pipe character Parens inside quotes
Expected: Contents of the editor to be Escaped quotes
Expected: Contents of the editor to be I haven't done a bunch of testing. This is just what I was able to find so far. |
|
Perhaps ... what language were you using in your tests? To my recollection, I was using the null grammar. |
|
I'm not sure what's going on. This case is working in every grammar I try. For whatever it's worth, I've tested it on OSX and Windows. |
|
I'll see if I get time to dig into this again. |
|
Would really like to see this merged. This issue is a source of daily frustration. |
|
Indeed |
|
Has this been fixed? |
|
nope |
|
I cloned andyfriesen's repo into my atom/packages directory, but I'm receiving an error: Failed to activate the bracket-matcher package Locally installed core Atom package bracket-matcher is out of date: 0.80.1 installed locally; 0.82.1 included with the version of Atom you're running. Removing the locally installed version may fix this issue. How do I fix this? I've tried disabling Atom's bracket-matcher package, but it didn't work. |
|
|
|
Looking to see if I can reproduce what @lee-dohm saw. Stay tuned. |
|
This seems to work for me on 1.12.0-dev-e83b3cd, Windows 10 x64. |
|
Some broken behavior I'm seeing regarding multiple backslashes: |
|
Thank you for the input! |
|
@andyfriesen are you still working on this? |
|
To my knowledge, my branch solves the worst offending cases as-written. I've been happily using it for the last two years. :) |

This change should cause the bracket matcher to do what we want when strings end in escape sequences.
Particularly, sequences like
"\\"and'\''should now insert the trailing quote when necessary. Also, the terminating quote should be properly overwritten.