aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.rast
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-04-06 12:04:26 +0100
committerveetaha <[email protected]>2020-04-06 12:04:26 +0100
commitda091b130347c4d6d8c75acb8e65c30a17dc1f5e (patch)
treef97939669a700ed80a64086b1f0aefd530bc9bea /crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.rast
parentec3fb1cdb4f1808a11fb6057550ed721c2aa36a9 (diff)
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.
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.rast')
-rw-r--r--crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.rast21
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.rast b/crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.rast
new file mode 100644
index 000000000..5b3dc5af2
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.rast
@@ -0,0 +1,21 @@
1SOURCE_FILE@[0; 19)
2 STATIC_DEF@[0; 18)
3 STATIC_KW@[0; 6) "static"
4 WHITESPACE@[6; 7) " "
5 ERROR@[7; 8)
6 UNDERSCORE@[7; 8) "_"
7 COLON@[8; 9) ":"
8 WHITESPACE@[9; 10) " "
9 PATH_TYPE@[10; 13)
10 PATH@[10; 13)
11 PATH_SEGMENT@[10; 13)
12 NAME_REF@[10; 13)
13 IDENT@[10; 13) "i32"
14 WHITESPACE@[13; 14) " "
15 EQ@[14; 15) "="
16 WHITESPACE@[15; 16) " "
17 LITERAL@[16; 17)
18 INT_NUMBER@[16; 17) "5"
19 SEMI@[17; 18) ";"
20 WHITESPACE@[18; 19) "\n"
21error [7; 7): expected a name