Subject: bug#14336: 24.3; Octave failed to fontify 'str' if ' is at line-beginning

From: Leo Liu <[email-masked]>
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))