# HG changeset patch
# User Matt Mackall <mpm@selenic.com>
# Date 2014-08-12 05:42:05
# Node ID feab93a24e8191388afed6afa56a1ca1443ac4ea
# Parent  ccae572c5d09b911d1f4e2cf45bf358171726803

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.

diff --git a/contrib/hg-test-mode.el b/contrib/hg-test-mode.el
--- a/contrib/hg-test-mode.el
+++ b/contrib/hg-test-mode.el
@@ -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)
    )