pub struct JavaScriptLanguage;Expand description
JavaScript language support
Trait Implementations§
Source§impl LanguageSupport for JavaScriptLanguage
impl LanguageSupport for JavaScriptLanguage
Source§fn language_id(&self) -> &'static str
fn language_id(&self) -> &'static str
Unique identifier for this language (e.g., “rust”, “python”)
Source§fn file_extensions(&self) -> &'static [&'static str]
fn file_extensions(&self) -> &'static [&'static str]
File extensions that map to this language (e.g., [“rs”] for Rust)
Source§fn tree_sitter_language(&self) -> Language
fn tree_sitter_language(&self) -> Language
The tree-sitter Language for this grammar
Source§fn highlights_query(&self) -> &'static str
fn highlights_query(&self) -> &'static str
Highlight query (required)
Source§fn folds_query(&self) -> Option<&'static str>
fn folds_query(&self) -> Option<&'static str>
Fold query (optional)
Source§fn textobjects_query(&self) -> Option<&'static str>
fn textobjects_query(&self) -> Option<&'static str>
Text objects query (optional)
Source§fn decorations_query(&self) -> Option<&'static str>
fn decorations_query(&self) -> Option<&'static str>
Decorations query (optional, used by markdown)
Source§fn injections_query(&self) -> Option<&'static str>
fn injections_query(&self) -> Option<&'static str>
Injections query for embedded languages (optional)
Auto Trait Implementations§
impl Freeze for JavaScriptLanguage
impl RefUnwindSafe for JavaScriptLanguage
impl Send for JavaScriptLanguage
impl Sync for JavaScriptLanguage
impl Unpin for JavaScriptLanguage
impl UnwindSafe for JavaScriptLanguage
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