diff --git a/config/syntax.toml b/config/syntax.toml index 681df2dea..35d232023 100644 --- a/config/syntax.toml +++ b/config/syntax.toml @@ -149,6 +149,9 @@ extensions = ["rs"] atom_patterns = [ # Numbers '[0-9]+', + # Single quoted character 'a' or '\n', trying to avoid matching + # lifetimes. + "'..?'", # Lifetimes "'[a-z_]+", # Symbols (e.g. variable names)