aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/theme.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/theme.rs')
-rw-r--r--helix-view/src/theme.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-view/src/theme.rs b/helix-view/src/theme.rs
index a288ae9a..4acc5664 100644
--- a/helix-view/src/theme.rs
+++ b/helix-view/src/theme.rs
@@ -297,6 +297,11 @@ impl Theme {
self.highlights[index]
}
+ #[inline]
+ pub fn scope(&self, index: usize) -> &str {
+ &self.scopes[index]
+ }
+
pub fn name(&self) -> &str {
&self.name
}