unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Font-lock in a comint derived mode
@ 2015-08-06  9:48 Björn Lindqvist
  2015-08-06 15:03 ` Ian Zimmerman
  0 siblings, 1 reply; 4+ messages in thread
From: Björn Lindqvist @ 2015-08-06  9:48 UTC (permalink / raw)
  To: help-gnu-emacs

Hi!

I wonder if there is some guidelines on how to make font-lock and a
comint interpreter work smoothly together? Or if there is any existing
3rd party mode in which those two features of Emacs are combined and
which I can look at? Why doesn't regular font-locking "just, work"?
Because I wan't to highlight strings, so if the inferior process
outputs {"hi":"there"} those two string literals should be in color.
But then, if you have the following conversation:

>>> print "stray\""
stray"
>>>

then font-lock thinks there is an unterminated string and everything
will be font-locked in the string face. Maybe there is a way to stop
font-lock from "running through" the interpreter prompts?


-- 
mvh/best regards Björn Lindqvist



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

end of thread, other threads:[~2015-08-07 16:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-06  9:48 Font-lock in a comint derived mode Björn Lindqvist
2015-08-06 15:03 ` Ian Zimmerman
2015-08-07 14:43   ` Björn Lindqvist
2015-08-07 16:37     ` Stefan Monnier

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).