@@ -1312,6 +1312,8 @@ FunctionCall: CallSite = {
1312
1312
#[inline]
1313
1313
FunctionName: ast::SymbolPrimitive = {
1314
1314
<SymbolPrimitive>,
1315
+ <lo:@L> <ident:FnNonReservedKeyword> <hi:@R> =>
1316
+ ast::SymbolPrimitive { value: ident.to_owned(), case: ast::CaseSensitivity::CaseInsensitive }
1315
1317
}
1316
1318
1317
1319
#[inline]
@@ -1437,6 +1439,10 @@ VarRef: ast::AstNode<ast::VarRef> = {
1437
1439
name: ast::SymbolPrimitive { value: ident.to_owned(), case: ast::CaseSensitivity::CaseSensitive },
1438
1440
qualifier: ast::ScopeQualifier::Unqualified
1439
1441
},lo..hi),
1442
+ <lo:@L> <ident:VarNonReservedKeyword> <hi:@R> => state.node(ast::VarRef {
1443
+ name: ast::SymbolPrimitive { value: ident.to_owned(), case: ast::CaseSensitivity::CaseInsensitive },
1444
+ qualifier: ast::ScopeQualifier::Unqualified
1445
+ },lo..hi),
1440
1446
}
1441
1447
1442
1448
ExcludePath: ast::AstNode<ast::ExcludePath> = {
@@ -1668,6 +1674,25 @@ ByIdent: ast::SymbolPrimitive = {
1668
1674
// //
1669
1675
// ------------------------------------------------------------------------------ //
1670
1676
1677
+ #[inline]
1678
+ VarNonReservedKeyword: &'static str = {
1679
+ <NonReservedKeyword>
1680
+ }
1681
+
1682
+ #[inline]
1683
+ FnNonReservedKeyword: &'static str = {
1684
+ <NonReservedKeyword>
1685
+ }
1686
+
1687
+ #[inline]
1688
+ NonReservedKeyword: &'static str = {
1689
+ "ACYCLIC" => "ACYCLIC",
1690
+ "ANY" => "ANY",
1691
+ "SIMPLE" => "SIMPLE",
1692
+ "SHORTEST" => "SHORTEST",
1693
+ "TRAIL" => "TRAIL",
1694
+ }
1695
+
1671
1696
// The lexer is external; See [`lexer.rs`] for its definition.
1672
1697
//
1673
1698
// See also http://lalrpop.github.io/lalrpop/lexer_tutorial/002_writing_custom_lexer.html
0 commit comments