unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Arthur Evstifeev <mail@ap4y.me>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: SMIE implementation for the C-like languages
Date: Fri, 13 Nov 2015 15:10:55 +1300	[thread overview]
Message-ID: <87pozewswg.fsf@ap4y.me> (raw)
In-Reply-To: <jwv1tbwr5xl.fsf-monnier+emacs@gnu.org>


Stefan Monnier writes:

[...]
>>>> But it doesn't change behavior of the blinking: for the same if
>>>> construction blinking happens for the "if" token.  Is there a different
>>>> way of altering this behavior?
>>> My guess would be that the default blinking code uses forward-sexp which
>>> goes through forward-sexp-function which SMIE sets up as well.  Try set
>>> this var back to nil in swift-mode buffers, see if that helps.
>> I tried to reset forward-sexp-function and it works when I'm not
>> tokenizing braces. When braces handled in lexer, I'm getting "Mismatched
>> parenthesis" error similar to one of the previous examples.
>
> I suggest you report this as a bug as well, providing enough details to
> reproduce it.  I don't know if it's indeed a bug or not, but we need to
> investigate in more details.
>

Sorry for the delay. I will open a new ticket about inconsistencies in
braces behavior and how it results in issue with paren blinking. I
understand that there is no clear solution for this problem at the
moment and will appreciate any improvements. We will try to restructure
our grammar to not threat "{" as neither token in grammars and will see
how it goes. Thanks a lot for the answers!

Arthur



  reply	other threads:[~2015-11-13  2:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-09  6:05 SMIE implementation for the C-like languages Arthur Evstifeev
2015-11-09 15:23 ` Stefan Monnier
2015-11-10  3:25   ` Arthur Evstifeev
2015-11-10  4:12     ` Stefan Monnier
2015-11-11  1:12       ` Arthur Evstifeev
2015-11-11 14:17         ` Stefan Monnier
2015-11-13  2:10           ` Arthur Evstifeev [this message]
2015-11-18 23:14             ` Markus Triska
2015-11-19  3:00               ` Stefan Monnier
2015-11-11 15:59     ` Stefan Monnier

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=87pozewswg.fsf@ap4y.me \
    --to=mail@ap4y.me \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).