Make is_identifier pattern locale-independent

This commit is contained in:
Lars Mueller 2022-01-04 13:44:01 +01:00
parent 005be9fbf5
commit a17981879d

@ -183,7 +183,7 @@ function is_keyword(text)
end
function is_identifier(text)
return (not keywords[text]) and text:match"^[%a_][%a%d_]*$"
return (not keywords[text]) and text:match"^[A-Za-z_][A-Za-z%d_]*$"
end
-- Export environment