##// END OF EJS Templates
parser: add comment about structure of elements to each table
Yuya Nishihara -
r25800:f8f7ae0f default
parent child Browse files
Show More
@@ -10,6 +10,7 b' import parser, error, util, merge'
10 from i18n import _
10 from i18n import _
11
11
12 elements = {
12 elements = {
13 # token-type: binding-strength, prefix, infix, suffix
13 "(": (20, ("group", 1, ")"), ("func", 1, ")")),
14 "(": (20, ("group", 1, ")"), ("func", 1, ")")),
14 "-": (5, ("negate", 19), ("minus", 5)),
15 "-": (5, ("negate", 19), ("minus", 5)),
15 "not": (10, ("not", 10)),
16 "not": (10, ("not", 10)),
@@ -115,6 +115,7 b' def _revsbetween(repo, roots, heads):'
115 return baseset(sorted(reachable))
115 return baseset(sorted(reachable))
116
116
117 elements = {
117 elements = {
118 # token-type: binding-strength, prefix, infix, suffix
118 "(": (21, ("group", 1, ")"), ("func", 1, ")")),
119 "(": (21, ("group", 1, ")"), ("func", 1, ")")),
119 "##": (20, None, ("_concat", 20)),
120 "##": (20, None, ("_concat", 20)),
120 "~": (18, None, ("ancestor", 18)),
121 "~": (18, None, ("ancestor", 18)),
@@ -15,6 +15,7 b' import minirst'
15 # template parsing
15 # template parsing
16
16
17 elements = {
17 elements = {
18 # token-type: binding-strength, prefix, infix, suffix
18 "(": (20, ("group", 1, ")"), ("func", 1, ")")),
19 "(": (20, ("group", 1, ")"), ("func", 1, ")")),
19 ",": (2, None, ("list", 2)),
20 ",": (2, None, ("list", 2)),
20 "|": (5, None, ("|", 5)),
21 "|": (5, None, ("|", 5)),
General Comments 0
You need to be logged in to leave comments. Login now