Compare commits
1 Commits
dec91e0e8d
...
66d061dfda
Author | SHA1 | Date | |
---|---|---|---|
|
66d061dfda |
@ -89,11 +89,12 @@ class BlockNode:
|
||||
|
||||
|
||||
class CodeBlock(BlockNode):
|
||||
def __init__(self, header, subtype):
|
||||
def __init__(self, header, subtype, arguments):
|
||||
super().__init__()
|
||||
self.header = header
|
||||
self.lines = None
|
||||
self.subtype = subtype
|
||||
self.arguments = arguments
|
||||
|
||||
def set_lines(self, lines):
|
||||
self.lines = lines
|
||||
|
@ -481,7 +481,7 @@ class Headline:
|
||||
and line.delimiter_type == DelimiterLineType.BEGIN_BLOCK
|
||||
):
|
||||
assert type(current_node) in NON_FINISHED_GROUPS
|
||||
current_node = dom.CodeBlock(line, line.type_data.subtype)
|
||||
current_node = dom.CodeBlock(line, line.type_data.subtype, line.arguments)
|
||||
|
||||
elif isinstance(line, Keyword):
|
||||
logging.warning("Keywords not implemented on `as_dom()`")
|
||||
|
Loading…
Reference in New Issue
Block a user