[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using smie for Relax NG compact syntax
From: |
Stefan Monnier |
Subject: |
Re: Using smie for Relax NG compact syntax |
Date: |
Wed, 11 Feb 2015 10:54:28 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> Yeah, sorry. Here’s the whole rnc-mode.el. The backtrace doesn’t
> seem to tell us much (parts of the backtrace that only involve
> invoking eval-buffer have been elided):
Looks like a bug in smie.el, which should disappear when you grow your
grammar. You can remove the (cl-assert (numberp (car cons))) in smie.el
to work around the problem, or more simply add some dummy thing in `id',
such as:
(defconst rnc-mode-smie-grammar
(smie-prec2->grammar
(smie-bnf->prec2
'((id ("(" id ")"))
(pattern ("element" id)
("empty"))))))
-- Stefan