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

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

[nongnu] elpa/bison-mode 675df47 25/29: flex-mode variant


From: ELPA Syncer
Subject: [nongnu] elpa/bison-mode 675df47 25/29: flex-mode variant
Date: Sun, 29 Aug 2021 10:58:44 -0400 (EDT)

branch: elpa/bison-mode
commit 675df47193accaf30ca44e142523b2b3bb122979
Author: Luciano Laratelli <luciano@laratelli.com>
Commit: Wilfred Hughes <me@wilfred.me.uk>

    flex-mode variant
---
 bison-mode.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/bison-mode.el b/bison-mode.el
index ff41370..430066e 100644
--- a/bison-mode.el
+++ b/bison-mode.el
@@ -77,7 +77,7 @@
 ;;;###autoload
 (add-to-list 'auto-mode-alist '("\\.y\\'" . bison-mode))
 ;;;###autoload
-(add-to-list 'auto-mode-alist '("\\.l\\'" . bison-mode))
+(add-to-list 'auto-mode-alist '("\\.l\\'" . flex-mode))
 ;;;###autoload
 (add-to-list 'auto-mode-alist '("\\.jison\\'" . jison-mode))
 
@@ -900,9 +900,14 @@ declaration section, then indent to 
bison-decl-token-column."
                          (indent-to-column bison-decl-token-column)))))))))
 
 ;;;###autoload
-(define-derived-mode jison-mode bison-mode
+(define-derived-mode jison-mode bison-mode "jison"
   "Major mode for editing jison files.")
+;;;###autoload
+(define-derived-mode flex-mode bison-mode "flex"
+  "Major mode for editing flex files. (bison-mode by any other name)")
 
 (provide 'bison-mode)
 (provide 'jison-mode)
+(provide 'flex-mode)
+
 ;;; bison-mode.el ends here



reply via email to

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