Fix parsing of percent tokens with unicode separators

This commit is contained in:
Maxime Coste 2018-02-06 20:29:08 +11:00
parent 4c0adfaf4a
commit e2c1d44a7f
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ Token parse_percent_token(Reader& reader)
{ {
++reader; ++reader;
const auto type_start = reader.pos; const auto type_start = reader.pos;
while (reader and isalpha(*reader)) while (reader and iswalpha(*reader))
++reader; ++reader;
StringView type_name = reader.substr_from(type_start); StringView type_name = reader.substr_from(type_start);

View File

@ -1 +1 @@
:exec i %дabcд <lt>esc> <ret> :exec i %•abc• <lt>esc> <ret>