modulepackage
0.0.0-20160125172232-7894d8ab8bfe
Repository: https://github.com/x1ddos/csslex.git
Documentation: pkg.go.dev
# README
csslex
A simple CSS lexer written in Go, without using regexp.
Docs and examples are on godoc: https://godoc.org/github.com/crhym3/csslex
License
(c) Google, 2015. Licensed under Apache-2 license.
# Functions
Lex creates a new lexer and returns channel which will be sent Item tokens.
# Constants
The content of an At-Rule.
Ending of an At-Rule block.
Beginning of an At-Rule block.
At-Rule identifier, including @ symbol.
Ending of a regular CSS block, not inside At-Rule.
Beginning of a regular CSS block, not inside At-Rule.
CSS declaration in a block.
Parsing error.
CSS selector.
# Type aliases
ItemType specifies type of Item.