parent
2287dd6165
commit
8706ac1479
@ -3130,6 +3130,7 @@ def write(s, c=None):
|
|||||||
cwrite(f, stream=out, color=color)
|
cwrite(f, stream=out, color=color)
|
||||||
|
|
||||||
def write_attribute(spec, attribute, color):
|
def write_attribute(spec, attribute, color):
|
||||||
|
current = spec
|
||||||
if attribute.startswith('^'):
|
if attribute.startswith('^'):
|
||||||
attribute = attribute[1:]
|
attribute = attribute[1:]
|
||||||
dep, attribute = attribute.split('.', 1)
|
dep, attribute = attribute.split('.', 1)
|
||||||
@ -3140,7 +3141,6 @@ def write_attribute(spec, attribute, color):
|
|||||||
'Format string attributes must be non-empty')
|
'Format string attributes must be non-empty')
|
||||||
attribute = attribute.lower()
|
attribute = attribute.lower()
|
||||||
|
|
||||||
current = spec
|
|
||||||
sig = ''
|
sig = ''
|
||||||
if attribute[0] in '@%/':
|
if attribute[0] in '@%/':
|
||||||
# color sigils that are inside braces
|
# color sigils that are inside braces
|
||||||
|
Loading…
Reference in New Issue
Block a user