pub struct BashSyntaxFactory { /* private fields */ }Expand description
Factory for creating Bash syntax drivers.
This factory creates TreeSitterDriver instances configured for
Bash syntax highlighting and fold detection using the tree-sitter-bash grammar.
Implementations§
Source§impl BashSyntaxFactory
impl BashSyntaxFactory
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new Bash syntax factory.
Pre-compiles the highlights and folds queries for efficiency.
§Panics
Panics if the embedded queries fail to compile. This should never happen with correctly bundled queries.
Sourcepub const fn folds_query(&self) -> &Arc<Query>
pub const fn folds_query(&self) -> &Arc<Query>
Get the shared folds query.
Trait Implementations§
Source§impl Default for BashSyntaxFactory
impl Default for BashSyntaxFactory
Source§impl SyntaxDriverFactory for BashSyntaxFactory
impl SyntaxDriverFactory for BashSyntaxFactory
Auto Trait Implementations§
impl Freeze for BashSyntaxFactory
impl RefUnwindSafe for BashSyntaxFactory
impl Send for BashSyntaxFactory
impl Sync for BashSyntaxFactory
impl Unpin for BashSyntaxFactory
impl UnsafeUnpin for BashSyntaxFactory
impl UnwindSafe for BashSyntaxFactory
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