added support for all the AstDef types

This commit is contained in:
2024-04-03 15:14:00 +02:00
parent 65c9856762
commit 4b3aca6286
3 changed files with 42 additions and 11 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ const SYNTAX: [Node; 9] = [
},
Node {
token_type: TokenType::Keyword,
token_regex: Lazy::new(|| Regex::new(r"^mut|try|catch|return|fn").unwrap())
token_regex: Lazy::new(|| Regex::new(r"^if|mut|try|catch|return|fn").unwrap())
},
Node {
token_type: TokenType::Identifier,