rt320 opened a new issue, #493:
URL: https://github.com/apache/daffodil-vscode/issues/493
The self-closing element tags in this snippet show as open tags with a close
tag to the "checkMissingCloseTag" function. This can result in a closing tag
for this item showing up at the cursor position if a '>' symbol is typed at the
end of an existing line. This code from gif.dfdl.xsd can cause an element
closing tag to be generated at the cursor position if a '>' is typed at the end
of a previous line.
`<xs:element name="Header">
<xs:complexType>
<xs:sequence>
<!-- Signature - Identifies the GIF Data Stream. This
field contains the fixed value 'GIF'. -->
<xs:sequence
dfdl:hiddenGroupRef="hidden_GIF_Signature_Group" />
<xs:element name='Signature' type='xs:string'
dfdl:inputValueCalc='{
if (xs:string(../Hidden_Signature) eq
"474946") then "GIF"
else fn:error("gif", "fn:error
called.", "Header")
}' />
<!--
Version - Version number used to format
the data stream.
Version Numbers as of 10 July 1990 :
"87a" - May 1987 and "89a" - July 1989
-->
<xs:sequence
dfdl:hiddenGroupRef="hidden_GIF_Version_Group"/>
<xs:element name="Version" type="xs:string"
dfdl:inputValueCalc='{
if (xs:string(../Hidden_Version) eq
"383961") then "89a"
else if (xs:string(../Hidden_Version)
eq "383761") then "87a"
else fn:error("gif", "fn:error
called.", "Header")
}'/>
</xs:sequence>
</xs:complexType>
</xs:element>
`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]