]> gitweb.factorcode.org Git - factor.git/commitdiff
Better string font lock (catch scaped quotes).
authorJose A. Ortega Ruiz <jao@gnu.org>
Sun, 16 Nov 2008 00:27:21 +0000 (01:27 +0100)
committerJose A. Ortega Ruiz <jao@gnu.org>
Sun, 16 Nov 2008 00:27:21 +0000 (01:27 +0100)
misc/factor.el

index 5d937c14ca5f6ed3b4fc99dd4c00e509d325d0ee..fe050d18f29aff1fb227e8df9877640b19143ff7 100644 (file)
     ("^!.*$" . 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)
     ,@(mapcar #'(lambda (w) (cons (concat "\\(^\\| \\)\\(" w "\\)\\($\\| \\)")
                              '(2 font-lock-keyword-face)))