unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

* bug#14336: 24.3; Octave failed to fontify 'str' if ' is at line-beginning
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2013-05-06  7:45 UTC (permalink / raw)
  To: Leo Liu; +Cc: 14336

Leo Liu wrote:

> I have installed the following fix:

I guess you opened this to get a bug number to refer to, which is fine,
but why not also immediately close it?





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#14336: 24.3; Octave failed to fontify 'str' if ' is at line-beginning
  2013-05-06  7:45 ` Glenn Morris
@ 2013-05-06  8:21   ` Leo Liu
  0 siblings, 0 replies; 3+ messages in thread
From: Leo Liu @ 2013-05-06  8:21 UTC (permalink / raw)
  To: 14336-done

Fixed in trunk.





^ permalink raw reply	[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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).