# HG changeset patch # User Yuya Nishihara # Date 2015-07-05 02:06:58 # Node ID f8f7ae0f4d9859586f68cd4e1d2d7a33ff2a5cb9 # Parent 0eb093e40813f5867c8d19050fba318cf20aeed9 parser: add comment about structure of elements to each table diff --git a/mercurial/fileset.py b/mercurial/fileset.py --- a/mercurial/fileset.py +++ b/mercurial/fileset.py @@ -10,6 +10,7 @@ import parser, error, util, merge from i18n import _ elements = { + # token-type: binding-strength, prefix, infix, suffix "(": (20, ("group", 1, ")"), ("func", 1, ")")), "-": (5, ("negate", 19), ("minus", 5)), "not": (10, ("not", 10)), diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -115,6 +115,7 @@ def _revsbetween(repo, roots, heads): return baseset(sorted(reachable)) elements = { + # token-type: binding-strength, prefix, infix, suffix "(": (21, ("group", 1, ")"), ("func", 1, ")")), "##": (20, None, ("_concat", 20)), "~": (18, None, ("ancestor", 18)), diff --git a/mercurial/templater.py b/mercurial/templater.py --- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -15,6 +15,7 @@ import minirst # template parsing elements = { + # token-type: binding-strength, prefix, infix, suffix "(": (20, ("group", 1, ")"), ("func", 1, ")")), ",": (2, None, ("list", 2)), "|": (5, None, ("|", 5)),