build(rust): vendor rnix parser crate
This commit was merged in pull request #57.
This commit is contained in:
1 parent
cbdf482422
commit
82ad65a3a4
492 files changed
+67785
-1
No files matched your search
+52
@@ -0,0 +1,52 @@
|
||||
#[macro_export]
|
||||
#[rustfmt::skip]
|
||||
macro_rules! T {
|
||||
(assert) => ($crate::SyntaxKind::TOKEN_ASSERT);
|
||||
(else) => ($crate::SyntaxKind::TOKEN_ELSE);
|
||||
(if) => ($crate::SyntaxKind::TOKEN_IF);
|
||||
(in) => ($crate::SyntaxKind::TOKEN_IN);
|
||||
(inherit) => ($crate::SyntaxKind::TOKEN_INHERIT);
|
||||
(let) => ($crate::SyntaxKind::TOKEN_LET);
|
||||
(or) => ($crate::SyntaxKind::TOKEN_OR);
|
||||
(rec) => ($crate::SyntaxKind::TOKEN_REC);
|
||||
(then) => ($crate::SyntaxKind::TOKEN_THEN);
|
||||
(with) => ($crate::SyntaxKind::TOKEN_WITH);
|
||||
(__curPos) => ($crate::SyntaxKind::TOKEN_CUR_POS);
|
||||
|
||||
('{') => ($crate::SyntaxKind::TOKEN_L_BRACE);
|
||||
('}') => ($crate::SyntaxKind::TOKEN_R_BRACE);
|
||||
('[') => ($crate::SyntaxKind::TOKEN_L_BRACK);
|
||||
(']') => ($crate::SyntaxKind::TOKEN_R_BRACK);
|
||||
('(') => ($crate::SyntaxKind::TOKEN_L_PAREN);
|
||||
(')') => ($crate::SyntaxKind::TOKEN_R_PAREN);
|
||||
|
||||
(=) => ($crate::SyntaxKind::TOKEN_ASSIGN);
|
||||
(@) => ($crate::SyntaxKind::TOKEN_AT);
|
||||
(:) => ($crate::SyntaxKind::TOKEN_COLON);
|
||||
(,) => ($crate::SyntaxKind::TOKEN_COMMA);
|
||||
(.) => ($crate::SyntaxKind::TOKEN_DOT);
|
||||
(...) => ($crate::SyntaxKind::TOKEN_ELLIPSIS);
|
||||
(?) => ($crate::SyntaxKind::TOKEN_QUESTION);
|
||||
(;) => ($crate::SyntaxKind::TOKEN_SEMICOLON);
|
||||
(++) => ($crate::SyntaxKind::TOKEN_CONCAT);
|
||||
(!) => ($crate::SyntaxKind::TOKEN_INVERT);
|
||||
("//") => ($crate::SyntaxKind::TOKEN_UPDATE);
|
||||
|
||||
(+) => ($crate::SyntaxKind::TOKEN_ADD);
|
||||
(-) => ($crate::SyntaxKind::TOKEN_SUB);
|
||||
(*) => ($crate::SyntaxKind::TOKEN_MUL);
|
||||
(/) => ($crate::SyntaxKind::TOKEN_DIV);
|
||||
|
||||
(&&) => ($crate::SyntaxKind::TOKEN_AND_AND);
|
||||
(==) => ($crate::SyntaxKind::TOKEN_EQUAL);
|
||||
(->) => ($crate::SyntaxKind::TOKEN_IMPLICATION);
|
||||
(<) => ($crate::SyntaxKind::TOKEN_LESS);
|
||||
(<=) => ($crate::SyntaxKind::TOKEN_LESS_OR_EQ);
|
||||
(>) => ($crate::SyntaxKind::TOKEN_MORE);
|
||||
(>=) => ($crate::SyntaxKind::TOKEN_MORE_OR_EQ);
|
||||
(!=) => ($crate::SyntaxKind::TOKEN_NOT_EQUAL);
|
||||
(||) => ($crate::SyntaxKind::TOKEN_OR_OR);
|
||||
("|>") => ($crate::SyntaxKind::TOKEN_PIPE_RIGHT);
|
||||
("<|") => ($crate::SyntaxKind::TOKEN_PIPE_LEFT);
|
||||
($kind:ident) => ($crate::SyntaxKind::$kind);
|
||||
}
|
||||
Reference in new issue
Block a user