emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/poke-mode 4f68329d1a 1/2: add smie rule for unions


From: ELPA Syncer
Subject: [elpa] externals/poke-mode 4f68329d1a 1/2: add smie rule for unions
Date: Thu, 7 Apr 2022 07:57:43 -0400 (EDT)

branch: externals/poke-mode
commit 4f68329d1a75495cfe393cd1e5a963b9b84e2108
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Commit: Jose E. Marchesi <jose.marchesi@oracle.com>

    add smie rule for unions
    
    * poke-mode.el (poke-smie-rules):
---
 poke-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/poke-mode.el b/poke-mode.el
index cb075677a8..3b432e4037 100644
--- a/poke-mode.el
+++ b/poke-mode.el
@@ -307,7 +307,7 @@
     (`(:elem . basic) poke-indent-basic)
     ;; (`(:list-intro . "=") t)
     (`(:after . "=") poke-indent-basic)
-    ((and `(:before . "{") (guard (smie-rule-parent-p "fun" "struct")))
+    ((and `(:before . "{") (guard (smie-rule-parent-p "fun" "struct" "union")))
      (smie-rule-parent 0))
     (`(:before . ,(or `"(" `"{"))
      (if (smie-rule-hanging-p) (smie-rule-parent)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]