pub trait Language {
    fn name(&self) -> String;
    fn init(&self, x: &mut LexerContext) -> Result<(), Error>;

    fn names(&self) -> Vec<String>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
{ ... } }
Expand description

A language implementation for Highlighter.

Required Methods

Returns the name of the programming language.

Initializes the programming language.

Provided Methods

Returns all of the aliases of the programming language.

For example:

vec!["js".to_owned(), "javascript".to_owned(), "jscript".to_owned(), "es".to_owned(), "ecmascript".to_owned()];

Implementors