hgext/color.py
changeset 21037 b775a2029e8d
parent 21024 7731a2281cf0
child 21190 2606e7f227f6
--- a/hgext/color.py	Wed Apr 16 02:38:11 2014 +0900
+++ b/hgext/color.py	Mon Apr 14 18:21:26 2014 -0500
@@ -395,6 +395,10 @@
         # i18n: "label" is a keyword
         raise error.ParseError(_("label expects two arguments"))
 
+    # add known effects to the mapping so symbols like 'red', 'bold',
+    # etc. don't need to be quoted
+    mapping.update(dict([(k, k) for k in _effects]))
+
     thing = templater._evalifliteral(args[1], context, mapping)
 
     # apparently, repo could be a string that is the favicon?