asciigoat's INI parser
https://asciigoat.org/ini
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
494 B
17 lines
494 B
1 year ago
|
package parser
|
||
|
|
||
|
import (
|
||
|
"asciigoat.org/core/lexer"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
// IsNewLine tells if the rune indicates a line break or the start of one
|
||
|
IsNewLine = lexer.NewIsIn("\r\n")
|
||
|
// IsNotNewLine tells if the rune is not a line break nor the start of one
|
||
|
IsNotNewLine = lexer.NewIsNot(IsNewLine)
|
||
|
// IsSpace tells if the rune is considered whitespace by Unicode
|
||
|
IsSpace = lexer.IsSpace
|
||
|
// IsNotSpace tells if the rune is not considered whitespace by Unicode
|
||
|
IsNotSpace = lexer.NewIsNot(IsSpace)
|
||
|
)
|