]> git.eshelyaron.com Git - emacs.git/commitdiff
* progmodes/octave.el (octave-syntax-propertize-function): Include
authorLeo Liu <sdl.web@gmail.com>
Thu, 2 May 2013 21:27:16 +0000 (05:27 +0800)
committerLeo Liu <sdl.web@gmail.com>
Thu, 2 May 2013 21:27:16 +0000 (05:27 +0800)
the case when ' is at line beginning.

Fixes: debbugs:14336
lisp/ChangeLog
lisp/progmodes/octave.el

index 5adfea1d07a7c22dbb763166cf718ec1d47da207..79fd38200749f99088c0f16485d525564b2c02e4 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-02  Leo Liu  <sdl.web@gmail.com>
+
+       * progmodes/octave.el (octave-syntax-propertize-function): Include
+       the case when ' is at line beginning.  (Bug#14336)
+
 2013-05-02  Glenn Morris  <rgm@gnu.org>
 
        * vc/vc-dir.el (vc-dir-mode): Don't autoload it for everyone.
index 4b02645e46394a4ba3c71f054211398f0c00a1f0..3252b16cbad076ffbc5918b4885fb9ac0103eb9b 100644 (file)
@@ -131,7 +131,7 @@ parenthetical grouping.")
   (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))