julia-emacs
julia-emacs copied to clipboard
Wrong highlighting and indentation after a char that is an escaped quote
Hi!
If we have a char that is a quote '
, then the highlight and indentation is not correct:

Same thing, after this line:
elseif c in ('\'', '\"', '\`')
entire rest of source file is rendered as part of a string.
Don't know when I'll get to this but if someone else wants to take a shot at fixing, the rough outline of the solution is:
- Give
'
string delimiter syntax by default instead of operator (so that the logic for detecting whether\\
has escape syntax or operator syntax injulia-syntax-propertize-function
works for it). - Instead of detecting that
'
is the start of a string withjulia-char-regex
, detect when it's an operator.
Opened a pull request that appears to fix this. julia-char-regex
looked very obscure, but it was only wrong. Syntax table is unchanged.