Mercurial > hg
comparison mercurial/treediscovery.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 | d2704c48f417 |
children | 0ca8410ea345 |
comparison
equal
deleted
inserted
replaced
25001:9668c1a433b3 | 25002:829faf8ab605 |
---|