Ignore meaningless @IDENT@ on CONT or CONC line as detailed at http://www.tamurajones.net/IdentCONT.xhtml
svn: r23079
This commit is contained in:
parent
dcd006b8e6
commit
a584c5dfed
@ -752,6 +752,13 @@ class Lexer(object):
|
|||||||
# line is now [None, alphanum+pointer_string, rest]
|
# line is now [None, alphanum+pointer_string, rest]
|
||||||
tag = '@' + line[1] + '@'
|
tag = '@' + line[1] + '@'
|
||||||
line_value = line[2]
|
line_value = line[2]
|
||||||
|
## Ignore meaningless @IDENT@ on CONT or CONC line
|
||||||
|
## as detailed at http://www.tamurajones.net/IdentCONT.xhtml
|
||||||
|
if (line_value.lstrip().startswith("CONT ") or
|
||||||
|
line_value.lstrip().startswith("CONC ")):
|
||||||
|
line = line_value.lstrip().partition(' ')
|
||||||
|
tag = line[0]
|
||||||
|
line_value = line[2]
|
||||||
else:
|
else:
|
||||||
line = line.partition(' ')
|
line = line.partition(' ')
|
||||||
tag = line[0]
|
tag = line[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user