[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[NODEF][COMMITTED] poke-mode: indent chained declarations properly
From: |
Jose E. Marchesi |
Subject: |
[NODEF][COMMITTED] poke-mode: indent chained declarations properly |
Date: |
Sat, 07 Nov 2020 21:06:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hi Aurelien.
FYI, I just committed the patch below in the jemarch/nodef branch.
commit d7793991a13ee00ddee9733ff132f27ca39bc570 (HEAD -> nodef,
origin/jemarch/nodef)
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Date: Sat Nov 7 21:03:38 2020 +0100
poke-mode: indent chained declarations properly
2020-11-07 Jose E. Marchesi <jemarch@gnu.org>
* etc/poke-mode.el (poke-smie-grammar): Indent chained
declarations for variables, types and units.
diff --git a/ChangeLog b/ChangeLog
index 9f129b47..43b2d445 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-11-07 Jose E. Marchesi <jemarch@gnu.org>
+
+ * etc/poke-mode.el (poke-smie-grammar): Indent chained
+ declarations for variables, types and units.
+
2020-11-07 Jose E. Marchesi <jemarch@gnu.org>
* pickles/bmp.pk: Use chained declarations.
diff --git a/etc/poke-mode.el b/etc/poke-mode.el
index a5e4387e..7a77be4f 100644
--- a/etc/poke-mode.el
+++ b/etc/poke-mode.el
@@ -202,10 +202,13 @@
(definition
(id "=" inst)
(id "=" id ":" inst))
+ (definitions (definitions "," definitions) (definition))
(decl
- ("var" definition)
+ ("var" definitions)
+ ("type" definitions)
+ ("unit" definitions)
("method" definition)
- ("type" definition)
+ ("fun" definition)
(decl ";" decl))
(inst
(id)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [NODEF][COMMITTED] poke-mode: indent chained declarations properly,
Jose E. Marchesi <=