From: Lars Ingebrigtsen <larsi@gnus.org>
To: Ivan Andrus <darthandrus@gmail.com>
Cc: 27552@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#27552: 25.2.50; Indentation problem in rnc-mode
Date: Wed, 15 Jun 2022 16:25:29 +0200 [thread overview]
Message-ID: <87sfo6gg12.fsf@gnus.org> (raw)
In-Reply-To: <87k0akhshb.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 17 May 2022 21:25:04 +0200")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> I guess this "=" rule is for stuff like the "pattern =" etc. But it
> leads to things like this being indented more for each line:
>
> default namesace rng = "http://relaxng.org/ns/structure/1.0"
> namespace local = ""
> datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes"
Or... is the problem here that we don't end pattern with a newline?
Because the "assignment" ends at the newline in this case.
(smie-prec2->grammar
(smie-bnf->prec2
'((id) (atom) (args)
(header (header "include" atom))
(decls (id "=" pattern) (id "|=" pattern) (id "&=" pattern)
(decls " ; " decls))
(pattern ("element" args) ("attribute" args)
("list" args) ("mixed" args)
("parent" id) ("external" id)
("grammar" atom)
("{" pattern "}")
(pattern "," pattern)
(pattern "&" pattern)
(pattern "|" pattern)
(pattern "?")
(pattern "*")
(pattern "+")))
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2022-06-15 14:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-01 20:33 bug#27552: 25.2.50; Indentation problem in rnc-mode Ivan Andrus
2022-05-17 19:25 ` Lars Ingebrigtsen
2022-06-15 14:25 ` Lars Ingebrigtsen [this message]
2022-06-15 15:15 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-15 15:56 ` Lars Ingebrigtsen
2022-07-02 20:43 ` Ivan Andrus
2022-07-02 21:37 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sfo6gg12.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=27552@debbugs.gnu.org \
--cc=darthandrus@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.