Merge branch 'master' into dev

This commit is contained in:
z7zmey 2018-07-14 18:38:10 +03:00
commit f89d7d3a17

View File

@ -54,8 +54,10 @@ func Rune2Class(r rune) int {
if unicode.IsGraphic(r) { if unicode.IsGraphic(r) {
return classUnicodeGraphic return classUnicodeGraphic
} }
// return classOther if r == lex.RuneEOF {
return -1 return int(r)
}
return classOther
} }
// NewLexer the Lexer constructor // NewLexer the Lexer constructor