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