-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add UTF-8 byte order mark (BOM) to the rewrite-json Lexer/Parser.
- Loading branch information
Showing
22 changed files
with
970 additions
and
949 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,3 +145,5 @@ fragment NEWLINE | |
WS | ||
: [ \t\n\r\u00A0\uFEFF\u2003] + -> skip | ||
; | ||
UTF_8_BOM : '\uFEFF' -> skip; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,11 @@ NUMERIC_LITERAL=12 | |
SYMBOL=13 | ||
IDENTIFIER=14 | ||
WS=15 | ||
UTF_8_BOM=16 | ||
'{'=1 | ||
','=2 | ||
'}'=3 | ||
':'=4 | ||
'['=5 | ||
']'=6 | ||
'\uFEFF'=16 |
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
5 changes: 4 additions & 1 deletion
5
rewrite-json/src/main/java/org/openrewrite/json/internal/grammar/JSON5Lexer.interp
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.