;; define major mode for snobol
;; adopted from http://emacs-fu.blogspot.com/2010/04/creating-custom-modes-easy-way-with.html
(require \'generic-x) ;; required
(define-generic-mode \'snobol-mode
(list "*") ;; comments
(list "output" "input") ;; keywords
\'(("^\\\\w\\\\{1,8\\\\}" . font-lock-warning-face) ;; highlights labels
(":.?[(].*[)]" . font-lock-constant-face)) ;; highlights gotos
\'("\\\\.sno$") ;; file endings
nil ;; other function calls
"A mode for Snobol4 files" ;; doc string
)