Open
Description
I use the code
(defconst M2-mode-font-lock-keywords ' ( "///\\(/?/?[^/]\\|\\(//\\)*////[^/]\\)*\\(//\\)*///" . 'font-lock-string-face) )
to try to highlight strings delimited by /// ... ///, but the regular expression is so complicated (with backtracking) that it can sometimes cause a delay up to 45 seconds when using C-s to search through a file, as @mikestillman has observed.
We could simplify the regular expression drastically to "///.*///", and not worry about getting every single case correct.
Metadata
Metadata
Assignees
Labels
No labels