rust/crates/ra_syntax/test_data/parser/ok/0037_mod.rast
veetaha da091b1303 Migrate tests .txt -> .rast
The sytax tree output files now use .rast extension
(rust-analyzer syntax tree or rust abstract syntax tree
(whatever)).
This format has a editors/code/ra_syntax_tree.tmGrammar.json declaration
that supplies nice syntax highlighting for .rast files.
2020-04-06 14:04:26 +03:00

17 lines
442 B
Plaintext

SOURCE_FILE@[0; 93)
COMMENT@[0; 60) "// https://github.com ..."
WHITESPACE@[60; 62) "\n\n"
MODULE@[62; 93)
COMMENT@[62; 70) "//! docs"
WHITESPACE@[70; 71) "\n"
COMMENT@[71; 82) "// non-docs"
WHITESPACE@[82; 83) "\n"
MOD_KW@[83; 86) "mod"
WHITESPACE@[86; 87) " "
NAME@[87; 90)
IDENT@[87; 90) "foo"
WHITESPACE@[90; 91) " "
ITEM_LIST@[91; 93)
L_CURLY@[91; 92) "{"
R_CURLY@[92; 93) "}"