lexer: IsSpace()

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-29 20:18:15 +00:00
parent a02326a0a6
commit 0098052142
+9
View File
@@ -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)
}