diff options
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r-- | crates/ra_syntax/src/grammar.ron | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index 77ae4c7db..4b990fd8d 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron | |||
@@ -1,3 +1,5 @@ | |||
1 | // Stores definitions which must be used in multiple places | ||
2 | // See `cargo gen-kinds` (defined in crates/tools/src/main.rs) | ||
1 | Grammar( | 3 | Grammar( |
2 | single_byte_tokens: [ | 4 | single_byte_tokens: [ |
3 | [";", "SEMI"], | 5 | [";", "SEMI"], |
@@ -23,8 +25,9 @@ Grammar( | |||
23 | ["^", "CARET"], | 25 | ["^", "CARET"], |
24 | ["%", "PERCENT"], | 26 | ["%", "PERCENT"], |
25 | ], | 27 | ], |
28 | // TODO: Confirm surmision: the tokens which cannot be recorded in a single UTF-8 byte | ||
26 | multi_byte_tokens: [ | 29 | multi_byte_tokens: [ |
27 | [".", "DOT"], | 30 | [".", "DOT"], // Note: DOT is here because <TODO: REASON> |
28 | ["..", "DOTDOT"], | 31 | ["..", "DOTDOT"], |
29 | ["...", "DOTDOTDOT"], | 32 | ["...", "DOTDOTDOT"], |
30 | ["..=", "DOTDOTEQ"], | 33 | ["..=", "DOTDOTEQ"], |