diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-27 15:26:08 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-27 15:58:47 -0400 |
commit | 284392c7580e082070e0b9c05d712da65d52c943 (patch) | |
tree | 798df4207d09aa1d600345c9a455e579d9364ddc /src/syntect_color.rs | |
parent | 327792f4bc67d05d03785fe127df9990d2ffce37 (diff) |
Refactor: Create color and theme modules, consolidate style code
Diffstat (limited to 'src/syntect_color.rs')
-rw-r--r-- | src/syntect_color.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntect_color.rs b/src/syntect_color.rs index 6e0a8a36..dccbc634 100644 --- a/src/syntect_color.rs +++ b/src/syntect_color.rs @@ -2,10 +2,10 @@ use std::str::FromStr; use syntect::highlighting::Color; -use crate::style; +use crate::color; pub fn syntect_color_from_ansi_name(name: &str) -> Option<Color> { - style::ansi_color_name_to_number(name).and_then(syntect_color_from_ansi_number) + color::ansi_color_name_to_number(name).and_then(syntect_color_from_ansi_number) } /// Convert 8-bit ANSI code to #RGBA string with ANSI code in red channel and 0 in alpha channel. |