gdritter repos gelpa / dd7788c
Added eb mode Getty Ritter 8 years ago
3 changed file(s) with 47 addition(s) and 0 deletion(s). Collapse all Expand all
1212 "A simple major mode for editing GIDL files"
1313 single
1414 ]
15 )
16 (electric-boogaloo-mode .
17 [ (20160505 0000)
18 nil
19 "A simple major mode for editing Electric Boogaloo files"
20 single
21 ]
1522 )
1623 (ndbl-mode .
1724 [ (20150507 0001)
1 ;; electric-boogaloo-mode.el --- a simple major mode for editing Electric Boogaloo files.
2
3 ;; Version: 20160505.0000
4 ;; Author: Getty Ritter
5 ;; Url: http://github.com/aisamanra/electric-boogaloo-mode
6
7 (defvar electric-boogaloo-font-lock nil
8 "electric-boogaloo font lock table")
9 (setq electric-boogaloo-font-lock
10 '(( "\\(--.*\\)"
11 . font-lock-comment-face )
12 ( "^\\([A-Za-z0-9_]+\\)"
13 . font-lock-function-name-face )
14 ( "^ +\\([A-Za-z0-9_]+\\)"
15 1 font-lock-variable-name-face )
16 ( "\\(int\\|integer\\|null\\|real\\|text\\|blob\\|date\\)"
17 . font-lock-builtin-face )))
18
19 (defvar electric-boogaloo-syntax-table nil
20 "Syntax table for `electric-boogaloo-mode'.")
21 (setq electric-boogaloo-syntax-table (make-syntax-table))
22
23 (define-derived-mode electric-boogaloo-mode prog-mode
24 "electric-boogaloo-mode is a major mode for editing .eb files"
25 :syntax-table ndbl-syntax-table
26
27 (setq font-lock-defaults '(electric-boogaloo-font-lock))
28 (setq mode-name "Electric Boogaloo mode")
29 (setq comment-start "--")
30 (setq comment-end ""))
31
32 ;;;###autoload
33 (add-to-list 'auto-mode-alist '("\\.eb\\'" . electric-boogaloo-mode))
34
35 (provide 'electric-boogaloo-mode)
36
37 ;;; electric-boogaloo-mode.el ends here
1919 <a href="https://github.com/aisamanra/adnot-mode"><code>Adnot</code></a>
2020 human-readable data files.
2121 </li>
22 <li><code>electric-boogaloo-mode</code> &mdash; minimal major mode for editing
23 <a href="https://github.com/aisamanra/electric-boogaloo">
24 <code>electric boogaloo</code></a> source files.</li>
2225 <li><code>gidl-mode</code> &mdash; minimal major mode for editing
2326 <a href="https://github.com/GaloisInc/gidl"><code>gidl</code></a> interface files.</li>
2427 <li><code>ndbl-mode</code> &mdash; minimal major mode for editing