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.
Package: mercurial
Version: __VERSION__
Section: vcs
Priority: optional
Architecture: all
Depends: python
Conflicts: mercurial-common
Maintainer: Mercurial Developers <mercurial-devel@selenic.com>
Description: Mercurial (probably nightly) package built by upstream.