From: Noam Postavsky Date: Mon, 24 Aug 2020 15:33:49 +0000 (+0200) Subject: Fix inferior octave single-quote font lock X-Git-Tag: emacs-28.0.90~6430 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9e68413c7f0a7f71e1cee923ace7282d14c2e686;p=emacs.git Fix inferior octave single-quote font lock * lisp/progmodes/octave.el (octave-mode-syntax-table): Fix fontification of single quotes in inferior octave mode (bug#25517). It looks like the problem is that octave-mode-syntax-table sets single quotes as punctuation even though GNU Octave's manual says single quotes are string syntax [1]. [1]: https://www.gnu.org/software/octave/doc/interpreter/String-Objects.html --- diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index e07f818a68a..3dd9b8dae6a 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el @@ -165,7 +165,7 @@ parenthetical grouping.") (modify-syntax-entry ?| "." table) (modify-syntax-entry ?! "." table) (modify-syntax-entry ?\\ "." table) - (modify-syntax-entry ?\' "." table) + (modify-syntax-entry ?\' "\"" table) (modify-syntax-entry ?\` "." table) (modify-syntax-entry ?. "." table) (modify-syntax-entry ?\" "\"" table)