Fix parsing of _ENV
This commit is contained in:
parent
b3492032e4
commit
131c01c8f0
@ -93,3 +93,5 @@ end
|
|||||||
for k, v in (ipairs(table)) do
|
for k, v in (ipairs(table)) do
|
||||||
print(k, v)
|
print(k, v)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
print(_ENV.sometable)
|
||||||
@ -286,7 +286,7 @@ pub fn tokenize<T: Into<String>>(to_tokenize: T) -> Result<Vec<FullToken>, Error
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// "words"
|
// "words"
|
||||||
c if c.is_alphabetic() => {
|
c if c.is_alphabetic() || *c == '_' => {
|
||||||
let mut value = character.to_string();
|
let mut value = character.to_string();
|
||||||
while let Some(c) = cursor.first() {
|
while let Some(c) = cursor.first() {
|
||||||
if !(c.is_ascii_alphanumeric() || c == '_') {
|
if !(c.is_ascii_alphanumeric() || c == '_') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user