From 66101e931c641b7d96dcfdbb83838130eab588bc Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 22 Sep 2019 23:46:27 +0300 Subject: simplify --- crates/ra_syntax/src/grammar.ron | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crates/ra_syntax/src/grammar.ron') diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index da9de2214..5f395501a 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron @@ -1,7 +1,7 @@ // Stores definitions which must be used in multiple places // See `cargo gen-syntax` (defined in crates/tools/src/main.rs) Grammar( - single_byte_tokens: [ + punct: [ (";", "SEMI"), (",", "COMMA"), ("(", "L_PAREN"), @@ -25,9 +25,6 @@ Grammar( ("^", "CARET"), ("%", "PERCENT"), ("_", "UNDERSCORE"), - ], - // Tokens for which the longest match must be chosen (e.g. `..` is a DOTDOT, but `.` is a DOT) - multi_byte_tokens: [ (".", "DOT"), ("..", "DOTDOT"), ("...", "DOTDOTDOT"), -- cgit v1.2.3