changeset 22109:feab93a24e81

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.
author Matt Mackall <mpm@selenic.com>
date Tue, 12 Aug 2014 00:42:05 -0500
parents ccae572c5d09
children 26f7c8033bed
files contrib/hg-test-mode.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
    )