branch: elpa/swift-mode commit 6546ad5d71214466d6194793ce006a630537f773 Author: Bozhidar Batsov <bozhi...@batsov.com> Commit: Bozhidar Batsov <bozhi...@batsov.com>
Fix auto-mode-alist regex $ matches end of line, not end of string. --- swift-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift-mode.el b/swift-mode.el index d71c9fc..e945e47 100644 --- a/swift-mode.el +++ b/swift-mode.el @@ -189,7 +189,7 @@ (setq-local paragraph-separate paragraph-start)) ;;;###autoload -(add-to-list 'auto-mode-alist '("\\.swift$" . swift-mode)) +(add-to-list 'auto-mode-alist '("\\.swift\\'" . swift-mode)) (provide 'swift-mode)