-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'walles/less-highlighting'
Censor multi-line highlights. IMO they make *everything* stand out rather than just the relevant parts, so highlighting those don't help.
- Loading branch information
Showing
9 changed files
with
265 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- let tokens = std::mem::take(&mut self.tokens); | ||
+ let mut tokens = std::mem::take(&mut self.tokens); | ||
+ | ||
+ // FIXME: Maybe do highlight_space_between_words() before this one? And | ||
+ // not do that for each line? | ||
+ cancel_multiline_highlights(&mut tokens); | ||
+ |
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,7 @@ | ||
[31m- let tokens = std::mem::take(&mut self.tokens);[0m | ||
[32m+ let [7mmut [27mtokens = std::mem::take(&mut self.tokens);[0m | ||
[32m+[0m | ||
[32m+ // FIXME: Maybe do highlight_space_between_words() before this one? And[0m | ||
[32m+ // not do that for each line?[0m | ||
[32m+ cancel_multiline_highlights(&mut tokens);[0m | ||
[32m+[0m |
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
Oops, something went wrong.