Bison major-mode for Emacs.
Put the .el file in /.emacs.d/lisp. If it doesn't exist, make it.
Add the following to your .emacs or .init.el file (whichever you have)
(add-to-list 'load-path "~/.emacs.d/lisp/")
(load "bison-mode")
For convenient c-function indexing, add
(add-hook 'bison-mode-hook 'imenu-add-menubar-index)
(setq imenu-create-index-function
(lambda ()
(let ((end))
(beginning-of-buffer)
(re-search-forward "^%%")
(forward-line 1)
(setq end (save-excursion (re-search-forward "^%%") (point))
(loop while (re-search-forward "^\\([a-z].*?\\)\\s-*\n?\\s-*:" end t)
collect (cons (match-string 1) (point))))))
Updated autoindenting for space efficiency. WIP
Added support for jison mode.
jison-mode is started automatically for .jison files
Update for compatibility with modern Emacsen, and removed dependencies on some ancient packages.
Many byte-compiler fixes.
Fixed a crash on indentation.
bison-mode is now started automatically for .y and .l files.
Initial release.