-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for syntax in Java 13 (#2060)
This adds support for the new `yield` keyword and text blocks (triple quoted strings) which are both introduced in Java 13.
- Loading branch information
1 parent
007c9af
commit a7b95dd
Showing
7 changed files
with
77 additions
and
17 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,50 @@ | ||
"foo" | ||
"\"foo\"" | ||
|
||
""" | ||
foo | ||
""" | ||
|
||
var a = """ | ||
\""" | ||
foo"""; | ||
|
||
""" | ||
The quick brown fox""" + " \n" + """ | ||
jumps over the lazy dog | ||
""" | ||
|
||
String empty = """ | ||
"""; | ||
|
||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["string", "\"foo\""], | ||
["string", "\"\\\"foo\\\"\""], | ||
|
||
["triple-quoted-string", "\"\"\"\nfoo\n\"\"\""], | ||
|
||
["keyword", "var"], | ||
" a ", | ||
["operator", "="], | ||
["triple-quoted-string", "\"\"\"\n\\\"\"\"\nfoo\"\"\""], | ||
["punctuation", ";"], | ||
|
||
["triple-quoted-string", "\"\"\"\nThe quick brown fox\"\"\""], | ||
["operator", "+"], | ||
["string", "\" \\n\""], | ||
["operator", "+"], | ||
["triple-quoted-string", "\"\"\"\njumps over the lazy dog\n\"\"\""], | ||
|
||
["class-name", "String"], | ||
" empty ", | ||
["operator", "="], | ||
["triple-quoted-string", "\"\"\"\n\"\"\""], | ||
["punctuation", ";"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for strings. |
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