pub struct Highlighting {
pub language: Language,
pub highlight_query: *const u8,
pub highlight_query_len: usize,
pub injection_query: *const u8,
pub injection_query_len: usize,
pub locals_query: *const u8,
pub locals_query_len: usize,
}
Expand description
Highlighting language description.
Highlighting is provided by tree-sitter, see tree-sitter’s documentation on how to define new languages. String values are expected to be in UTF-8 arrays without nul terminator.
Fields§
§language: Language
§highlight_query: *const u8
§highlight_query_len: usize
§injection_query: *const u8
§injection_query_len: usize
§locals_query: *const u8
§locals_query_len: usize
Trait Implementations§
impl Send for Highlighting
impl Sync for Highlighting
Auto Trait Implementations§
impl Freeze for Highlighting
impl RefUnwindSafe for Highlighting
impl Unpin for Highlighting
impl UnwindSafe for Highlighting
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more