From be94cd97ee1ed18f08324b1442aa59032652ab4e Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Tue, 6 Jul 2021 22:59:19 -0700 Subject: [PATCH] Handle . and ? as Rust punctuation Fixes #6 --- config/syntax.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/syntax.toml b/config/syntax.toml index 3e360dc7a3..681df2dea6 100644 --- a/config/syntax.toml +++ b/config/syntax.toml @@ -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 = [ '"[^"]*"',