~ubuntu-branches/ubuntu/gutsy/inform/gutsy

« back to all changes in this revision

Viewing changes to contrib/inform-hilite.el

  • Committer: Bazaar Package Importer
  • Author(s): Mark Baker
  • Date: 2004-03-29 23:52:44 UTC
  • Revision ID: james.westby@ubuntu.com-20040329235244-fox1z1yv7d6vojoo
Tags: upstream-6.30
ImportĀ upstreamĀ versionĀ 6.30

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
;; Inform highlights for GNU emacs.
 
2
 
 
3
(hilit-set-mode-patterns 'inform-mode
 
4
 '(
 
5
   ;; Comments
 
6
   ("\\(^!\\|[ \t]!\\).*" nil comment)
 
7
   ;; Strings
 
8
   (hilit-string-find ?\\ string)
 
9
   ;; Declarations
 
10
   ("#?\\b\\(IFDEF\\|Ifdef\\|IFNDEF\\|Ifndef\\|IFNOT\\|Ifnot\\|IFV3\\|IfV3\\|IFV5\\|IfV5\\|ENDIF\\|Endif\\)\\b" nil define)
 
11
   ;; Include files
 
12
   ("^#?Include" nil include)
 
13
   ;; Control keywords
 
14
   ("\\b\\(while\\|if\\|else\\|for\\|switch\\|do\\|until\\|return\\|rtrue\\|rfalse\\|break\\|jump\\|objectloop\\)\\b" nil keyword)
 
15
   ;; Functions
 
16
   ("^\\[[ \t]*[^ \t;]+" nil defun)
 
17
   ("^\\(Object\\|Nearby\\|Class\\)\\([ \t]+->\\)*[ \t]+[^ \t]+" nil defun)
 
18
   ))