-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust error range for RelaxNG element-not-allow-yet error
Signed-off-by: Jessica He <[email protected]>
- Loading branch information
1 parent
fb9eabd
commit 705f1cf
Showing
4 changed files
with
36 additions
and
0 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
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
21 changes: 21 additions & 0 deletions
21
org.eclipse.lemminx/src/test/resources/relaxng/notAllowedYet.rng
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,21 @@ | ||
<grammar xmlns="http://relaxng.org/ns/structure/1.0" | ||
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> | ||
<start> | ||
<ref name="rootElt" /> | ||
</start> | ||
<define name="rootElt"> | ||
<element name="root"> | ||
<choice> | ||
<element name="elementA"> | ||
<text /> | ||
</element> | ||
<element name="elementB"> | ||
<text /> | ||
</element> | ||
</choice> | ||
<element name="element2"> | ||
<text /> | ||
</element> | ||
</element> | ||
</define> | ||
</grammar> |