branch: externals/poke-mode
commit 289835acc83e43ac3e6539a2d3c37bea4ecb951f
Author: Jose E. Marchesi <[email protected]>
Commit: Jose E. Marchesi <[email protected]>

    poke-mode: indent chained declarations properly
    
    2020-11-07  Jose E. Marchesi  <[email protected]>
    
            * etc/poke-mode.el (poke-smie-grammar): Indent chained
            declarations for variables, types and units.
---
 poke-mode.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/poke-mode.el b/poke-mode.el
index a5e4387e98..7a77be4f12 100644
--- a/poke-mode.el
+++ b/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)

Reply via email to