Treat .. as a single atom in Rust

pull/25/head
Wilfred Hughes 2021-07-10 17:13:07 +07:00
parent ef4a39ef4f
commit 5c644baf7c
2 changed files with 2 additions and 2 deletions

@ -2,7 +2,7 @@
### Parsing
Improved parsing for Rust macro definitions.
Improved parsing for Rust macro definitions and punctuation.
### Diffing

@ -161,7 +161,7 @@ atom_patterns = [
# Symbols (e.g. variable names)
'[a-zA-Z0-9_]+!?',
# Two character operators
'(::|&&|\|\|)',
'(::|&&|\|\||\.\.)',
# Single character operators
# | is a delimiter for lambdas, but also used in pattern matching.
'[.&=<>/*+:;,|#!?$-]',