Added eb mode
Getty Ritter
8 years ago
12 | 12 |
"A simple major mode for editing GIDL files"
|
13 | 13 |
single
|
14 | 14 |
]
|
| 15 |
)
|
| 16 |
(electric-boogaloo-mode .
|
| 17 |
[ (20160505 0000)
|
| 18 |
nil
|
| 19 |
"A simple major mode for editing Electric Boogaloo files"
|
| 20 |
single
|
| 21 |
]
|
15 | 22 |
)
|
16 | 23 |
(ndbl-mode .
|
17 | 24 |
[ (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
|
19 | 19 |
<a href="https://github.com/aisamanra/adnot-mode"><code>Adnot</code></a>
|
20 | 20 |
human-readable data files.
|
21 | 21 |
</li>
|
| 22 |
<li><code>electric-boogaloo-mode</code> — minimal major mode for editing
|
| 23 |
<a href="https://github.com/aisamanra/electric-boogaloo">
|
| 24 |
<code>electric boogaloo</code></a> source files.</li>
|
22 | 25 |
<li><code>gidl-mode</code> — minimal major mode for editing
|
23 | 26 |
<a href="https://github.com/GaloisInc/gidl"><code>gidl</code></a> interface files.</li>
|
24 | 27 |
<li><code>ndbl-mode</code> — minimal major mode for editing
|