-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle case-insensitive document declaration in the XML parser
Current we are strict on the document declaration for files which are parsed by the XML parser, the document declaration must be in upper case. Going forward support document declarations regardless of their case. We want to do this to allow the XML to parse HTML files, which aren't as strict in their formatting
- Loading branch information
Showing
11 changed files
with
245 additions
and
209 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
4 changes: 2 additions & 2 deletions
4
rewrite-xml/src/main/java/org/openrewrite/xml/internal/grammar/XMLLexer.interp
Large diffs are not rendered by default.
Oops, something went wrong.
399 changes: 201 additions & 198 deletions
399
rewrite-xml/src/main/java/org/openrewrite/xml/internal/grammar/XMLLexer.java
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -36,7 +36,6 @@ STRING=35 | |
Name=36 | ||
'?'=8 | ||
'<'=10 | ||
'DOCTYPE'=17 | ||
'/>'=29 | ||
'%@'=31 | ||
'%'=32 | ||
|
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ null | |
null | ||
null | ||
null | ||
'DOCTYPE' | ||
null | ||
null | ||
null | ||
null | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,6 @@ STRING=35 | |
Name=36 | ||
'?'=8 | ||
'<'=10 | ||
'DOCTYPE'=17 | ||
'/>'=29 | ||
'%@'=31 | ||
'%'=32 | ||
|
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