textmate_grammar.parsers.matlab

Package Contents

Classes

MatlabParser

Represents a grammar for the MATLAB language.

API

class textmate_grammar.parsers.matlab.MatlabParser(remove_line_continuations: bool = False, **kwargs)[source]

Bases: textmate_grammar.parsers.base.LanguageParser

Represents a grammar for the MATLAB language.

Initialization

Initializes a new instance of the MatlabGrammar class.

Args:

remove_line_continuations (bool, optional): Whether to remove line continuations. Defaults to False.

pre_process(input: str) str[source]

Pre-processes the input text.