Add "editor: copy highlight json" command
Nate needs this to feed to Figma for highlighted code in designs.
This commit is contained in:
@@ -59,7 +59,6 @@ impl HighlightId {
|
||||
theme.highlights.get(self.0 as usize).map(|entry| entry.1)
|
||||
}
|
||||
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
pub fn name<'a>(&self, theme: &'a SyntaxTheme) -> Option<&'a str> {
|
||||
theme.highlights.get(self.0 as usize).map(|e| e.0.as_str())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user