Teach syntax about Rust lifetimes

pull/25/head
Wilfred Hughes 2021-07-04 12:58:37 +07:00
parent 79938c53dc
commit 76ef7c510c
2 changed files with 4 additions and 2 deletions

@ -1,6 +1,6 @@
## 0.3
## 0.3 (unreleased)
No changes yet.
Improved Rust parsing to recognise lifetime syntax `'foo`.
## 0.2

@ -149,6 +149,8 @@ extensions = ["rs"]
atom_patterns = [
# Numbers
'[0-9]+',
# Lifetimes
"'[a-z_]+",
# Symbols (e.g. variable names)
'[.a-zA-Z0-9_]+!?',
# Operators