Show More
@@ -78,7 +78,9 b' def tokenize(program):' | |||
|
78 | 78 | pos += 1 |
|
79 | 79 | yield ('end', None, pos) |
|
80 | 80 | |
|
81 | parse = parser.parser(tokenize, elements).parse | |
|
81 | def parse(expr): | |
|
82 | p = parser.parser(tokenize, elements) | |
|
83 | return p.parse(expr) | |
|
82 | 84 | |
|
83 | 85 | def getstring(x, err): |
|
84 | 86 | if x and (x[0] == 'string' or x[0] == 'symbol'): |
@@ -1880,7 +1880,9 b' def findaliases(ui, tree):' | |||
|
1880 | 1880 | aliases[alias.name] = alias |
|
1881 | 1881 | return _expandaliases(aliases, tree, [], {}) |
|
1882 | 1882 | |
|
1883 | parse = parser.parser(tokenize, elements).parse | |
|
1883 | def parse(spec): | |
|
1884 | p = parser.parser(tokenize, elements) | |
|
1885 | return p.parse(spec) | |
|
1884 | 1886 | |
|
1885 | 1887 | def match(ui, spec): |
|
1886 | 1888 | if not spec: |
General Comments 0
You need to be logged in to leave comments.
Login now