diff mercurial/templater.py @ 25800:f8f7ae0f4d98

parser: add comment about structure of elements to each table
author Yuya Nishihara <yuya@tcha.org>
date Sun, 05 Jul 2015 11:06:58 +0900
parents f976b7dc5e7b
children 272ff3680bf3
line wrap: on
line diff
--- a/mercurial/templater.py	Wed Jul 15 04:45:58 2015 +0900
+++ b/mercurial/templater.py	Sun Jul 05 11:06:58 2015 +0900
@@ -15,6 +15,7 @@
 # template parsing
 
 elements = {
+    # token-type: binding-strength, prefix, infix, suffix
     "(": (20, ("group", 1, ")"), ("func", 1, ")")),
     ",": (2, None, ("list", 2)),
     "|": (5, None, ("|", 5)),