class documentation

class ElixirLexer(RegexLexer):

View In Hierarchy

For the Elixir language.

New in version 1.5.
Constant BUILTIN Undocumented
Constant BUILTIN​_DECLARATION Undocumented
Constant BUILTIN​_NAMESPACE Undocumented
Constant CONSTANT Undocumented
Constant KEYWORD Undocumented
Constant KEYWORD​_OPERATOR Undocumented
Constant OPERATORS1 Undocumented
Constant OPERATORS2 Undocumented
Constant OPERATORS3 Undocumented
Constant PSEUDO​_VAR Undocumented
Constant PUNCTUATION Undocumented
Method gen​_elixir​_sigil​_rules Undocumented
Method get​_tokens​_unprocessed Split text into (tokentype, text) pairs.
Class Variable aliases Undocumented
Class Variable alnum Undocumented
Class Variable complex​_name​_re Undocumented
Class Variable escape​_char​_re Undocumented
Class Variable filenames Undocumented
Class Variable hex​_char​_re Undocumented
Class Variable long​_hex​_char​_re Undocumented
Class Variable mimetypes Undocumented
Class Variable modname​_re Undocumented
Class Variable name Undocumented
Class Variable name​_re Undocumented
Class Variable op1​_re Undocumented
Class Variable op2​_re Undocumented
Class Variable op3​_re Undocumented
Class Variable ops​_re Undocumented
Class Variable punctuation​_re Undocumented
Class Variable special​_atom​_re Undocumented
Class Variable tokens Undocumented

Inherited from Lexer (via RegexLexer):

Method analyse​_text No summary
Method get​_tokens Return an iterable of (tokentype, value) pairs generated from text. If unfiltered is set to True, the filtering mechanism is bypassed even if filters are defined.
Class Variable alias​_filenames Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method add​_filter Add a new stream filter to this lexer.
Class Variable priority Undocumented
Instance Variable encoding Undocumented
Instance Variable ensurenl Undocumented
Instance Variable filters Undocumented
Instance Variable options Undocumented
Instance Variable stripall Undocumented
Instance Variable stripnl Undocumented
Instance Variable tabsize Undocumented
BUILTIN: tuple[str, ...] =

Undocumented

Value
('case',
 'cond',
 'for',
 'if',
 'unless',
 'try',
 'receive',
...
BUILTIN_DECLARATION: tuple[str, ...] =

Undocumented

Value
('def',
 'defp',
 'defmodule',
 'defprotocol',
 'defmacro',
 'defmacrop',
 'defdelegate',
...
BUILTIN_NAMESPACE: tuple[str, ...] =

Undocumented

Value
('import', 'require', 'use', 'alias')
CONSTANT: tuple[str, ...] =

Undocumented

Value
('nil', 'true', 'false')
KEYWORD: tuple[str, ...] =

Undocumented

Value
('fn', 'do', 'end', 'after', 'else', 'rescue', 'catch')
KEYWORD_OPERATOR: tuple[str, ...] =

Undocumented

Value
('not', 'and', 'or', 'when', 'in')
OPERATORS1: tuple[str, ...] =

Undocumented

Value
('<', '>', '+', '-', '*', '/', '!', '^', '&')
OPERATORS2: tuple[str, ...] =

Undocumented

Value
('==',
 '!=',
 '<=',
 '>=',
 '&&',
 '||',
 '<>',
...
OPERATORS3: tuple[str, ...] =

Undocumented

Value
('<<<',
 '>>>',
 '|||',
 '&&&',
 '^^^',
 '~~~',
 '===',
...
PSEUDO_VAR: tuple[str, ...] =

Undocumented

Value
('_', '__MODULE__', '__DIR__', '__ENV__', '__CALLER__')
PUNCTUATION: tuple[str, ...] =

Undocumented

Value
('\\\\', '<<', '>>', '=>', '(', ')', ':', ';', ',', '[', ']')
def gen_elixir_sigil_rules():

Undocumented

def get_tokens_unprocessed(self, text):

Split text into (tokentype, text) pairs.

stack is the inital stack (default: ['root'])

aliases: list[str] =

Undocumented

alnum: str =

Undocumented

complex_name_re =

Undocumented

escape_char_re: str =

Undocumented

filenames: list[str] =

Undocumented

hex_char_re: str =

Undocumented

long_hex_char_re: str =

Undocumented

mimetypes: list[str] =

Undocumented

modname_re =

Undocumented

name: str =

Undocumented

name_re =

Undocumented

op1_re =

Undocumented

op2_re =

Undocumented

op3_re =

Undocumented

ops_re =

Undocumented

punctuation_re =

Undocumented

special_atom_re: str =

Undocumented

tokens =

Undocumented