Skip to content

Instantly share code, notes, and snippets.

@voidlizard
Created September 2, 2010 05:10
Show Gist options
  • Save voidlizard/561899 to your computer and use it in GitHub Desktop.
Save voidlizard/561899 to your computer and use it in GitHub Desktop.
(require 'generic-x)
(define-generic-mode 'beep-mode
'("%%")
'("literal" "extern" "def" "local" "ret" "while" "if" "elif" "else" "then" "type")
'(
("[0-9]+" . 'font-lock-constant-face)
("=" . 'font-lock-syntax)
("&" . 'font-lock-syntax)
("&&" .'font-lock-syntax)
("\\|".'font-lock-syntax)
("==" .'font-lock-syntax)
(">" . 'font-lock-syntax)
("<" . 'font-lock-syntax)
("<" . 'font-lock-syntax)
("+" . 'font-lock-syntax)
("-" . 'font-lock-syntax)
("*" . 'font-lock-syntax)
("/" . 'font-lock-syntax)
("%" . 'font-lock-syntax)
("{" . 'font-lock-syntax)
("}" . 'font-lock-syntax)
("(" . 'font-lock-syntax)
(")" . 'font-lock-syntax)
("," . 'font-lock-syntax)
)
'("\\.beep\\'")
nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment