Skip to content

Commit

Permalink
feat(front/ast_retriever): allow -_ in variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
hanmindev committed Feb 19, 2024
1 parent d1d8ddb commit 664ecc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/front/ast_retriever/reader/lexical/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl Lexer {
let mut ident = String::new();

// read word and set to ident
while self.curr.is_alphanumeric() {
while self.curr.is_alphanumeric() || self.curr == '_' || self.curr == '-'{
ident.push(self.eat());
}

Expand Down

0 comments on commit 664ecc5

Please sign in to comment.