Better string font lock (catch scaped quotes).

db4
Jose A. Ortega Ruiz 2008-11-16 01:27:21 +01:00
parent e7ccb46254
commit aa43297364
1 changed files with 1 additions and 2 deletions

View File

@ -114,8 +114,7 @@
("^!.*$" . font-lock-comment-face) ("^!.*$" . font-lock-comment-face)
(" !.*$" . font-lock-comment-face) (" !.*$" . font-lock-comment-face)
("( .* )" . font-lock-comment-face) ("( .* )" . font-lock-comment-face)
("\"[^ ][^\"]*\"" . font-lock-string-face) ("\"\\(\\\\\"\\|[^\"]\\)*\"" . font-lock-string-face)
("\"\"" . font-lock-string-face)
("\\(P\\|SBUF\\)\"" 1 font-lock-keyword-face) ("\\(P\\|SBUF\\)\"" 1 font-lock-keyword-face)
,@(mapcar #'(lambda (w) (cons (concat "\\(^\\| \\)\\(" w "\\)\\($\\| \\)") ,@(mapcar #'(lambda (w) (cons (concat "\\(^\\| \\)\\(" w "\\)\\($\\| \\)")
'(2 font-lock-keyword-face))) '(2 font-lock-keyword-face)))