Show More
@@ -78,7 +78,9 b' def tokenize(program):' | |||||
78 | pos += 1 |
|
78 | pos += 1 | |
79 | yield ('end', None, pos) |
|
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 | def getstring(x, err): |
|
85 | def getstring(x, err): | |
84 | if x and (x[0] == 'string' or x[0] == 'symbol'): |
|
86 | if x and (x[0] == 'string' or x[0] == 'symbol'): |
@@ -1880,7 +1880,9 b' def findaliases(ui, tree):' | |||||
1880 | aliases[alias.name] = alias |
|
1880 | aliases[alias.name] = alias | |
1881 | return _expandaliases(aliases, tree, [], {}) |
|
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 | def match(ui, spec): |
|
1887 | def match(ui, spec): | |
1886 | if not spec: |
|
1888 | if not spec: |
General Comments 0
You need to be logged in to leave comments.
Login now