diff options
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r-- | crates/ra_syntax/src/grammar.ron | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index dfd88bd10..49b297696 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron | |||
@@ -215,6 +215,7 @@ Grammar( | |||
215 | "PATH", | 215 | "PATH", |
216 | "PATH_SEGMENT", | 216 | "PATH_SEGMENT", |
217 | "LITERAL", | 217 | "LITERAL", |
218 | "LITERAL_EXPR", | ||
218 | "ALIAS", | 219 | "ALIAS", |
219 | "VISIBILITY", | 220 | "VISIBILITY", |
220 | "WHERE_CLAUSE", | 221 | "WHERE_CLAUSE", |
@@ -426,11 +427,24 @@ Grammar( | |||
426 | "PrefixExpr": (options: ["Expr"]), | 427 | "PrefixExpr": (options: ["Expr"]), |
427 | "RangeExpr": (), | 428 | "RangeExpr": (), |
428 | "BinExpr": (), | 429 | "BinExpr": (), |
430 | |||
431 | "IntNumber": ( traits: ["AstToken"] ), | ||
432 | "FloatNumber": ( traits: ["AstToken"] ), | ||
429 | "String": ( traits: ["AstToken"] ), | 433 | "String": ( traits: ["AstToken"] ), |
430 | "Byte": ( traits: ["AstToken"] ), | 434 | "Byte": ( traits: ["AstToken"] ), |
431 | "ByteString": ( traits: ["AstToken"] ), | 435 | "ByteString": ( traits: ["AstToken"] ), |
432 | "Char": ( traits: ["AstToken"] ), | 436 | "Char": ( traits: ["AstToken"] ), |
433 | "Literal": (), | 437 | "Literal": ( |
438 | enum: [ | ||
439 | "String", | ||
440 | "ByteString", | ||
441 | "Char", | ||
442 | "Byte", | ||
443 | "IntNumber", | ||
444 | "FloatNumber", | ||
445 | ] | ||
446 | ), | ||
447 | "LiteralExpr": (options: ["Literal"]), | ||
434 | 448 | ||
435 | "Expr": ( | 449 | "Expr": ( |
436 | enum: [ | 450 | enum: [ |
@@ -460,7 +474,7 @@ Grammar( | |||
460 | "PrefixExpr", | 474 | "PrefixExpr", |
461 | "RangeExpr", | 475 | "RangeExpr", |
462 | "BinExpr", | 476 | "BinExpr", |
463 | "Literal", | 477 | "LiteralExpr", |
464 | ], | 478 | ], |
465 | ), | 479 | ), |
466 | 480 | ||