# HG changeset patch # User Matt Mackall # Date 1407822125 18000 # 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 -r ccae572c5d09 -r feab93a24e81 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) )