class Noir::Lexers::YAML
- Noir::Lexers::YAML
- Noir::Lexer
- Reference
- Object
Defined in:
noir/lexers/yaml.crConstant Summary
-
SPECIAL_VALUES =
Regex.union(["true", "false", "null"] of ::String)
Constructors
Instance Method Summary
- #block_scalar_indent : Nil | Int32
- #block_scalar_indent=(block_scalar_indent : Nil | Int32)
- #continue_indent(match)
- #dedent?(level : Int32)
- #indent : Int32
-
#reset_indent
reset the indentation levels
-
#save_indent(match : String)
Save a possible indentation level
- #set_indent(match, opts = {} of Int32 => Bool)
Instance methods inherited from class Noir::Lexer
current_state
current_state,
lex_all(input : String, output : Formatter)
lex_all,
stack : Deque(Noir::Lexer::State)
stack,
state(name)
state
Constructor methods inherited from class Noir::Lexer
new
new
Class methods inherited from class Noir::Lexer
aliases(aliases : Array(String))aliases aliases, append(name, &) append, filenames(filenames : Array(String))
filenames filenames, mimetypes(mimetypes : Array(String))
mimetypes mimetypes, prepend(name, &) prepend, state(name : Symbol)
state(name : Symbol, &) state, tag(tag : String)
tag : String tag, tag? : String | Nil tag?