fixed spec dependence attribute writing. Fixes #11686 (#11776)

This commit is contained in:
Gregory Lee 2019-06-18 19:13:12 -07:00 committed by Greg Becker
parent 2287dd6165
commit 8706ac1479

View File

@ -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