rust-analyzer/grammar.ron

125 lines
2.2 KiB
Text
Raw Normal View History

2017-12-28 22:21:54 +00:00
Grammar(
2018-01-01 15:58:46 +00:00
keywords: [
"use",
"fn",
"struct",
"enum",
"trait",
"impl",
2018-01-08 18:21:59 +00:00
"true",
"false",
2018-01-08 21:06:42 +00:00
"as",
"extern",
"crate",
2018-01-09 19:35:55 +00:00
"mod",
2018-01-12 19:05:46 +00:00
"pub",
"self",
"super",
2018-01-13 08:55:03 +00:00
"in",
2018-01-13 19:00:26 +00:00
"where",
2018-01-30 19:53:19 +00:00
"for",
"loop",
"while",
"if",
2018-02-02 20:30:17 +00:00
"match",
"const",
"static",
2018-02-02 20:45:15 +00:00
"mut",
2018-02-03 09:05:25 +00:00
"unsafe",
2018-02-10 09:35:40 +00:00
"type",
2018-01-01 15:58:46 +00:00
],
2018-02-04 13:46:26 +00:00
contextual_keywords: [
"auto",
"default",
"union",
],
2017-12-31 20:27:36 +00:00
tokens: [
2017-12-29 21:48:47 +00:00
"ERROR",
2017-12-28 22:21:54 +00:00
"IDENT",
2017-12-29 21:48:47 +00:00
"UNDERSCORE",
2017-12-28 22:21:54 +00:00
"WHITESPACE",
2017-12-30 12:22:40 +00:00
"INT_NUMBER",
"FLOAT_NUMBER",
2017-12-30 13:30:37 +00:00
"SEMI",
"COMMA",
"DOT",
"DOTDOT",
"DOTDOTDOT",
"DOTDOTEQ",
"L_PAREN",
"R_PAREN",
"L_CURLY",
"R_CURLY",
"L_BRACK",
"R_BRACK",
2017-12-30 17:56:54 +00:00
"L_ANGLE",
"R_ANGLE",
2017-12-30 13:30:37 +00:00
"AT",
"POUND",
"TILDE",
"QUESTION",
"COLON",
"COLONCOLON",
"DOLLAR",
2017-12-30 15:25:37 +00:00
"EQ",
"EQEQ",
"FAT_ARROW",
"NEQ",
2018-01-07 16:50:54 +00:00
"EXCL",
2017-12-31 07:41:42 +00:00
"LIFETIME",
2017-12-31 11:02:55 +00:00
"CHAR",
"BYTE",
"STRING",
"RAW_STRING",
"BYTE_STRING",
"RAW_BYTE_STRING",
2017-12-31 12:29:09 +00:00
"PLUS",
"MINUS",
"STAR",
"SLASH",
"CARET",
"PERCENT",
"AMPERSAND",
"PIPE",
"THIN_ARROW",
2017-12-31 13:42:22 +00:00
"COMMENT",
"DOC_COMMENT",
"SHEBANG",
2017-12-31 20:27:36 +00:00
],
nodes: [
2018-01-01 15:58:46 +00:00
"FILE",
2018-02-02 19:08:14 +00:00
2018-01-06 14:16:00 +00:00
"STRUCT_ITEM",
2018-01-28 19:59:18 +00:00
"ENUM_ITEM",
2018-01-07 13:01:30 +00:00
"FN_ITEM",
2018-01-08 21:06:42 +00:00
"EXTERN_CRATE_ITEM",
2018-01-09 19:35:55 +00:00
"MOD_ITEM",
2018-01-09 20:32:18 +00:00
"USE_ITEM",
2018-02-02 20:45:15 +00:00
"STATIC_ITEM",
2018-02-03 09:05:25 +00:00
"CONST_ITEM",
2018-02-04 10:39:24 +00:00
"TRAIT_ITEM",
"IMPL_ITEM",
2018-02-10 09:35:40 +00:00
"TYPE_ITEM",
2018-02-02 19:08:14 +00:00
"EXTERN_BLOCK",
"ENUM_VARIANT",
"NAMED_FIELD",
"POS_FIELD",
"ATTR",
"META_ITEM", // not an item actually
2018-01-13 10:42:19 +00:00
"USE_TREE",
2018-01-09 20:32:18 +00:00
"PATH",
"PATH_SEGMENT",
2018-01-08 18:40:00 +00:00
"LITERAL",
2018-01-08 21:06:42 +00:00
"ALIAS",
2018-01-12 19:05:46 +00:00
"VISIBILITY",
2018-01-28 15:53:53 +00:00
"TYPE_PARAM_LIST",
2018-02-10 09:53:07 +00:00
"WHERE_CLAUSE",
2018-01-28 15:53:53 +00:00
"LIFETIME_PARAM",
"TYPE_PARAM",
2018-02-02 19:08:14 +00:00
"ABI",
2018-02-10 11:00:23 +00:00
"NAME",
"NAME_REF",
2017-12-28 22:21:54 +00:00
]
2018-01-28 15:53:53 +00:00
)