Closed d-torrance closed 2 years ago
In response to https://github.com/Macaulay2/M2-emacs/issues/64, I removed the commits dealing with the ///
-delimited strings. font-lock-mode
will correctly highlight comments and "
-delimited strings since the syntax tables are already set up for them, no font-lock-keywords
regular expressions required. And ///
-delimited strings will just be treated like everything else, so syntax highlighting in doc
and TEST
strings will work as expected.
Instead of using regular expressions and
font-lock-keywords
for syntax highlighting strings and comments, we use syntactic fontification. Syntax tables are already set up for comments and"
-delimited strings, so the only thing to add support for is///
-delimited strings.Note: For now, this will break syntax highlighting inside
doc
andTEST
.This may help with https://github.com/Macaulay2/M2-emacs/issues/64.