Show More
@@ -66,10 +66,7 b' def tokenizer(data):' | |||||
66 | break |
|
66 | break | |
67 | pos += 1 |
|
67 | pos += 1 | |
68 | sym = program[s:pos] |
|
68 | sym = program[s:pos] | |
69 | try: |
|
69 | yield ('symbol', sym, s) | |
70 | yield ('string', str(int(sym)), s) |
|
|||
71 | except ValueError: |
|
|||
72 | yield ('symbol', sym, s) |
|
|||
73 | pos -= 1 |
|
70 | pos -= 1 | |
74 | elif c == '}': |
|
71 | elif c == '}': | |
75 | pos += 1 |
|
72 | pos += 1 |
@@ -1360,12 +1360,6 b' Age filter:' | |||||
1360 | $ hg log -l1 --template '{date|age}\n' |
|
1360 | $ hg log -l1 --template '{date|age}\n' | |
1361 | 7 years from now |
|
1361 | 7 years from now | |
1362 |
|
1362 | |||
1363 | Filter with int function argument: |
|
|||
1364 |
|
||||
1365 | $ hg log --template '{fill(author, 20)}\n' -r 0 |
|
|||
1366 | User Name |
|
|||
1367 | <user@hostname> |
|
|||
1368 |
|
||||
1369 | Error on syntax: |
|
1363 | Error on syntax: | |
1370 |
|
1364 | |||
1371 | $ echo 'x = "f' >> t |
|
1365 | $ echo 'x = "f' >> t |
General Comments 0
You need to be logged in to leave comments.
Login now