This commit is contained in:
2024-05-15 19:57:55 +02:00
parent e7142f6d80
commit 9dc8712364
4 changed files with 45 additions and 7 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ const SYNTAX: [Node; 14] = [
},
Node {
token_type: TokenType::Keyword,
token_regex: Lazy::new(|| Regex::new(r"^(mut|try|catch|return|fn|let|use|cb)\b").unwrap())
token_regex: Lazy::new(|| Regex::new(r"^(mut|try|catch|return|fn|let|use|cb|struct|impl|for|in)\b").unwrap())
},
Node {
token_type: TokenType::Identifier,