GNU bug report logs -
#21540
25.0.50; Fontification on typed text is delayed by 2 chars in antlr-mode
Previous Next
Reported by: Ilya Yanok <ilya.yanok <at> gmail.com>
Date: Wed, 23 Sep 2015 14:33:01 UTC
Severity: normal
Found in version 25.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 21540 <at> debbugs.gnu.org (full text, mbox):
Ilya Yanok <ilya.yanok <at> gmail.com> writes:
> If I open the existing grammar file, fontification works just fine. The
> same for pasting the grammar from the clipboard. But if I type the
> grammar by hand in Emacs buffer, fontification happens only two symbols
> after I type the actual thing to fontify. For example, if I type
>
> test : aaa | bbb ;<RET>
>
> 'test' gets the right face only after I type ':', 'aaa' -- after '|' and
> 'bbb' -- after ';'. ';' itself is never fontified unless I put extra
> spaces after it.
>
> Things get worse in case of multiline grammar. For example, in the snippet
>
> test
> : aaa
> | bbb
> ;
>
> only ':' and '|' get the right faces. For the rest I have to resort to
> spaces trick (or call font-lock-fontify-region).
I tried reproducing this in Emacs 27, but was unable to, so I guess this
has been fixed at some point in the years since you reported this bug,
and I'm closing this bug report.
If you're still seeing this, please reopen.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 5 years and 263 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.