Rust: Consider , as separate punctuation

Closes #8
pull/25/head
Wilfred Hughes 2021-07-07 19:51:00 +07:00
parent e6df1dfaa2
commit ccaca6f6a6
2 changed files with 3 additions and 2 deletions

@ -1,6 +1,7 @@
## 0.3 (unreleased) ## 0.3 (unreleased)
Improved Rust parsing to recognise lifetime syntax `'foo`. Improved Rust parsing to recognise lifetime syntax `'foo`, character
literals `'x'` and sequences of punctuation.
Fixed an issue where the diff calculated may not be minimal. Fixed an issue where the diff calculated may not be minimal.

@ -158,7 +158,7 @@ atom_patterns = [
'[a-zA-Z0-9_]+!?', '[a-zA-Z0-9_]+!?',
# Operators # Operators
# | is a delimiter for lambdas, but also used in pattern matching. # | is a delimiter for lambdas, but also used in pattern matching.
'[.&=<>/*+:;,|#!?-]+', '[.&=<>/*+:;,|#!?-]',
] ]
string_patterns = [ string_patterns = [
'"[^"]*"', '"[^"]*"',