summaryrefslogtreecommitdiffstats
path: root/src/paint.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-05-29 15:41:01 -0400
committerDan Davison <dandavison7@gmail.com>2020-05-29 18:49:01 -0400
commit533c991e451dfd636f6ceb3661df4dfeacaae4f9 (patch)
treeb70eb1980dfc1e2d735a7439f4c89295a191d938 /src/paint.rs
parentfeac36202aa41ff9264391e360316fbdc96b6708 (diff)
Introduce is_raw style attribute
If this attribute is set in --thing-style then the `thing` element text received from git should be passed though unchanged. (It may or may not have a decoration.)
Diffstat (limited to 'src/paint.rs')
-rw-r--r--src/paint.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/paint.rs b/src/paint.rs
index ca311701..aa8aec4e 100644
--- a/src/paint.rs
+++ b/src/paint.rs
@@ -417,6 +417,7 @@ mod superimpose_style_sections {
is_underline: true,
..ansi_term::Style::new()
},
+ is_raw: false,
is_syntax_highlighted: true,
decoration_style: None,
};
@@ -429,6 +430,7 @@ mod superimpose_style_sections {
is_underline: true,
..ansi_term::Style::new()
},
+ is_raw: false,
is_syntax_highlighted: false,
decoration_style: None,
};
@@ -441,6 +443,7 @@ mod superimpose_style_sections {
is_underline: true,
..ansi_term::Style::new()
},
+ is_raw: false,
is_syntax_highlighted: true,
decoration_style: None,
};