lexer: constants and helpers #9

Merged
amery merged 3 commits from pr-amery-lexer-extra into main 2023-08-30 19:44:26 +02:00
Showing only changes of commit 0098052142 - Show all commits
+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)
}