Show More
@@ -34,7 +34,7 from . import ( | |||
|
34 | 34 | elements = { |
|
35 | 35 | # token-type: binding-strength, primary, prefix, infix, suffix |
|
36 | 36 | "(": (20, None, ("group", 1, ")"), ("func", 1, ")"), None), |
|
37 |
"%": (1 |
|
|
37 | "%": (15, None, None, ("%", 15), None), | |
|
38 | 38 | "|": (15, None, None, ("|", 15), None), |
|
39 | 39 | "*": (5, None, None, ("*", 5), None), |
|
40 | 40 | "/": (5, None, None, ("/", 5), None), |
@@ -134,6 +134,20 But negate binds closer still: | |||
|
134 | 134 | (string '\n')) |
|
135 | 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 | 151 | Keyword arguments: |
|
138 | 152 | |
|
139 | 153 | $ hg debugtemplate -r0 -v '{foo=bar|baz}' |
General Comments 0
You need to be logged in to leave comments.
Login now