-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New option to map raw styles encountered in input
Unify handling of styles parsed from raw line and computed diff styles. This enables syntax highlighting to be used in color-moved sections. Fixes #72
- Loading branch information
1 parent
8354b62
commit 1eb099d
Showing
8 changed files
with
244 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[1mdiff --git a/file.py b/file.py[m | ||
[1mindex f07db74..3cb162d 100644[m | ||
[1m--- a/file.py[m | ||
[1m+++ b/file.py[m | ||
[36m@@ -1,2 +1,2 @@[m | ||
[1;35m-class X: pass[m | ||
class Y: pass[m | ||
[1;36m+[m[1;36mclass X: pass[m |
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,14 @@ | ||
[33mcommit fffb6bf94087c432b6e2e29cab97bf1f8987c641[m | ||
Author: Dan Davison <[email protected]> | ||
Date: Tue Nov 23 14:51:46 2021 -0500 | ||
|
||
DEBUG | ||
|
||
[1mdiff --git a/src/config.rs b/src/config.rs[m | ||
[1mindex efe6adb..9762222 100644[m | ||
[1m--- a/src/config.rs[m | ||
[1m+++ b/src/config.rs[m | ||
[36m@@ -400,6 +400,7 @@[m [mfn make_blame_palette(blame_palette: Option<String>, is_light_mode: bool) -> Vec[m | ||
[1;36m+[m[1;36mpub fn user_supplied_option(option: &str, arg_matches: &clap::ArgMatches) -> bool {[m | ||
[36m@@ -416,29 +433,30 @@[m [mfn make_styles_map(opt: &cli::Opt) -> Option<HashMap<style::AnsiTermStyleEqualit[m | ||
[1;35m-pub fn user_supplied_option(option: &str, arg_matches: &clap::ArgMatches) -> bool {[m |
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
Oops, something went wrong.