* bug#14336: 24.3; Octave failed to fontify 'str' if ' is at line-beginning
@ 2013-05-02 21:17 Leo Liu
2013-05-06 7:45 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Leo Liu @ 2013-05-02 21:17 UTC (permalink / raw)
To: 14336
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))
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-06 8:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-02 21:17 bug#14336: 24.3; Octave failed to fontify 'str' if ' is at line-beginning Leo Liu
2013-05-06 7:45 ` Glenn Morris
2013-05-06 8:21 ` Leo Liu
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.