diff options
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r-- | crates/ra_syntax/src/grammar.ron | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index 3c640ed47..bddd96a5c 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron | |||
@@ -49,6 +49,7 @@ Grammar( | |||
49 | ["^=", "CARETEQ"], | 49 | ["^=", "CARETEQ"], |
50 | ["/=", "SLASHEQ"], | 50 | ["/=", "SLASHEQ"], |
51 | ["*=", "STAREQ"], | 51 | ["*=", "STAREQ"], |
52 | ["%=", "PERCENTEQ"], | ||
52 | ["&&", "AMPAMP"], | 53 | ["&&", "AMPAMP"], |
53 | ["||", "PIPEPIPE"], | 54 | ["||", "PIPEPIPE"], |
54 | ["<<", "SHL"], | 55 | ["<<", "SHL"], |
@@ -423,10 +424,10 @@ Grammar( | |||
423 | "PrefixExpr": (options: ["Expr"]), | 424 | "PrefixExpr": (options: ["Expr"]), |
424 | "RangeExpr": (), | 425 | "RangeExpr": (), |
425 | "BinExpr": (), | 426 | "BinExpr": (), |
426 | "String": (), | 427 | "String": ( traits: ["AstToken"] ), |
427 | "Byte": (), | 428 | "Byte": ( traits: ["AstToken"] ), |
428 | "ByteString": (), | 429 | "ByteString": ( traits: ["AstToken"] ), |
429 | "Char": (), | 430 | "Char": ( traits: ["AstToken"] ), |
430 | "Literal": (), | 431 | "Literal": (), |
431 | 432 | ||
432 | "Expr": ( | 433 | "Expr": ( |
@@ -504,7 +505,7 @@ Grammar( | |||
504 | ), | 505 | ), |
505 | "TypeParam": ( traits: ["NameOwner"] ), | 506 | "TypeParam": ( traits: ["NameOwner"] ), |
506 | "LifetimeParam": ( options: [ "Lifetime" ] ), | 507 | "LifetimeParam": ( options: [ "Lifetime" ] ), |
507 | "Lifetime": (), | 508 | "Lifetime": ( traits: ["AstToken"] ), |
508 | "WhereClause": (), | 509 | "WhereClause": (), |
509 | "ExprStmt": ( | 510 | "ExprStmt": ( |
510 | options: [ ["expr", "Expr"] ] | 511 | options: [ ["expr", "Expr"] ] |
@@ -561,7 +562,7 @@ Grammar( | |||
561 | "PathSegment": ( | 562 | "PathSegment": ( |
562 | options: [ "NameRef" ] | 563 | options: [ "NameRef" ] |
563 | ), | 564 | ), |
564 | "Comment": (), | 565 | "Comment": ( traits: ["AstToken"] ), |
565 | "Whitespace": (), | 566 | "Whitespace": ( traits: ["AstToken"] ), |
566 | }, | 567 | }, |
567 | ) | 568 | ) |