Open Yevgnen opened 7 years ago
It should work like you describe, so I take it there's some bug in the highlight code. We'll look into it.
This issue, as well as #676 is caused by the fact that the '
in matlab has punctuation class instead of a string quote class. This makes things all sorts of complicated as one can not rely on the string parser to work properly.
I'm not sure I can do much magic from my side of things... this is more an odd design choice in matlab-mode
. :(
I tried to evaluate (modify-syntax-entry ?' "\"")
in matlab-mode
buffer and things seem to work. You might try that as you probably use it more extensivly. If nothing odd happens we can add that as compat to smartparens.
Thanks for you reply. The highlight the single '
still being highlighted here, but the sp-kill-hybrid-sexp
seems gone.
note to self: maybe there is some syntax flag for string braces?
Hi,
I have things like
in my configs.
After that the
'
will not be highlight even when has pairs like'Oh, no.'
. But addingnavigate
to:actions
will highlight the single apostrophes. Is there any way to highlight only when there are pairs ? Thanks !