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

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

[nongnu] elpa/swift-mode 01bcc35 192/496: Improve grammar for functions


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 01bcc35 192/496: Improve grammar for functions and contraint protocols grammar to
Date: Sun, 29 Aug 2021 11:33:34 -0400 (EDT)

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

    Improve grammar for functions and contraint protocols grammar to
    function declarations
---
 swift-mode.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/swift-mode.el b/swift-mode.el
index 9425fce..abce101 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -110,10 +110,12 @@
        (protocol-level-sts (protocol-level-st) (protocol-level-st ";" 
protocol-level-st))
        (protocol-level-st
         (decl)
-        (func))
+        (func-decl))
 
-       (func ("DECSPEC" "func" func-header) (func "{" insts "}"))
-       (func-header (id "(" func-params ")") (func-header "->" type))
+       (func (func-decl "{" insts "}"))
+       (func-decl ("DECSPEC" "func" func-header)
+                  (func-decl "->" type))
+       (func-header (id "(" func-params ")"))
        (func-param (decl-exp) ("..."))
        (func-params (func-param "," func-param))
 



reply via email to

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