From: Lars Ingebrigtsen <larsi@gnus.org>
To: Ilya Yanok <ilya.yanok@gmail.com>
Cc: 21540@debbugs.gnu.org
Subject: bug#21540: 25.0.50; Fontification on typed text is delayed by 2 chars in antlr-mode
Date: Thu, 31 Oct 2019 18:03:09 +0100 [thread overview]
Message-ID: <877e4k7sqa.fsf@gnus.org> (raw)
In-Reply-To: <CAKrM91B2YJ9evzGkwubtU6=Rz7d5umjF0tR=uvf=TkG0PyD0PA@mail.gmail.com> (Ilya Yanok's message of "Wed, 23 Sep 2015 14:15:12 +0200")
Ilya Yanok <ilya.yanok@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
prev parent reply other threads:[~2019-10-31 17:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-23 12:15 bug#21540: 25.0.50; Fontification on typed text is delayed by 2 chars in antlr-mode Ilya Yanok
2019-10-31 17:03 ` Lars Ingebrigtsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877e4k7sqa.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=21540@debbugs.gnu.org \
--cc=ilya.yanok@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).