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

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

[nongnu] elpa/swift-mode f8190d6 186/496: Extract function into separate


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode f8190d6 186/496: Extract function into separate grammar and add return typo to the
Date: Sun, 29 Aug 2021 11:33:33 -0400 (EDT)

branch: elpa/swift-mode
commit f8190d6f111402d00d8289020efd14de9b55f620
Author: ap4y <lod@pisem.net>
Commit: ap4y <lod@pisem.net>

    Extract function into separate grammar and add return typo to the
    function header grammar
---
 swift-mode.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/swift-mode.el b/swift-mode.el
index ca86e33..b9eb3f5 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -104,9 +104,10 @@
        (class-level-sts (class-level-st) (class-level-st ";" class-level-st))
        (class-level-st
         (decl)
-        ("DECSPEC" "func" func-header "{" insts "}"))
+        (func))
 
-       (func-header (id "(" func-params ")"))
+       (func ("DECSPEC" "func" func-header) (func "{" insts "}"))
+       (func-header (id "(" func-params ")") (func-header "->" type))
        (func-param (decl-exp) ("..."))
        (func-params (func-param "," func-param))
 



reply via email to

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