Details
Details
Diff Detail
Diff Detail
Event Timeline
clang/lib/Format/FormatTokenLexer.cpp | ||
---|---|---|
197 | This merging is only valid if CSharpStringLiteral starts with @" or with $@"; if the literal stars with $", it's invalid. Consider also adding tests for these combinations. | |
213 | Nice catch! |
clang/unittests/Format/FormatTestCSharp.cpp | ||
---|---|---|
415 | maybe add an example where these are applied a couple of times, like in @"""Hello, world""" (to make sure the state of the token stream after the merging is good). |
This merging is only valid if CSharpStringLiteral starts with @" or with $@"; if the literal stars with $", it's invalid.
Consider this example:
$"""Hello"
In this case these really are 2 different tokens (I don't know C# so I might be wrong, but vim syntax highlighting suggests this).
Consider also adding tests for these combinations.