branch: elpa/swift-mode commit 01bcc35f6b969f3d17ee06cc92f2b1e4fc4d4ee9 Author: ap4y <l...@pisem.net> Commit: ap4y <l...@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))