[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14336: 24.3; Octave failed to fontify 'str' if ' is at line-beginnin
From: |
Leo Liu |
Subject: |
bug#14336: 24.3; Octave failed to fontify 'str' if ' is at line-beginning |
Date: |
Fri, 03 May 2013 05:17:29 +0800 |
As reported in this post:
http://article.gmane.org/gmane.comp.gnu.octave.general/48005
'abc'
is not fontified if ' is at line beginning.
I have installed the following fix:
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el
index a58fdefb..3c9efad9 100644
--- a/lisp/progmodes/octave.el
+++ b/lisp/progmodes/octave.el
@@ -131,7 +131,7 @@ (defun octave-syntax-propertize-function (start end)
(octave-syntax-propertize-sqs end)
(funcall (syntax-propertize-rules
;; Try to distinguish the string-quotes from the transpose-quotes.
- ("[[({,; ]\\('\\)"
+ ("\\(?:^\\|[[({,; ]\\)\\('\\)"
(1 (prog1 "\"'" (octave-syntax-propertize-sqs end)))))
(point) end))
- bug#14336: 24.3; Octave failed to fontify 'str' if ' is at line-beginning,
Leo Liu <=