Skip to content
Snippets Groups Projects
Commit 829faf8a authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

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.
parent 9668c1a4
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment