Category talk:Wren-check: Difference between revisions

Content added Content deleted
m (→‎Source code: Now uses Wren S/H lexer.)
(→‎Source code: Fixed bug in Check.char method.)
 
Line 172: Line 172:
int("max", max, min)
int("max", max, min)
char(name, value)
char(name, value)
if (value.codePoints[0] < min.codePoints[0] || value.codePoints[0] > max.codePoints[0]) {
if (value.codePoints[0] < min || value.codePoints[0] > max) {
abort_(name, value, "a character between '%(min)' and '%(max)'")
abort_(name, value, "a character between '%(min)' and '%(max)'")
}
}