Skip to content

Commit

Permalink
Handle . and ? as Rust punctuation
Browse files Browse the repository at this point in the history
Fixes #6
  • Loading branch information
Wilfred committed Jul 7, 2021
1 parent 99f357f commit be94cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/syntax.toml
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ atom_patterns = [
# Lifetimes
"'[a-z_]+",
# Symbols (e.g. variable names)
'[.a-zA-Z0-9_]+!?',
'[a-zA-Z0-9_]+!?',
# Operators
# | is a delimiter for lambdas, but also used in pattern matching.
'[&=<>/*+:;,|#!-]+',
'[.&=<>/*+:;,|#!?-]+',
]
string_patterns = [
'"[^"]*"',
Expand Down

0 comments on commit be94cd9

Please sign in to comment.