aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-30 21:20:37 +0000
committerRichard M. Stallman1994-07-30 21:20:37 +0000
commitb7c2e3d825fb5eb0549989e4da08ba66e668393f (patch)
tree94079ba01c161570c852abe683f9ea491b82dc0a
parentd1ab4ede1f214fa520b8f64d17ab3c36f1daf858 (diff)
downloademacs-b7c2e3d825fb5eb0549989e4da08ba66e668393f.tar.gz
emacs-b7c2e3d825fb5eb0549989e4da08ba66e668393f.zip
Specify patterns for objc-mode.
-rw-r--r--lisp/hilit19.el19
1 files changed, 18 insertions, 1 deletions
diff --git a/lisp/hilit19.el b/lisp/hilit19.el
index 4813033bf5f..d2b7c5bbd2a 100644
--- a/lisp/hilit19.el
+++ b/lisp/hilit19.el
@@ -1131,7 +1131,24 @@ number of backslashes."
1131 ("[ \n\t({]\\(\\(const\\|register\\|volatile\\|unsigned\\|extern\\|static\\)\\s +\\)*\\(\\(\\w\\|[$_]\\)+_t\\|float\\|double\\|void\\|char\\|short\\|int\\|long\\|FILE\\|\\(\\(struct\\|union\\|enum\\|class\\)\\([ \t]+\\(\\w\\|[$_]\\)*\\)\\)\\)\\(\\s +\\*+)?\\|[ \n\t;()]\\)" nil type) 1131 ("[ \n\t({]\\(\\(const\\|register\\|volatile\\|unsigned\\|extern\\|static\\)\\s +\\)*\\(\\(\\w\\|[$_]\\)+_t\\|float\\|double\\|void\\|char\\|short\\|int\\|long\\|FILE\\|\\(\\(struct\\|union\\|enum\\|class\\)\\([ \t]+\\(\\w\\|[$_]\\)*\\)\\)\\)\\(\\s +\\*+)?\\|[ \n\t;()]\\)" nil type)
1132 ;; key words 1132 ;; key words
1133 ("[^_]\\<\\(return\\|goto\\|if\\|else\\|case\\|default\\|switch\\|break\\|continue\\|while\\|do\\|for\\|public\\|protected\\|private\\|delete\\|new\\)\\>[^_]" 1133 ("[^_]\\<\\(return\\|goto\\|if\\|else\\|case\\|default\\|switch\\|break\\|continue\\|while\\|do\\|for\\|public\\|protected\\|private\\|delete\\|new\\)\\>[^_]"
1134 1 keyword))))) 1134 1 keyword))))
1135
1136 (hilit-set-mode-patterns
1137 '(objc-mode objective-C-mode)
1138 (append
1139 comments c++-comments strings preprocessor
1140 '(
1141 ;; function decls are expected to have types on the previous line
1142 ("^\\(\\(\\w\\|[$_]\\)+::\\)?\\(\\w\\|[$_]\\)+\\s *\\(\\(\\w\\|[$_]\\)+\\s *((\\|(\\)[^)]*)+" nil defun)
1143 ("^\\(\\(\\w\\|[$_]\\)+[ \t]*::[ \t]*\\)?\\(\\(\\w\\|[$_]\\)+\\|operator.*\\)\\s *\\(\\(\\w\\|[$_]\\)+\\s *((\\|(\\)[^)]*)+" nil defun)
1144
1145 ("^\\(template\\|typedef\\|struct\\|union\\|class\\|enum\\|public\\|private\\|protected\\).*$" nil decl)
1146 ;; datatype -- black magic regular expression
1147 ("[ \n\t({]\\(\\(const\\|register\\|volatile\\|unsigned\\|extern\\|static\\)\\s +\\)*\\(\\(\\w\\|[$_]\\)+_t\\|float\\|double\\|void\\|char\\|short\\|int\\|long\\|FILE\\|\\(\\(struct\\|union\\|enum\\|class\\)\\([ \t]+\\(\\w\\|[$_]\\)*\\)\\)\\)\\(\\s +\\*+)?\\|[ \n\t;()]\\)" nil type)
1148 ;; key words
1149 ("[^_]\\<\\(return\\|goto\\|if\\|else\\|case\\|default\\|switch\\|break\\|continue\\|while\\|do\\|for\\|public\\|protected\\|private\\|interface\\|implementation\\|end\\|super\\|self\\)\\>[^_]"
1150 1 keyword))))
1151 )
1135 1152
1136(hilit-set-mode-patterns 1153(hilit-set-mode-patterns
1137 'perl-mode 1154 'perl-mode