diff mercurial/phases.py @ 25002:829faf8ab605

templater: tokenize decimal integer literal (issue4638) (BC) Before this patch, we had to quote integer literals to pass to template functions. It was error-prone, so we should allow "word(0, x)" syntax. Currently only decimal integers are allowed. It's easy to support 0x, 0b and 0 prefixes, but I don't think they are useful. This patch assumes that template keywords and names defined in map files do not start with digits, except for positional variables seen in the schemes extension.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 01 May 2015 20:43:55 +0900
parents 2a73829ebe17
children 22438cfd11b5
line wrap: on
line diff