equal
deleted
inserted
replaced
1609 } |
1609 } |
1610 syntax = b'relre:' |
1610 syntax = b'relre:' |
1611 patterns = [] |
1611 patterns = [] |
1612 |
1612 |
1613 fp = open(filepath, b'rb') |
1613 fp = open(filepath, b'rb') |
1614 for lineno, line in enumerate(util.iterfile(fp), start=1): |
1614 for lineno, line in enumerate(fp, start=1): |
1615 if b"#" in line: |
1615 if b"#" in line: |
1616 global _commentre |
1616 global _commentre |
1617 if not _commentre: |
1617 if not _commentre: |
1618 _commentre = util.re.compile(br'((?:^|[^\\])(?:\\\\)*)#.*') |
1618 _commentre = util.re.compile(br'((?:^|[^\\])(?:\\\\)*)#.*') |
1619 # remove comments prefixed by an even number of escapes |
1619 # remove comments prefixed by an even number of escapes |