class Noir::Lexers::YAML

Defined in:

noir/lexers/yaml.cr

Constant Summary

SPECIAL_VALUES = Regex.union(["true", "false", "null"] of ::String)

Constructors

Instance Method Summary

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?

Class methods inherited from module Noir::Tokens

each_token(&) each_token

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def block_scalar_indent : Nil | Int32 #

[View source]
def block_scalar_indent=(block_scalar_indent : Nil | Int32) #

[View source]
def continue_indent(match) #

[View source]
def dedent?(level : Int32) #

[View source]
def indent : Int32 #

[View source]
def reset_indent #

reset the indentation levels


[View source]
def save_indent(match : String) #

Save a possible indentation level


[View source]
def set_indent(match, opts = {} of Int32 => Bool) #

[View source]