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

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

[nongnu] elpa/bison-mode 64b70af 21/29: Adding support for jison files


From: ELPA Syncer
Subject: [nongnu] elpa/bison-mode 64b70af 21/29: Adding support for jison files
Date: Sun, 29 Aug 2021 10:58:44 -0400 (EDT)

branch: elpa/bison-mode
commit 64b70af64a593d52cffdcc959d168d9610a0b69b
Author: Peter Moresi <peter.moresi@gmail.com>
Commit: Peter Moresi <peter.moresi@gmail.com>

    Adding support for jison files
---
 README.md     | 3 +++
 bison-mode.el | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/README.md b/README.md
index ea2d18d..fb16249 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,9 @@ Bison major-mode for Emacs.
 
 ## Changelog
 
+### 0.3
+Added support for jison mode.
+
 ### 0.2
 
 Update for compatibility with modern Emacsen, and removed dependencies
diff --git a/bison-mode.el b/bison-mode.el
index eb3521c..95df8bf 100644
--- a/bison-mode.el
+++ b/bison-mode.el
@@ -78,6 +78,8 @@
 (add-to-list 'auto-mode-alist '("\\.y\\'" . bison-mode))
 ;;;###autoload
 (add-to-list 'auto-mode-alist '("\\.l\\'" . bison-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.jison\\'" . jison-mode))
 
 ;; *************** internal vars ***************
 
@@ -897,5 +899,9 @@ declaration section, then indent to 
bison-decl-token-column."
                          (just-no-space)
                          (indent-to-column bison-decl-token-column)))))))))
 
+(define-derived-mode jison-mode bison-mode
+  "Major mode for editing jison files.")
+
 (provide 'bison-mode)
+(provide 'jison-mode)
 ;;; bison-mode.el ends here



reply via email to

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