Add "editor: copy highlight json" command
Nate needs this to feed to Figma for highlighted code in designs.
This commit is contained in:
parent
c74f8eb9e3
commit
195215f1e0
2 changed files with 39 additions and 3 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue