[−][src]Enum comment_parser::LanguageError
LanguageError
is an error that can be returned by
get_syntax_from_path
and get_syntax_from_extension
.
Variants
The language could not be identified.
If you get UnknownLanguage
that means the language is not supported,
by the sister crate detect-lang.
Feel free to submit an issue on the issue tracker, or add it
to languages.rs and submit a pull request.
The language was identified by detect-lang, but syntax rules are not included and predefined in comment-parser for the language.
Supported Languages
If syntax rules for a language does not exist, then consider
trying another language, which has similar syntax rules when
it comes to comments and strings. For instance c
vs cpp
or
css
vs scss
.
Click here to see all predefined languages.
Custom Syntax Rules
Go to SyntaxRule
for an example on defining
custom syntax rules.
If you implement syntax rules for an unsupported language, then feel free to submit
your rules
on the issue tracker, or add it to
languages.rs and submit a pull request.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LanguageError
impl Send for LanguageError
impl Sync for LanguageError
impl Unpin for LanguageError
impl UnwindSafe for LanguageError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,