Ace-mode fails to highlight regex-splitting
vendethiel opened this issue · 2 comments
vendethiel commented
Not sure how it should do it (is it possible with regexps without ugly hacks ?) but ace-mode fails to highlight a / / /
qqueue commented
The vim-coco plugin also has trouble with regex highlighting, FWIW. The ambiguities with division and regexes starting with spaces are really hard to account for in simple syntax highlighting engines.
The <expr> / <regex literal>
as sugar for split
does tend to create most of the ambiguities that break syntax highlighters. Maybe somehow special-case the engines in ace-mode and vim-coco to handle that better.
# tricky :
breadcrumbs = window.location.pathname / \/
vendethiel commented
do we consider spaces should be \s ?