forked from KolibriOS/kolibrios
[asmxygen][parse_variable] No reason to read comments by hand anymore
git-svn-id: svn://kolibrios.org@8961 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
9f0eae6809
commit
ed5ccbec27
@ -1646,15 +1646,10 @@ def parse_variable(r, first_word = None):
|
|||||||
value += r.step()
|
value += r.step()
|
||||||
# Skip spaces after the value
|
# Skip spaces after the value
|
||||||
r.skip_spaces()
|
r.skip_spaces()
|
||||||
# Read a comment if any
|
# Read till end of the line to get a comment from the reader
|
||||||
comment = ''
|
while r.curr() != '':
|
||||||
if r.curr() == ';':
|
|
||||||
# Skip the ';'
|
|
||||||
r.step()
|
r.step()
|
||||||
# Read the comment
|
# Build the result
|
||||||
while r.curr() != '':
|
|
||||||
comment += r.step()
|
|
||||||
# Postprocess type
|
|
||||||
return AsmVariable(location, name, r.comment, var_type, value)
|
return AsmVariable(location, name, r.comment, var_type, value)
|
||||||
|
|
||||||
def parse_after_struct(r, as_union = True):
|
def parse_after_struct(r, as_union = True):
|
||||||
|
Loading…
Reference in New Issue
Block a user