diff options
-rw-r--r-- | src/grammar.ron | 2 | ||||
-rw-r--r-- | src/parser/grammar/params.rs | 2 | ||||
-rw-r--r-- | src/syntax_kinds/generated.rs | 4 | ||||
-rw-r--r-- | tests/data/parser/inline/0055_self_param.txt | 2 | ||||
-rw-r--r-- | tests/data/parser/inline/0063_lambda_expr.txt | 4 | ||||
-rw-r--r-- | tests/data/parser/inline/0064_param_list.txt | 8 |
6 files changed, 11 insertions, 11 deletions
diff --git a/src/grammar.ron b/src/grammar.ron index 24f11f63e..a9a3847c9 100644 --- a/src/grammar.ron +++ b/src/grammar.ron | |||
@@ -165,7 +165,7 @@ Grammar( | |||
165 | "ASSOC_TYPE_ARG", | 165 | "ASSOC_TYPE_ARG", |
166 | 166 | ||
167 | "PARAM_LIST", | 167 | "PARAM_LIST", |
168 | "VALUE_PARAMETER", | 168 | "PARAM", |
169 | "SELF_PARAM", | 169 | "SELF_PARAM", |
170 | "ARG_LIST", | 170 | "ARG_LIST", |
171 | ] | 171 | ] |
diff --git a/src/parser/grammar/params.rs b/src/parser/grammar/params.rs index 1ef2cea88..99fedfc21 100644 --- a/src/parser/grammar/params.rs +++ b/src/parser/grammar/params.rs | |||
@@ -37,7 +37,7 @@ fn value_parameter(p: &mut Parser, require_type: bool) { | |||
37 | if p.at(COLON) || require_type { | 37 | if p.at(COLON) || require_type { |
38 | types::ascription(p) | 38 | types::ascription(p) |
39 | } | 39 | } |
40 | m.complete(p, VALUE_PARAMETER); | 40 | m.complete(p, PARAM); |
41 | } | 41 | } |
42 | 42 | ||
43 | // test self_param | 43 | // test self_param |
diff --git a/src/syntax_kinds/generated.rs b/src/syntax_kinds/generated.rs index 93a3250a4..2f7c29008 100644 --- a/src/syntax_kinds/generated.rs +++ b/src/syntax_kinds/generated.rs | |||
@@ -152,7 +152,7 @@ pub enum SyntaxKind { | |||
152 | TYPE_ARG, | 152 | TYPE_ARG, |
153 | ASSOC_TYPE_ARG, | 153 | ASSOC_TYPE_ARG, |
154 | PARAM_LIST, | 154 | PARAM_LIST, |
155 | VALUE_PARAMETER, | 155 | PARAM, |
156 | SELF_PARAM, | 156 | SELF_PARAM, |
157 | ARG_LIST, | 157 | ARG_LIST, |
158 | // Technical SyntaxKinds: they appear temporally during parsing, | 158 | // Technical SyntaxKinds: they appear temporally during parsing, |
@@ -314,7 +314,7 @@ impl SyntaxKind { | |||
314 | TYPE_ARG => &SyntaxInfo { name: "TYPE_ARG" }, | 314 | TYPE_ARG => &SyntaxInfo { name: "TYPE_ARG" }, |
315 | ASSOC_TYPE_ARG => &SyntaxInfo { name: "ASSOC_TYPE_ARG" }, | 315 | ASSOC_TYPE_ARG => &SyntaxInfo { name: "ASSOC_TYPE_ARG" }, |
316 | PARAM_LIST => &SyntaxInfo { name: "PARAM_LIST" }, | 316 | PARAM_LIST => &SyntaxInfo { name: "PARAM_LIST" }, |
317 | VALUE_PARAMETER => &SyntaxInfo { name: "VALUE_PARAMETER" }, | 317 | PARAM => &SyntaxInfo { name: "PARAM" }, |
318 | SELF_PARAM => &SyntaxInfo { name: "SELF_PARAM" }, | 318 | SELF_PARAM => &SyntaxInfo { name: "SELF_PARAM" }, |
319 | ARG_LIST => &SyntaxInfo { name: "ARG_LIST" }, | 319 | ARG_LIST => &SyntaxInfo { name: "ARG_LIST" }, |
320 | TOMBSTONE => &SyntaxInfo { name: "TOMBSTONE" }, | 320 | TOMBSTONE => &SyntaxInfo { name: "TOMBSTONE" }, |
diff --git a/tests/data/parser/inline/0055_self_param.txt b/tests/data/parser/inline/0055_self_param.txt index 9ea55f589..96114d4cc 100644 --- a/tests/data/parser/inline/0055_self_param.txt +++ b/tests/data/parser/inline/0055_self_param.txt | |||
@@ -76,7 +76,7 @@ FILE@[0; 106) | |||
76 | WHITESPACE@[86; 87) | 76 | WHITESPACE@[86; 87) |
77 | SELF_KW@[87; 91) | 77 | SELF_KW@[87; 91) |
78 | COMMA@[91; 92) | 78 | COMMA@[91; 92) |
79 | VALUE_PARAMETER@[92; 99) | 79 | PARAM@[92; 99) |
80 | BIND_PAT@[92; 94) | 80 | BIND_PAT@[92; 94) |
81 | NAME@[92; 94) | 81 | NAME@[92; 94) |
82 | WHITESPACE@[92; 93) | 82 | WHITESPACE@[92; 93) |
diff --git a/tests/data/parser/inline/0063_lambda_expr.txt b/tests/data/parser/inline/0063_lambda_expr.txt index b1edffc14..b1be9e5bc 100644 --- a/tests/data/parser/inline/0063_lambda_expr.txt +++ b/tests/data/parser/inline/0063_lambda_expr.txt | |||
@@ -49,7 +49,7 @@ FILE@[0; 74) | |||
49 | LAMBDA_EXPR@[48; 53) | 49 | LAMBDA_EXPR@[48; 53) |
50 | PARAM_LIST@[48; 52) | 50 | PARAM_LIST@[48; 52) |
51 | PIPE@[48; 49) | 51 | PIPE@[48; 49) |
52 | VALUE_PARAMETER@[49; 50) | 52 | PARAM@[49; 50) |
53 | BIND_PAT@[49; 50) | 53 | BIND_PAT@[49; 50) |
54 | NAME@[49; 50) | 54 | NAME@[49; 50) |
55 | IDENT@[49; 50) "x" | 55 | IDENT@[49; 50) "x" |
@@ -66,7 +66,7 @@ FILE@[0; 74) | |||
66 | LAMBDA_EXPR@[59; 70) | 66 | LAMBDA_EXPR@[59; 70) |
67 | PARAM_LIST@[59; 69) | 67 | PARAM_LIST@[59; 69) |
68 | PIPE@[59; 60) | 68 | PIPE@[59; 60) |
69 | VALUE_PARAMETER@[60; 66) | 69 | PARAM@[60; 66) |
70 | BIND_PAT@[60; 61) | 70 | BIND_PAT@[60; 61) |
71 | NAME@[60; 61) | 71 | NAME@[60; 61) |
72 | IDENT@[60; 61) "x" | 72 | IDENT@[60; 61) "x" |
diff --git a/tests/data/parser/inline/0064_param_list.txt b/tests/data/parser/inline/0064_param_list.txt index 96e03d71a..eebed8177 100644 --- a/tests/data/parser/inline/0064_param_list.txt +++ b/tests/data/parser/inline/0064_param_list.txt | |||
@@ -19,7 +19,7 @@ FILE@[0; 67) | |||
19 | IDENT@[13; 14) "b" | 19 | IDENT@[13; 14) "b" |
20 | PARAM_LIST@[14; 23) | 20 | PARAM_LIST@[14; 23) |
21 | L_PAREN@[14; 15) | 21 | L_PAREN@[14; 15) |
22 | VALUE_PARAMETER@[15; 21) | 22 | PARAM@[15; 21) |
23 | BIND_PAT@[15; 16) | 23 | BIND_PAT@[15; 16) |
24 | NAME@[15; 16) | 24 | NAME@[15; 16) |
25 | IDENT@[15; 16) "x" | 25 | IDENT@[15; 16) "x" |
@@ -43,7 +43,7 @@ FILE@[0; 67) | |||
43 | IDENT@[29; 30) "c" | 43 | IDENT@[29; 30) "c" |
44 | PARAM_LIST@[30; 41) | 44 | PARAM_LIST@[30; 41) |
45 | L_PAREN@[30; 31) | 45 | L_PAREN@[30; 31) |
46 | VALUE_PARAMETER@[31; 37) | 46 | PARAM@[31; 37) |
47 | BIND_PAT@[31; 32) | 47 | BIND_PAT@[31; 32) |
48 | NAME@[31; 32) | 48 | NAME@[31; 32) |
49 | IDENT@[31; 32) "x" | 49 | IDENT@[31; 32) "x" |
@@ -69,7 +69,7 @@ FILE@[0; 67) | |||
69 | IDENT@[47; 48) "d" | 69 | IDENT@[47; 48) "d" |
70 | PARAM_LIST@[48; 64) | 70 | PARAM_LIST@[48; 64) |
71 | L_PAREN@[48; 49) | 71 | L_PAREN@[48; 49) |
72 | VALUE_PARAMETER@[49; 55) | 72 | PARAM@[49; 55) |
73 | BIND_PAT@[49; 50) | 73 | BIND_PAT@[49; 50) |
74 | NAME@[49; 50) | 74 | NAME@[49; 50) |
75 | IDENT@[49; 50) "x" | 75 | IDENT@[49; 50) "x" |
@@ -81,7 +81,7 @@ FILE@[0; 67) | |||
81 | WHITESPACE@[51; 52) | 81 | WHITESPACE@[51; 52) |
82 | IDENT@[52; 55) "i32" | 82 | IDENT@[52; 55) "i32" |
83 | COMMA@[55; 56) | 83 | COMMA@[55; 56) |
84 | VALUE_PARAMETER@[56; 62) | 84 | PARAM@[56; 62) |
85 | BIND_PAT@[56; 58) | 85 | BIND_PAT@[56; 58) |
86 | NAME@[56; 58) | 86 | NAME@[56; 58) |
87 | WHITESPACE@[56; 57) | 87 | WHITESPACE@[56; 57) |