build(rust): vendor rnix parser crate
This commit was merged in pull request #57.
This commit is contained in:
21
third_party/crates/rnix-0.14.0/test_data/parser/error/dollar_ident_attrpath_issue174.expect
vendored
Normal file
21
third_party/crates/rnix-0.14.0/test_data/parser/error/dollar_ident_attrpath_issue174.expect
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
error: unexpected TOKEN_ERROR at 2..3, wanted any of [TOKEN_IDENT, TOKEN_OR, TOKEN_CUR_POS]
|
||||
NODE_ROOT@0..12
|
||||
NODE_ATTR_SET@0..12
|
||||
TOKEN_L_BRACE@0..1 "{"
|
||||
TOKEN_WHITESPACE@1..2 " "
|
||||
NODE_ATTRPATH_VALUE@2..10
|
||||
NODE_ATTRPATH@2..4
|
||||
NODE_ERROR@2..3
|
||||
TOKEN_ERROR@2..3 "$"
|
||||
NODE_IDENT@3..4
|
||||
TOKEN_IDENT@3..4 "a"
|
||||
TOKEN_WHITESPACE@4..5 " "
|
||||
TOKEN_ASSIGN@5..6 "="
|
||||
TOKEN_WHITESPACE@6..7 " "
|
||||
NODE_STRING@7..9
|
||||
TOKEN_STRING_START@7..8 "\""
|
||||
TOKEN_STRING_END@8..9 "\""
|
||||
TOKEN_SEMICOLON@9..10 ";"
|
||||
TOKEN_WHITESPACE@10..11 " "
|
||||
TOKEN_R_BRACE@11..12 "}"
|
||||
|
||||
1
third_party/crates/rnix-0.14.0/test_data/parser/error/dollar_ident_attrpath_issue174.nix
vendored
Normal file
1
third_party/crates/rnix-0.14.0/test_data/parser/error/dollar_ident_attrpath_issue174.nix
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{ $a = ""; }
|
||||
110
third_party/crates/rnix-0.14.0/test_data/parser/error/error.expect
vendored
Normal file
110
third_party/crates/rnix-0.14.0/test_data/parser/error/error.expect
vendored
Normal file
@@ -0,0 +1,110 @@
|
||||
error: unexpected TOKEN_STRING_START at 10..28, wanted any of [TOKEN_ASSIGN]
|
||||
error: unexpected TOKEN_STRING_START at 78..98, wanted any of [TOKEN_ASSIGN]
|
||||
error: unexpected TOKEN_R_BRACE at 162..166, wanted any of [TOKEN_ASSIGN]
|
||||
error: unexpected end of file, wanted any of [TOKEN_ASSIGN]
|
||||
error: unexpected end of file
|
||||
error: unexpected end of file, wanted any of [TOKEN_SEMICOLON]
|
||||
error: unexpected end of file
|
||||
error: unexpected end of file, wanted any of [TOKEN_SEMICOLON]
|
||||
error: unexpected end of file
|
||||
NODE_ROOT@0..166
|
||||
NODE_ATTR_SET@0..166
|
||||
TOKEN_L_BRACE@0..1 "{"
|
||||
TOKEN_WHITESPACE@1..4 "\n "
|
||||
NODE_ATTRPATH_VALUE@4..33
|
||||
NODE_ATTRPATH@4..9
|
||||
NODE_IDENT@4..9
|
||||
TOKEN_IDENT@4..9 "hello"
|
||||
TOKEN_WHITESPACE@9..10 " "
|
||||
NODE_ERROR@10..28
|
||||
TOKEN_STRING_START@10..11 "\""
|
||||
TOKEN_STRING_CONTENT@11..27 "Hello Ùnicödə"
|
||||
TOKEN_STRING_END@27..28 "\""
|
||||
TOKEN_WHITESPACE@28..29 " "
|
||||
TOKEN_ASSIGN@29..30 "="
|
||||
TOKEN_WHITESPACE@30..31 " "
|
||||
NODE_LITERAL@31..32
|
||||
TOKEN_INTEGER@31..32 "1"
|
||||
TOKEN_SEMICOLON@32..33 ";"
|
||||
TOKEN_WHITESPACE@33..36 "\n "
|
||||
NODE_ATTRPATH_VALUE@36..120
|
||||
NODE_ATTRPATH@36..40
|
||||
NODE_IDENT@36..40
|
||||
TOKEN_IDENT@36..40 "test"
|
||||
TOKEN_WHITESPACE@40..41 " "
|
||||
TOKEN_ASSIGN@41..42 "="
|
||||
TOKEN_WHITESPACE@42..43 " "
|
||||
NODE_ATTR_SET@43..119
|
||||
TOKEN_L_BRACE@43..44 "{"
|
||||
TOKEN_WHITESPACE@44..49 "\n "
|
||||
NODE_ATTRPATH_VALUE@49..65
|
||||
NODE_ATTRPATH@49..54
|
||||
NODE_IDENT@49..54
|
||||
TOKEN_IDENT@49..54 "valid"
|
||||
TOKEN_WHITESPACE@54..55 " "
|
||||
TOKEN_ASSIGN@55..56 "="
|
||||
TOKEN_WHITESPACE@56..57 " "
|
||||
NODE_STRING@57..64
|
||||
TOKEN_STRING_START@57..58 "\""
|
||||
TOKEN_STRING_CONTENT@58..63 "entry"
|
||||
TOKEN_STRING_END@63..64 "\""
|
||||
TOKEN_SEMICOLON@64..65 ";"
|
||||
TOKEN_WHITESPACE@65..70 "\n "
|
||||
NODE_ATTRPATH_VALUE@70..115
|
||||
NODE_ATTRPATH@70..77
|
||||
NODE_IDENT@70..77
|
||||
TOKEN_IDENT@70..77 "invalid"
|
||||
TOKEN_WHITESPACE@77..78 " "
|
||||
NODE_ERROR@78..98
|
||||
TOKEN_STRING_START@78..79 "\""
|
||||
TOKEN_STRING_CONTENT@79..84 "entry"
|
||||
TOKEN_STRING_END@84..85 "\""
|
||||
TOKEN_SEMICOLON@85..86 ";"
|
||||
TOKEN_WHITESPACE@86..91 "\n "
|
||||
TOKEN_IDENT@91..98 "another"
|
||||
TOKEN_WHITESPACE@98..99 " "
|
||||
TOKEN_ASSIGN@99..100 "="
|
||||
TOKEN_WHITESPACE@100..101 " "
|
||||
NODE_STRING@101..114
|
||||
TOKEN_STRING_START@101..102 "\""
|
||||
TOKEN_STRING_CONTENT@102..113 "valid entry"
|
||||
TOKEN_STRING_END@113..114 "\""
|
||||
TOKEN_SEMICOLON@114..115 ";"
|
||||
TOKEN_WHITESPACE@115..118 "\n "
|
||||
TOKEN_R_BRACE@118..119 "}"
|
||||
TOKEN_SEMICOLON@119..120 ";"
|
||||
TOKEN_WHITESPACE@120..123 "\n "
|
||||
NODE_ATTRPATH_VALUE@123..166
|
||||
NODE_ATTRPATH@123..128
|
||||
NODE_IDENT@123..128
|
||||
TOKEN_IDENT@123..128 "test2"
|
||||
TOKEN_WHITESPACE@128..129 " "
|
||||
TOKEN_ASSIGN@129..130 "="
|
||||
TOKEN_WHITESPACE@130..131 " "
|
||||
NODE_ATTR_SET@131..166
|
||||
TOKEN_L_BRACE@131..132 "{"
|
||||
TOKEN_WHITESPACE@132..137 "\n "
|
||||
NODE_ATTRPATH_VALUE@137..150
|
||||
NODE_ATTRPATH@137..142
|
||||
NODE_IDENT@137..142
|
||||
TOKEN_IDENT@137..142 "hello"
|
||||
TOKEN_WHITESPACE@142..143 " "
|
||||
TOKEN_ASSIGN@143..144 "="
|
||||
TOKEN_WHITESPACE@144..145 " "
|
||||
NODE_STRING@145..149
|
||||
TOKEN_STRING_START@145..146 "\""
|
||||
TOKEN_STRING_CONTENT@146..148 "hi"
|
||||
TOKEN_STRING_END@148..149 "\""
|
||||
TOKEN_SEMICOLON@149..150 ";"
|
||||
TOKEN_WHITESPACE@150..155 "\n "
|
||||
NODE_ATTRPATH_VALUE@155..166
|
||||
NODE_ATTRPATH@155..159
|
||||
NODE_IDENT@155..159
|
||||
TOKEN_IDENT@155..159 "aaaa"
|
||||
TOKEN_WHITESPACE@159..162 "\n "
|
||||
NODE_ERROR@162..166
|
||||
TOKEN_R_BRACE@162..163 "}"
|
||||
TOKEN_SEMICOLON@163..164 ";"
|
||||
TOKEN_WHITESPACE@164..165 "\n"
|
||||
TOKEN_R_BRACE@165..166 "}"
|
||||
|
||||
12
third_party/crates/rnix-0.14.0/test_data/parser/error/error.nix
vendored
Normal file
12
third_party/crates/rnix-0.14.0/test_data/parser/error/error.nix
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
hello "Hello Ùnicödə" = 1;
|
||||
test = {
|
||||
valid = "entry";
|
||||
invalid "entry";
|
||||
another = "valid entry";
|
||||
};
|
||||
test2 = {
|
||||
hello = "hi";
|
||||
aaaa
|
||||
};
|
||||
}
|
||||
9
third_party/crates/rnix-0.14.0/test_data/parser/error/extra_comma.expect
vendored
Normal file
9
third_party/crates/rnix-0.14.0/test_data/parser/error/extra_comma.expect
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
error: unexpected token at 3..4
|
||||
NODE_ROOT@0..4
|
||||
NODE_ATTR_SET@0..2
|
||||
TOKEN_L_BRACE@0..1 "{"
|
||||
TOKEN_R_BRACE@1..2 "}"
|
||||
TOKEN_WHITESPACE@2..3 "\n"
|
||||
NODE_ERROR@3..4
|
||||
TOKEN_COMMA@3..4 ","
|
||||
|
||||
2
third_party/crates/rnix-0.14.0/test_data/parser/error/extra_comma.nix
vendored
Normal file
2
third_party/crates/rnix-0.14.0/test_data/parser/error/extra_comma.nix
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
{}
|
||||
,
|
||||
20
third_party/crates/rnix-0.14.0/test_data/parser/error/formals_double_bind.expect
vendored
Normal file
20
third_party/crates/rnix-0.14.0/test_data/parser/error/formals_double_bind.expect
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
error: unexpected double bind at 4..6
|
||||
NODE_ROOT@0..10
|
||||
NODE_LAMBDA@0..10
|
||||
NODE_PATTERN@0..6
|
||||
NODE_PAT_BIND@0..2
|
||||
NODE_IDENT@0..1
|
||||
TOKEN_IDENT@0..1 "f"
|
||||
TOKEN_AT@1..2 "@"
|
||||
TOKEN_L_BRACE@2..3 "{"
|
||||
TOKEN_R_BRACE@3..4 "}"
|
||||
NODE_ERROR@4..6
|
||||
TOKEN_AT@4..5 "@"
|
||||
NODE_IDENT@5..6
|
||||
TOKEN_IDENT@5..6 "f"
|
||||
TOKEN_COLON@6..7 ":"
|
||||
TOKEN_WHITESPACE@7..8 "\n"
|
||||
NODE_STRING@8..10
|
||||
TOKEN_STRING_START@8..9 "\""
|
||||
TOKEN_STRING_END@9..10 "\""
|
||||
|
||||
2
third_party/crates/rnix-0.14.0/test_data/parser/error/formals_double_bind.nix
vendored
Normal file
2
third_party/crates/rnix-0.14.0/test_data/parser/error/formals_double_bind.nix
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
f@{}@f:
|
||||
""
|
||||
25
third_party/crates/rnix-0.14.0/test_data/parser/error/inherit_from_late.expect
vendored
Normal file
25
third_party/crates/rnix-0.14.0/test_data/parser/error/inherit_from_late.expect
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
error: unexpected TOKEN_L_PAREN at 12..13, wanted any of [TOKEN_IDENT, TOKEN_OR, TOKEN_CUR_POS]
|
||||
error: unexpected TOKEN_R_PAREN at 14..15, wanted any of [TOKEN_IDENT, TOKEN_OR, TOKEN_CUR_POS]
|
||||
NODE_ROOT@0..20
|
||||
NODE_ATTR_SET@0..20
|
||||
TOKEN_L_BRACE@0..1 "{"
|
||||
TOKEN_WHITESPACE@1..2 " "
|
||||
NODE_INHERIT@2..18
|
||||
TOKEN_INHERIT@2..9 "inherit"
|
||||
TOKEN_WHITESPACE@9..10 " "
|
||||
NODE_IDENT@10..11
|
||||
TOKEN_IDENT@10..11 "a"
|
||||
TOKEN_WHITESPACE@11..12 " "
|
||||
NODE_ERROR@12..13
|
||||
TOKEN_L_PAREN@12..13 "("
|
||||
NODE_IDENT@13..14
|
||||
TOKEN_IDENT@13..14 "b"
|
||||
NODE_ERROR@14..15
|
||||
TOKEN_R_PAREN@14..15 ")"
|
||||
TOKEN_WHITESPACE@15..16 " "
|
||||
NODE_IDENT@16..17
|
||||
TOKEN_IDENT@16..17 "c"
|
||||
TOKEN_SEMICOLON@17..18 ";"
|
||||
TOKEN_WHITESPACE@18..19 " "
|
||||
TOKEN_R_BRACE@19..20 "}"
|
||||
|
||||
1
third_party/crates/rnix-0.14.0/test_data/parser/error/inherit_from_late.nix
vendored
Normal file
1
third_party/crates/rnix-0.14.0/test_data/parser/error/inherit_from_late.nix
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{ inherit a (b) c; }
|
||||
11
third_party/crates/rnix-0.14.0/test_data/parser/error/inherit_incomplete.expect
vendored
Normal file
11
third_party/crates/rnix-0.14.0/test_data/parser/error/inherit_incomplete.expect
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
error: unexpected end of file
|
||||
error: unexpected end of file, wanted any of [TOKEN_SEMICOLON]
|
||||
error: unexpected end of file
|
||||
error: unexpected end of file
|
||||
NODE_ROOT@0..13
|
||||
NODE_LET_IN@0..13
|
||||
TOKEN_LET@0..3 "let"
|
||||
TOKEN_WHITESPACE@3..6 "\n "
|
||||
NODE_INHERIT@6..13
|
||||
TOKEN_INHERIT@6..13 "inherit"
|
||||
|
||||
2
third_party/crates/rnix-0.14.0/test_data/parser/error/inherit_incomplete.nix
vendored
Normal file
2
third_party/crates/rnix-0.14.0/test_data/parser/error/inherit_incomplete.nix
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
let
|
||||
inherit
|
||||
5
third_party/crates/rnix-0.14.0/test_data/parser/error/path_bare_tilde.expect
vendored
Normal file
5
third_party/crates/rnix-0.14.0/test_data/parser/error/path_bare_tilde.expect
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
error: unexpected TOKEN_ERROR at 0..1, wanted any of [TOKEN_L_PAREN, TOKEN_REC, TOKEN_L_BRACE, TOKEN_L_BRACK, TOKEN_STRING_START, TOKEN_IDENT]
|
||||
NODE_ROOT@0..1
|
||||
NODE_ERROR@0..1
|
||||
TOKEN_ERROR@0..1 "~"
|
||||
|
||||
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_bare_tilde.nix
vendored
Normal file
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_bare_tilde.nix
vendored
Normal file
@@ -0,0 +1 @@
|
||||
~
|
||||
5
third_party/crates/rnix-0.14.0/test_data/parser/error/path_double_slash.expect
vendored
Normal file
5
third_party/crates/rnix-0.14.0/test_data/parser/error/path_double_slash.expect
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
error: unexpected TOKEN_ERROR at 0..9, wanted any of [TOKEN_L_PAREN, TOKEN_REC, TOKEN_L_BRACE, TOKEN_L_BRACK, TOKEN_STRING_START, TOKEN_IDENT]
|
||||
NODE_ROOT@0..9
|
||||
NODE_ERROR@0..9
|
||||
TOKEN_ERROR@0..9 "/foo//bar"
|
||||
|
||||
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_double_slash.nix
vendored
Normal file
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_double_slash.nix
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/foo//bar
|
||||
10
third_party/crates/rnix-0.14.0/test_data/parser/error/path_interp_no_separator.expect
vendored
Normal file
10
third_party/crates/rnix-0.14.0/test_data/parser/error/path_interp_no_separator.expect
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
error: unexpected token at 1..7
|
||||
NODE_ROOT@0..7
|
||||
NODE_IDENT@0..1
|
||||
TOKEN_IDENT@0..1 "a"
|
||||
NODE_ERROR@1..7
|
||||
TOKEN_INTERPOL_START@1..3 "${"
|
||||
TOKEN_IDENT@3..4 "b"
|
||||
TOKEN_INTERPOL_END@4..5 "}"
|
||||
TOKEN_PATH_ABS@5..7 "/c"
|
||||
|
||||
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_interp_no_separator.nix
vendored
Normal file
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_interp_no_separator.nix
vendored
Normal file
@@ -0,0 +1 @@
|
||||
a${b}/c
|
||||
12
third_party/crates/rnix-0.14.0/test_data/parser/error/path_interp_trailing_slash.expect
vendored
Normal file
12
third_party/crates/rnix-0.14.0/test_data/parser/error/path_interp_trailing_slash.expect
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
error: unexpected token at 8..9
|
||||
NODE_ROOT@0..9
|
||||
NODE_PATH_REL@0..8
|
||||
TOKEN_PATH_REL@0..2 "./"
|
||||
NODE_INTERPOL@2..8
|
||||
TOKEN_INTERPOL_START@2..4 "${"
|
||||
NODE_IDENT@4..7
|
||||
TOKEN_IDENT@4..7 "foo"
|
||||
TOKEN_INTERPOL_END@7..8 "}"
|
||||
NODE_ERROR@8..9
|
||||
TOKEN_ERROR@8..9 "/"
|
||||
|
||||
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_interp_trailing_slash.nix
vendored
Normal file
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_interp_trailing_slash.nix
vendored
Normal file
@@ -0,0 +1 @@
|
||||
./${foo}/
|
||||
59
third_party/crates/rnix-0.14.0/test_data/parser/error/path_multiple_errors.expect
vendored
Normal file
59
third_party/crates/rnix-0.14.0/test_data/parser/error/path_multiple_errors.expect
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
error: unexpected TOKEN_ERROR at 57..66, wanted any of [TOKEN_L_PAREN, TOKEN_REC, TOKEN_L_BRACE, TOKEN_L_BRACK, TOKEN_STRING_START, TOKEN_IDENT]
|
||||
error: unexpected TOKEN_ERROR at 84..93, wanted any of [TOKEN_L_PAREN, TOKEN_REC, TOKEN_L_BRACE, TOKEN_L_BRACK, TOKEN_STRING_START, TOKEN_IDENT]
|
||||
error: unexpected TOKEN_ERROR at 108..110, wanted any of [TOKEN_L_PAREN, TOKEN_REC, TOKEN_L_BRACE, TOKEN_L_BRACK, TOKEN_STRING_START, TOKEN_IDENT]
|
||||
error: unexpected TOKEN_ERROR at 128..133, wanted any of [TOKEN_L_PAREN, TOKEN_REC, TOKEN_L_BRACE, TOKEN_L_BRACK, TOKEN_STRING_START, TOKEN_IDENT]
|
||||
NODE_ROOT@0..141
|
||||
NODE_ATTR_SET@0..141
|
||||
TOKEN_L_BRACE@0..1 "{"
|
||||
TOKEN_WHITESPACE@1..4 "\n "
|
||||
TOKEN_COMMENT@4..38 "# Multiple path error ..."
|
||||
TOKEN_WHITESPACE@38..41 "\n "
|
||||
NODE_ATTRPATH_VALUE@41..67
|
||||
NODE_ATTRPATH@41..54
|
||||
NODE_IDENT@41..54
|
||||
TOKEN_IDENT@41..54 "trailingSlash"
|
||||
TOKEN_WHITESPACE@54..55 " "
|
||||
TOKEN_ASSIGN@55..56 "="
|
||||
TOKEN_WHITESPACE@56..57 " "
|
||||
NODE_ERROR@57..66
|
||||
TOKEN_ERROR@57..66 "/foo/bar/"
|
||||
TOKEN_SEMICOLON@66..67 ";"
|
||||
TOKEN_WHITESPACE@67..70 "\n "
|
||||
NODE_ATTRPATH_VALUE@70..94
|
||||
NODE_ATTRPATH@70..81
|
||||
NODE_IDENT@70..81
|
||||
TOKEN_IDENT@70..81 "doubleSlash"
|
||||
TOKEN_WHITESPACE@81..82 " "
|
||||
TOKEN_ASSIGN@82..83 "="
|
||||
TOKEN_WHITESPACE@83..84 " "
|
||||
NODE_ERROR@84..93
|
||||
TOKEN_ERROR@84..93 "/foo//bar"
|
||||
TOKEN_SEMICOLON@93..94 ";"
|
||||
TOKEN_WHITESPACE@94..97 "\n "
|
||||
NODE_ATTRPATH_VALUE@97..111
|
||||
NODE_ATTRPATH@97..105
|
||||
NODE_IDENT@97..105
|
||||
TOKEN_IDENT@97..105 "bareHome"
|
||||
TOKEN_WHITESPACE@105..106 " "
|
||||
TOKEN_ASSIGN@106..107 "="
|
||||
TOKEN_WHITESPACE@107..108 " "
|
||||
NODE_ERROR@108..110
|
||||
TOKEN_ERROR@108..110 "~/"
|
||||
TOKEN_SEMICOLON@110..111 ";"
|
||||
TOKEN_WHITESPACE@111..114 "\n "
|
||||
NODE_ATTRPATH_VALUE@114..139
|
||||
NODE_ATTRPATH@114..125
|
||||
NODE_IDENT@114..125
|
||||
TOKEN_IDENT@114..125 "tildeMiddle"
|
||||
TOKEN_WHITESPACE@125..126 " "
|
||||
TOKEN_ASSIGN@126..127 "="
|
||||
TOKEN_WHITESPACE@127..128 " "
|
||||
NODE_APPLY@128..138
|
||||
NODE_ERROR@128..133
|
||||
TOKEN_ERROR@128..133 "/foo/"
|
||||
NODE_PATH_HOME@133..138
|
||||
TOKEN_PATH_HOME@133..138 "~/bar"
|
||||
TOKEN_SEMICOLON@138..139 ";"
|
||||
TOKEN_WHITESPACE@139..140 "\n"
|
||||
TOKEN_R_BRACE@140..141 "}"
|
||||
|
||||
7
third_party/crates/rnix-0.14.0/test_data/parser/error/path_multiple_errors.nix
vendored
Normal file
7
third_party/crates/rnix-0.14.0/test_data/parser/error/path_multiple_errors.nix
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
# Multiple path errors in one file
|
||||
trailingSlash = /foo/bar/;
|
||||
doubleSlash = /foo//bar;
|
||||
bareHome = ~/;
|
||||
tildeMiddle = /foo/~/bar;
|
||||
}
|
||||
17
third_party/crates/rnix-0.14.0/test_data/parser/error/path_store_interp.expect
vendored
Normal file
17
third_party/crates/rnix-0.14.0/test_data/parser/error/path_store_interp.expect
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
error: unexpected TOKEN_LESS at 0..1, wanted any of [TOKEN_L_PAREN, TOKEN_REC, TOKEN_L_BRACE, TOKEN_L_BRACK, TOKEN_STRING_START, TOKEN_IDENT]
|
||||
error: unexpected end of file
|
||||
NODE_ROOT@0..20
|
||||
NODE_BIN_OP@0..20
|
||||
NODE_APPLY@0..19
|
||||
NODE_ERROR@0..1
|
||||
TOKEN_LESS@0..1 "<"
|
||||
NODE_PATH_REL@1..19
|
||||
TOKEN_PATH_REL@1..9 "nixpkgs/"
|
||||
NODE_INTERPOL@9..15
|
||||
TOKEN_INTERPOL_START@9..11 "${"
|
||||
NODE_IDENT@11..14
|
||||
TOKEN_IDENT@11..14 "foo"
|
||||
TOKEN_INTERPOL_END@14..15 "}"
|
||||
TOKEN_PATH_REL@15..19 "/bar"
|
||||
TOKEN_MORE@19..20 ">"
|
||||
|
||||
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_store_interp.nix
vendored
Normal file
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_store_interp.nix
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<nixpkgs/${foo}/bar>
|
||||
5
third_party/crates/rnix-0.14.0/test_data/parser/error/path_tilde.expect
vendored
Normal file
5
third_party/crates/rnix-0.14.0/test_data/parser/error/path_tilde.expect
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
error: unexpected TOKEN_ERROR at 0..2, wanted any of [TOKEN_L_PAREN, TOKEN_REC, TOKEN_L_BRACE, TOKEN_L_BRACK, TOKEN_STRING_START, TOKEN_IDENT]
|
||||
NODE_ROOT@0..2
|
||||
NODE_ERROR@0..2
|
||||
TOKEN_ERROR@0..2 "~p"
|
||||
|
||||
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_tilde.nix
vendored
Normal file
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_tilde.nix
vendored
Normal file
@@ -0,0 +1 @@
|
||||
~p
|
||||
5
third_party/crates/rnix-0.14.0/test_data/parser/error/path_tilde_slash.expect
vendored
Normal file
5
third_party/crates/rnix-0.14.0/test_data/parser/error/path_tilde_slash.expect
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
error: unexpected TOKEN_ERROR at 0..2, wanted any of [TOKEN_L_PAREN, TOKEN_REC, TOKEN_L_BRACE, TOKEN_L_BRACK, TOKEN_STRING_START, TOKEN_IDENT]
|
||||
NODE_ROOT@0..2
|
||||
NODE_ERROR@0..2
|
||||
TOKEN_ERROR@0..2 "~/"
|
||||
|
||||
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_tilde_slash.nix
vendored
Normal file
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_tilde_slash.nix
vendored
Normal file
@@ -0,0 +1 @@
|
||||
~/
|
||||
5
third_party/crates/rnix-0.14.0/test_data/parser/error/path_trailing_slash.expect
vendored
Normal file
5
third_party/crates/rnix-0.14.0/test_data/parser/error/path_trailing_slash.expect
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
error: unexpected TOKEN_ERROR at 0..3, wanted any of [TOKEN_L_PAREN, TOKEN_REC, TOKEN_L_BRACE, TOKEN_L_BRACK, TOKEN_STRING_START, TOKEN_IDENT]
|
||||
NODE_ROOT@0..3
|
||||
NODE_ERROR@0..3
|
||||
TOKEN_ERROR@0..3 "/a/"
|
||||
|
||||
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_trailing_slash.nix
vendored
Normal file
1
third_party/crates/rnix-0.14.0/test_data/parser/error/path_trailing_slash.nix
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/a/
|
||||
9
third_party/crates/rnix-0.14.0/test_data/parser/error/select_both_errors.expect
vendored
Normal file
9
third_party/crates/rnix-0.14.0/test_data/parser/error/select_both_errors.expect
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
error: unexpected TOKEN_R_BRACK at 0..1, wanted any of [TOKEN_L_PAREN, TOKEN_REC, TOKEN_L_BRACE, TOKEN_L_BRACK, TOKEN_STRING_START, TOKEN_IDENT]
|
||||
error: unexpected end of file, wanted any of [TOKEN_IDENT, TOKEN_OR, TOKEN_CUR_POS]
|
||||
NODE_ROOT@0..2
|
||||
NODE_SELECT@0..2
|
||||
NODE_ERROR@0..1
|
||||
TOKEN_R_BRACK@0..1 "]"
|
||||
TOKEN_DOT@1..2 "."
|
||||
NODE_ATTRPATH@2..2
|
||||
|
||||
1
third_party/crates/rnix-0.14.0/test_data/parser/error/select_both_errors.nix
vendored
Normal file
1
third_party/crates/rnix-0.14.0/test_data/parser/error/select_both_errors.nix
vendored
Normal file
@@ -0,0 +1 @@
|
||||
].
|
||||
23
third_party/crates/rnix-0.14.0/test_data/parser/error/ws_belongs_to_root.expect
vendored
Normal file
23
third_party/crates/rnix-0.14.0/test_data/parser/error/ws_belongs_to_root.expect
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
error: unexpected end of file
|
||||
error: unexpected end of file, wanted any of [TOKEN_SEMICOLON]
|
||||
error: unexpected end of file
|
||||
NODE_ROOT@0..50
|
||||
NODE_ATTR_SET@0..48
|
||||
TOKEN_L_BRACE@0..1 "{"
|
||||
TOKEN_WHITESPACE@1..4 "\n "
|
||||
NODE_ATTRPATH_VALUE@4..48
|
||||
NODE_ATTRPATH@4..11
|
||||
NODE_IDENT@4..11
|
||||
TOKEN_IDENT@4..11 "traceIf"
|
||||
TOKEN_WHITESPACE@11..12 " "
|
||||
TOKEN_ASSIGN@12..13 "="
|
||||
TOKEN_WHITESPACE@13..18 "\n "
|
||||
TOKEN_COMMENT@18..38 "# predicate to check"
|
||||
TOKEN_WHITESPACE@38..43 "\n "
|
||||
NODE_LAMBDA@43..48
|
||||
NODE_IDENT_PARAM@43..47
|
||||
NODE_IDENT@43..47
|
||||
TOKEN_IDENT@43..47 "pred"
|
||||
TOKEN_COLON@47..48 ":"
|
||||
TOKEN_WHITESPACE@48..50 "\n\n"
|
||||
|
||||
6
third_party/crates/rnix-0.14.0/test_data/parser/error/ws_belongs_to_root.nix
vendored
Normal file
6
third_party/crates/rnix-0.14.0/test_data/parser/error/ws_belongs_to_root.nix
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
traceIf =
|
||||
# predicate to check
|
||||
pred:
|
||||
|
||||
|
||||
10
third_party/crates/rnix-0.14.0/test_data/parser/error/ws_belongs_to_root2.expect
vendored
Normal file
10
third_party/crates/rnix-0.14.0/test_data/parser/error/ws_belongs_to_root2.expect
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
error: unexpected token at 3..4
|
||||
NODE_ROOT@0..5
|
||||
NODE_ATTR_SET@0..2
|
||||
TOKEN_L_BRACE@0..1 "{"
|
||||
TOKEN_R_BRACE@1..2 "}"
|
||||
TOKEN_WHITESPACE@2..3 " "
|
||||
NODE_ERROR@3..4
|
||||
TOKEN_ASSIGN@3..4 "="
|
||||
TOKEN_WHITESPACE@4..5 "\n"
|
||||
|
||||
2
third_party/crates/rnix-0.14.0/test_data/parser/error/ws_belongs_to_root2.nix
vendored
Normal file
2
third_party/crates/rnix-0.14.0/test_data/parser/error/ws_belongs_to_root2.nix
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
{} =
|
||||
|
||||
Reference in New Issue
Block a user