diff options
author | Blaž Hrastnik | 2021-05-27 15:00:51 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-05-27 15:00:51 +0000 |
commit | 094203c74e19d49b3bfc74cf2ab4f853a773c195 (patch) | |
tree | 707927ed1734a504131450a84bdf71d76baf7585 /helix-term/src/ui/editor.rs | |
parent | b114cfa119bc94396f1ed38109a51183035574ed (diff) |
Update deps, introduce the new tree-sitter lifetimes
Diffstat (limited to 'helix-term/src/ui/editor.rs')
-rw-r--r-- | helix-term/src/ui/editor.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 6d792838..c597f840 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -148,6 +148,13 @@ impl EditorView { // TODO: scope matching: biggest union match? [string] & [html, string], [string, html] & [ string, html] // can do this by sorting our theme matches based on array len (longest first) then stopping at the // first rule that matches (rule.all(|scope| scopes.contains(scope))) + // log::info!( + // "scopes: {:?}", + // spans + // .iter() + // .map(|span| theme.scopes()[span.0].as_str()) + // .collect::<Vec<_>>() + // ); let style = match spans.first() { Some(span) => theme.get(theme.scopes()[span.0].as_str()), None => theme.get("ui.text"), |