Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Lexer generates a stream of Tokens from raw HAML text
type TokenKind ¶
type TokenKind int
TokenKind specifies the type of a Token
const ( // NewLine are found at the end of each textual line NewLine TokenKind = iota // Indent contain all of the leading whitespace of a line Indent // Text contains all of the trailing text on a line Text // ID specifies the HTML tag ID for the current Div tag ID // Class specifies an HTML class for the current tag Class // Element specifies kind of tag for this line Element // AttrsStart specifies the beginning of an attribute list AttrsStart // AttrName is the name of an attribute AttrName // AttrAssign is the assignment operator for Name:Value pairs of attributes AttrAssign // AttrValue is the value assigned to an attribute, as a quoted string AttrValue // AttrSep is the list separator for attributes AttrSep // AttrsEnd marks the end of an attribute list AttrsEnd // Error is a special Token used to communicate errors to the Parser Error )
Click to show internal directories.
Click to hide internal directories.