Browse Source

lexer: IsSpace()

Signed-off-by: Alejandro Mery <amery@jpi.io>
pull/9/head
Alejandro Mery 1 year ago
parent
commit
0098052142
  1. 9
      lexer/runes.go

9
lexer/runes.go

@ -0,0 +1,9 @@
package lexer
import "unicode"
// IsSpace reports whether the rune is a space character as
// defined by Unicode's White Space property
func IsSpace(r rune) bool {
return unicode.IsSpace(r)
}
Loading…
Cancel
Save