From b4c8295e81157fa913674140dee1fc201c881642 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Fri, 3 May 2013 05:27:16 +0800 Subject: [PATCH] * progmodes/octave.el (octave-syntax-propertize-function): Include the case when ' is at line beginning. Fixes: debbugs:14336 --- lisp/ChangeLog | 5 +++++ lisp/progmodes/octave.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5adfea1d07a..79fd3820074 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-05-02 Leo Liu + + * progmodes/octave.el (octave-syntax-propertize-function): Include + the case when ' is at line beginning. (Bug#14336) + 2013-05-02 Glenn Morris * vc/vc-dir.el (vc-dir-mode): Don't autoload it for everyone. diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index 4b02645e463..3252b16cbad 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el @@ -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)) -- 2.39.2