Fix parsing of _ENV

This commit is contained in:
Sofia 2026-03-20 18:30:00 +02:00
parent b3492032e4
commit 131c01c8f0
2 changed files with 4 additions and 2 deletions

View File

@ -92,4 +92,6 @@ end
for k, v in (ipairs(table)) do
print(k, v)
end
end
print(_ENV.sometable)

View File

@ -286,7 +286,7 @@ pub fn tokenize<T: Into<String>>(to_tokenize: T) -> Result<Vec<FullToken>, Error
}
}
// "words"
c if c.is_alphabetic() => {
c if c.is_alphabetic() || *c == '_' => {
let mut value = character.to_string();
while let Some(c) = cursor.first() {
if !(c.is_ascii_alphanumeric() || c == '_') {