-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This ensures that a triple quoted string is not closed until the last quote. Before this patch, it would try to start closing the triple quote starting the first quote it encounters.
- Loading branch information
1 parent
25c8a55
commit 66f983e
Showing
6 changed files
with
20 additions
and
6 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
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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
// SYNTAX TEST "source.kotlin" "Double quotes in character value." | ||
// SYNTAX TEST "source.kotlin" "Double quotes in character value and quadrupel double quotes" | ||
|
||
foo('"') | ||
// ^ -string.quoted.double.kotlin | ||
|
||
val same = '"' == '"' | ||
// ^ -string.quoted.double.kotlin | ||
// ^ -string.quoted.double.kotlin | ||
|
||
foo(""""."""") | ||
//^^^^ source.kotlin | ||
// ^ -punctuation.definition.string.end.kotlin | ||
// ^ -punctuation.definition.string.begin.kotlin | ||
// ^^ -string.quoted.double.kotlin |