Looking at the screenshots from #115, I noticed that the local keyword was highlighted in a different way than in the current vscode-hcl grammar.
I traced this back to #94, which changed the recognition of blocks. I made this a little less permissive by disallowing ? in block labels. This fixes the case where a ternary operator followed by an object is recognized as a block.
Looking at the screenshots from #115, I noticed that the
local
keyword was highlighted in a different way than in the current vscode-hcl grammar.I traced this back to #94, which changed the recognition of blocks. I made this a little less permissive by disallowing
?
in block labels. This fixes the case where a ternary operator followed by an object is recognized as a block.UX Before
UX After