forked from eclipse-lemminx/lemminx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error range for cvc-complex-type-2.3
Now handles text nodes that are only take up one line, as well as <![CDATA[]]>. Closes eclipse-lemminx#885 Signed-off-by: David Thompson <[email protected]>
- Loading branch information
Showing
3 changed files
with
126 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
org.eclipse.lemminx/src/test/resources/xsd/close-tag-type.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:element name="foo"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element ref="bar" minOccurs="0" maxOccurs="unbounded"/> | ||
<xs:element ref="foo" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="bar"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element ref="bar" minOccurs="0" maxOccurs="unbounded"/> | ||
<xs:element ref="foo" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:schema> |