package css_lexer
import "github.com/evanw/esbuild/internal/css_lexer"
Index ¶
- func ContentsOfDimensionToken(raw string) (string, string)
- func ContentsOfStringToken(raw string) string
- func ContentsOfURLToken(raw string) (string, logger.Range)
- type T
- type Token
Functions ¶
func ContentsOfDimensionToken ¶
func ContentsOfStringToken ¶
func ContentsOfURLToken ¶
Types ¶
type T ¶
type T uint8
const ( TEndOfFile T = iota TAtKeyword TBadString TBadURL TCDC // "-->" TCDO // "<!--" TCloseBrace TCloseBracket TCloseParen TColon TComma TDelim TDelimAmpersand TDelimAsterisk TDelimBar TDelimCaret TDelimDollar TDelimDot TDelimEquals TDelimExclamation TDelimGreaterThan TDelimPlus TDelimSlash TDelimTilde TDimension TFunction THash THashID TIdent TNumber TOpenBrace TOpenBracket TOpenParen TPercentage TSemicolon TString TURL TWhitespace )
func (T) String ¶
type Token ¶
This token struct is designed to be memory-efficient. It just references a range in the input file instead of directly containing the substring of text since a range takes up less memory than a string.
func Tokenize ¶
func (Token) Raw ¶
Source Files ¶
- Version
- v0.7.14
- Published
- Oct 10, 2020
- Platform
- windows/amd64
- Imports
- 3 packages
- Last checked
- 3 hours ago –
Tools for package owners.