Show More
@@ -34,7 +34,7 b' from . import (' | |||||
34 | elements = { |
|
34 | elements = { | |
35 | # token-type: binding-strength, primary, prefix, infix, suffix |
|
35 | # token-type: binding-strength, primary, prefix, infix, suffix | |
36 | "(": (20, None, ("group", 1, ")"), ("func", 1, ")"), None), |
|
36 | "(": (20, None, ("group", 1, ")"), ("func", 1, ")"), None), | |
37 |
"%": (1 |
|
37 | "%": (15, None, None, ("%", 15), None), | |
38 | "|": (15, None, None, ("|", 15), None), |
|
38 | "|": (15, None, None, ("|", 15), None), | |
39 | "*": (5, None, None, ("*", 5), None), |
|
39 | "*": (5, None, None, ("*", 5), None), | |
40 | "/": (5, None, None, ("/", 5), None), |
|
40 | "/": (5, None, None, ("/", 5), None), |
@@ -134,6 +134,20 b' But negate binds closer still:' | |||||
134 | (string '\n')) |
|
134 | (string '\n')) | |
135 | -3 |
|
135 | -3 | |
136 |
|
136 | |||
|
137 | Filters bind as close as map operator: | |||
|
138 | ||||
|
139 | $ hg debugtemplate -r0 -v '{desc|splitlines % "{line}\n"}' | |||
|
140 | (template | |||
|
141 | (% | |||
|
142 | (| | |||
|
143 | (symbol 'desc') | |||
|
144 | (symbol 'splitlines')) | |||
|
145 | (template | |||
|
146 | (symbol 'line') | |||
|
147 | (string '\n')))) | |||
|
148 | line 1 | |||
|
149 | line 2 | |||
|
150 | ||||
137 | Keyword arguments: |
|
151 | Keyword arguments: | |
138 |
|
152 | |||
139 | $ hg debugtemplate -r0 -v '{foo=bar|baz}' |
|
153 | $ hg debugtemplate -r0 -v '{foo=bar|baz}' |
General Comments 0
You need to be logged in to leave comments.
Login now