forked from SonarOpenCommunity/sonar-cxx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JoinStringsPreprocessor: store original tokens for highlighting
Fix highlighting issue SonarOpenCommunity#1468 * `JoinStringsPreprocessor` replaces adjacent string Tokens with a single concatenated one * Previously the original Tokens were lost and proper highligting for multiline adjacent string literals were impossible * Solution: a) store original Tokens as Trivia b) if such trivia was found during highlighting: highlight preserved Tokens * ALSO minor refactoring and simplification of `JoinStringsPreprocessor`
- Loading branch information
1 parent
785ef52
commit ac75a3f
Showing
4 changed files
with
98 additions
and
49 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