source: CIVL/mods/dev.civl.com/emacs/civl-syntax.el

main
Last change on this file was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5664 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100755
File size: 1.3 KB
RevLine 
[b231753]1;;; civl-syntax.el --- CIVL-C Syntax Highlighting
2
3;;;###autoload
4(defun civl-syntax-init ()
5 "CIVL-C syntax highlighting"
6 (define-derived-mode civl-mode c-mode
7 (setq mode-name "CIVL-C"))
8 (add-hook 'civl-mode-hook'
9 (lambda ()
10 (font-lock-add-keywords nil
11 '(("\\<_Bool\\>" . font-lock-type-face)
12 ("\\$\\(bundle\\|scope\\|proc\\|message\\|gcomm\\|comm\\)\\>" . font-lock-type-face)
[ca6d19e]13 ("\\$\\(here\\|root\\|self\\|true\\|false\\|proc_null\\)\\>" . font-lock-constant-face)
[cbea8be]14 ("\\$\\(scope_parent\\|scopeof\\|choose_int\\|wait\\|exit\\|message_pack\\|message_tag\\|message_dest\\|message_size\\|message_unpack\\|gcomm_create\\|comm_create\\|comm_size\\|comm_place\\|comm_enqueue\\|comm_probe\\|comm_seek\\|comm_dequeue\\|assert\\|malloc\\|free\\|comm_destroy\\|gcomm_destroy\\|proc_defined\\|scope_defined\\|gcomm_defined\\|comm_defined\\|waitall\\|elaborate\\)\\>" . font-lock-builtin-face)
[2970b509]15 ("\\$\\(when\\|choose\\|spawn\\|atom\\|atomic\\|atomic_f\\|abstract\\|input\\|output\\|assume\\|forall\\|exists\\|requires\\|ensures\\|invariant\\|collective\\|parfor\\|for\\|domain\\|depends\\|assigns\\|reads\\|pure\\|system\\)\\>" . font-lock-keyword-face)))))
[b231753]16
[c97e9d5]17 (add-to-list 'auto-mode-alist '("\\.\\(cvl\\|cvh\\)" . civl-mode)))
[b231753]18
19(defalias 'civl-syntax #'civl-syntax-init)
20(provide 'civl-syntax)
Note: See TracBrowser for help on using the repository browser.