-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgabc-mode.el
21 lines (20 loc) · 942 Bytes
/
gabc-mode.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(require 'generic-x)
(define-generic-mode
'gabc-mode ;; name of the mode
'() ;; comments delimiter
'("name" "gabc-copyright" "score-copyright" "office-part"
"occasion" "meter" "commentary" "arranger" "gabc-version"
"author" "date"
"manuscript" "manuscript-reference" "manuscript-storage-place"
"book" "transcriber" "transcription-date" "gregoriotex-font"
"mode" "initial-style" "centering-scheme" "user-notes"
"annotation") ;; some keywords
'(("\\(% .*\\)" 1 'font-lock-comment-face)
("%%" . 'bold)
("([^)]*)" . 'font-lock-variable-name-face)
;; ("(.*\\([cdefghijklmnCDEFGHIJKLMN]\\).*)" . 'font-lock-variable-name-face)
)
'("\\.gabc$") ;; files that trigger this mode
nil ;; any other functions to call
"Generic mode for GABC syntax highlighting" ;; doc string
)