hg-test-mode: don't highlight variables in output
authorMatt Mackall <mpm@selenic.com>
Tue, 12 Aug 2014 00:42:05 -0500
changeset 22109 feab93a24e81
parent 22108 ccae572c5d09
child 22110 26f7c8033bed
hg-test-mode: don't highlight variables in output This was disabling highlighting the rest of the line for $REASONS. Instead, we only highlight when we think we're on a 'command' line.
contrib/hg-test-mode.el
--- a/contrib/hg-test-mode.el	Tue Aug 12 00:40:24 2014 -0500
+++ b/contrib/hg-test-mode.el	Tue Aug 12 00:42:05 2014 -0500
@@ -25,10 +25,10 @@
   (list
    '("^  \\(\\$\\|>>>\\) " 1 font-lock-builtin-face)
    '("^  \\(>\\|\\.\\.\\.\\) " 1 font-lock-constant-face)
+   '("^  \\(.*?\\)\\(\\( [(][-a-z]+[)]\\)*\\)$" 1 font-lock-string-face)
    '("\\$?\\(HG\\|TEST\\)\\w+=?" . font-lock-variable-name-face)
    '("^  \\([[][0-9]+[]]\\)$" 1 font-lock-warning-face)
    '("^  \\(.*?\\)\\(\\( [(][-a-z]+[)]\\)+\\)$" 2 font-lock-type-face)
-   '("^  \\(.*?\\)\\(\\( [(][-a-z]+[)]\\)*\\)$" 1 font-lock-string-face)
    '("^#.*" . font-lock-preprocessor-face)
    '("^\\([^ ].*\\)$" 1 font-lock-comment-face)
    )