Show More
@@ -40,15 +40,18 b' def ignorepats(lines):' | |||
|
40 | 40 | except KeyError: |
|
41 | 41 | warnings.append(_("ignoring invalid syntax '%s'") % s) |
|
42 | 42 | continue |
|
43 | pat = syntax + line | |
|
43 | ||
|
44 | linesyntax = syntax | |
|
44 | 45 | for s, rels in syntaxes.iteritems(): |
|
45 | 46 | if line.startswith(rels): |
|
46 |
|
|
|
47 | linesyntax = rels | |
|
48 | line = line[len(rels):] | |
|
47 | 49 | break |
|
48 | 50 | elif line.startswith(s+':'): |
|
49 |
|
|
|
51 | linesyntax = rels | |
|
52 | line = line[len(s) + 1:] | |
|
50 | 53 | break |
|
51 |
patterns.append( |
|
|
54 | patterns.append(linesyntax + line) | |
|
52 | 55 | |
|
53 | 56 | return patterns, warnings |
|
54 | 57 |
General Comments 0
You need to be logged in to leave comments.
Login now