Changeset 4166 for trunk/lisp/progmodes/cfengine.el
- Timestamp:
- 09/18/06 20:48:14 (2 years ago)
- Files:
-
- trunk/lisp/progmodes/cfengine.el (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/progmodes/cfengine.el
r4037 r4166 85 85 ;; File, acl &c in group: { token ... } 86 86 ("{[ \t]*\\([^ \t\n]+\\)" 1 font-lock-constant-face))) 87 88 (defconst cfengine-font-lock-syntactic-keywords 89 ;; In the main syntax-table, backslash is marked as a punctuation, because 90 ;; of its use in DOS-style directory separators. Here we try to recognize 91 ;; the cases where backslash is used as an escape inside strings. 92 '(("\\(\\(?:\\\\\\)+\\)\"" . "\\"))) 87 93 88 94 (defvar cfengine-imenu-expression … … 219 225 (modify-syntax-entry ?$ "." cfengine-mode-syntax-table) 220 226 ;; Doze path separators: 221 (modify-syntax-entry ?\\ " _" cfengine-mode-syntax-table)227 (modify-syntax-entry ?\\ "." cfengine-mode-syntax-table) 222 228 ;; Otherwise, syntax defaults seem OK to give reasonable word 223 229 ;; movement. … … 238 244 ;; syntax properties. 239 245 (setq font-lock-defaults 240 '(cfengine-font-lock-keywords nil nil nil beginning-of-line)) 246 '(cfengine-font-lock-keywords nil nil nil beginning-of-line 247 (font-lock-syntactic-keywords 248 . cfengine-font-lock-syntactic-keywords))) 241 249 (setq imenu-generic-expression cfengine-imenu-expression) 242 250 (set (make-local-variable 'beginning-of-defun-function) … … 250 258 (provide 'cfengine) 251 259 252 ;; ;arch-tag: 6b931be2-1505-4124-afa6-9675971e26d4260 ;; arch-tag: 6b931be2-1505-4124-afa6-9675971e26d4 253 261 ;;; cfengine.el ends here
