Debian Codegraph @

src/grammar.rs

raw symbols SCIP
1 // const _GRAMMAR: &'static str = include_str!("grammar.pest");
2
3 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Parserrust-analyzer cargo pest_derive 2.7.8 Parser:)]
4 #[grammar = "grammar.pest"]
5 pub struct HandlebarsParserrust-analyzer cargo handlebars 5.1.2 grammar/HandlebarsParser#;
6
7 #[cfg(test)]
8 mod testrust-analyzer cargo handlebars 5.1.2 grammar/test/ {
9 use superrust-analyzer cargo handlebars 5.1.2 grammar/::{HandlebarsParserrust-analyzer cargo handlebars 5.1.2 grammar/HandlebarsParser#, Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#};
10 use pestrust-analyzer cargo pest 2.7.8 crate/::Parserrust-analyzer cargo pest 2.7.8 parser/Parser#;
11
12 macro_rules! assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule! {
13 ($rule:expr, $in:expr) => {
14 assert_eq!(
15 HandlebarsParser::parse($rule, $in)
16 .unwrap()
17 .last()
18 .unwrap()
19 .as_span()
20 .end(),
21 $in.len()
22 );
23 };
24 }
25
26 macro_rules! assert_not_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_not_rule! {
27 ($rule:expr, $in:expr) => {
28 assert!(
29 HandlebarsParser::parse($rule, $in).is_err()
30 || HandlebarsParser::parse($rule, $in)
31 .unwrap()
32 .last()
33 .unwrap()
34 .as_span()
35 .end()
36 != $in.len()
37 );
38 };
39 }
40
41 macro_rules! assert_rule_matchrust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule_match! {
42 ($rule:expr, $in:expr) => {
43 assert!(HandlebarsParser::parse($rule, $in).is_ok());
44 };
45 }
46
47 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
48 fn test_raw_textrust-analyzer cargo handlebars 5.1.2 grammar/test/test_raw_text().() {
49 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
50 "<h1> helloworld </h1> ",
51 r"hello\{{world}}",
52 r"hello\{{#if world}}nice\{{/if}}",
53 r"hello \{{{{raw}}}}hello\{{{{/raw}}}}",
54 ];
55 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
56 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::raw_textrust-analyzer cargo handlebars 5.1.2 grammar/Rule#raw_text#, i);
57 }
58
59 let s_not_escape = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![r"\\{{hello}}"];
60 for i in s_not_escape.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
61 assert_not_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_not_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::raw_textrust-analyzer cargo handlebars 5.1.2 grammar/Rule#raw_text#, i);
62 }
63 }
64
65 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
66 fn test_raw_block_textrust-analyzer cargo handlebars 5.1.2 grammar/test/test_raw_block_text().() {
67 let s = "<h1> {{hello}} </h1>";
68 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::raw_block_textrust-analyzer cargo handlebars 5.1.2 grammar/Rule#raw_block_text#, s);
69 }
70
71 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
72 fn test_referencerust-analyzer cargo handlebars 5.1.2 grammar/test/test_reference().() {
73 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
74 "a",
75 "abc",
76 "../a",
77 "a.b",
78 "@abc",
79 "a.[abc]",
80 "aBc.[abc]",
81 "abc.[0].[nice]",
82 "some-name",
83 "this.[0].ok",
84 "this.[$id]",
85 "[$id]",
86 "$id",
87 "this.[null]",
88 ];
89 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
90 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::referencerust-analyzer cargo handlebars 5.1.2 grammar/Rule#reference#, i);
91 }
92 }
93
94 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
95 fn test_namerust-analyzer cargo handlebars 5.1.2 grammar/test/test_name().() {
96 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!!["if", "(abc)"];
97 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
98 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::namerust-analyzer cargo handlebars 5.1.2 grammar/Rule#name#, i);
99 }
100 }
101
102 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
103 fn test_paramrust-analyzer cargo handlebars 5.1.2 grammar/test/test_param().() {
104 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!!["hello", "\"json literal\"", "nullable", "truestory"];
105 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
106 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::helper_parameterrust-analyzer cargo handlebars 5.1.2 grammar/Rule#helper_parameter#, i);
107 }
108 }
109
110 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
111 fn test_hashrust-analyzer cargo handlebars 5.1.2 grammar/test/test_hash().() {
112 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
113 "hello=world",
114 "hello=\"world\"",
115 "hello=(world)",
116 "hello=(world 0)",
117 ];
118 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
119 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::hashrust-analyzer cargo handlebars 5.1.2 grammar/Rule#hash#, i);
120 }
121 }
122
123 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
124 fn test_json_literalrust-analyzer cargo handlebars 5.1.2 grammar/test/test_json_literal().() {
125 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
126 "\"json string\"",
127 "\"quot: \\\"\"",
128 "[]",
129 "[\"hello\"]",
130 "[1,2,3,4,true]",
131 "{\"hello\": \"world\"}",
132 "{}",
133 "{\"a\":1, \"b\":2 }",
134 "\"nullable\"",
135 ];
136 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
137 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::literalrust-analyzer cargo handlebars 5.1.2 grammar/Rule#literal#, i);
138 }
139 }
140
141 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
142 fn test_commentrust-analyzer cargo handlebars 5.1.2 grammar/test/test_comment().() {
143 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!!["{{!-- <hello {{ a-b c-d}} {{d-c}} ok --}}",
144 "{{!--
145 <li><a href=\"{{up-dir nest-count}}{{base-url}}index.html\">{{this.title}}</a></li>
146 --}}",
147 "{{! -- good --}}"];
148 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
149 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::hbs_commentrust-analyzer cargo handlebars 5.1.2 grammar/Rule#hbs_comment#, i);
150 }
151 let s2 = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!!["{{! hello }}", "{{! test me }}"];
152 for i in s2.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
153 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::hbs_comment_compactrust-analyzer cargo handlebars 5.1.2 grammar/Rule#hbs_comment_compact#, i);
154 }
155 }
156
157 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
158 fn test_subexpressionrust-analyzer cargo handlebars 5.1.2 grammar/test/test_subexpression().() {
159 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!!["(sub)", "(sub 0)", "(sub a=1)"];
160 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
161 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::subexpressionrust-analyzer cargo handlebars 5.1.2 grammar/Rule#subexpression#, i);
162 }
163 }
164
165 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
166 fn test_expressionrust-analyzer cargo handlebars 5.1.2 grammar/test/test_expression().() {
167 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
168 "{{exp}}",
169 "{{(exp)}}",
170 "{{../exp}}",
171 "{{exp 1}}",
172 "{{exp \"literal\"}}",
173 "{{exp \"literal with space\"}}",
174 "{{exp 'literal with space'}}",
175 r#"{{exp "literal with escape \\\\"}}"#,
176 "{{exp ref}}",
177 "{{exp (sub)}}",
178 "{{exp (sub 123)}}",
179 "{{exp []}}",
180 "{{exp {}}}",
181 "{{exp key=1}}",
182 "{{exp key=ref}}",
183 "{{exp key='literal with space'}}",
184 "{{exp key=\"literal with space\"}}",
185 "{{exp key=(sub)}}",
186 "{{exp key=(sub 0)}}",
187 "{{exp key=(sub 0 key=1)}}",
188 ];
189 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
190 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::expressionrust-analyzer cargo handlebars 5.1.2 grammar/Rule#expression#, i);
191 }
192 }
193
194 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
195 fn test_identifier_with_dashrust-analyzer cargo handlebars 5.1.2 grammar/test/test_identifier_with_dash().() {
196 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!!["{{exp-foo}}"];
197 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
198 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::expressionrust-analyzer cargo handlebars 5.1.2 grammar/Rule#expression#, i);
199 }
200 }
201
202 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
203 fn test_html_expressionrust-analyzer cargo handlebars 5.1.2 grammar/test/test_html_expression().() {
204 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
205 "{{{html}}}",
206 "{{{(html)}}}",
207 "{{{(html)}}}",
208 "{{&html}}",
209 "{{{html 1}}}",
210 "{{{html p=true}}}",
211 "{{{~ html}}}",
212 "{{{html ~}}}",
213 "{{{~ html ~}}}",
214 "{{~{ html }~}}",
215 "{{~{ html }}}",
216 "{{{ html }~}}",
217 ];
218 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
219 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::html_expressionrust-analyzer cargo handlebars 5.1.2 grammar/Rule#html_expression#, i);
220 }
221 }
222
223 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
224 fn test_helper_startrust-analyzer cargo handlebars 5.1.2 grammar/test/test_helper_start().() {
225 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
226 "{{#if hello}}",
227 "{{#if (hello)}}",
228 "{{#if hello=world}}",
229 "{{#if hello hello=world}}",
230 "{{#if []}}",
231 "{{#if {}}}",
232 "{{#if}}",
233 "{{~#if hello~}}",
234 "{{#each people as |person|}}",
235 "{{#each-obj obj as |val key|}}",
236 "{{#each assets}}",
237 ];
238 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
239 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::helper_block_startrust-analyzer cargo handlebars 5.1.2 grammar/Rule#helper_block_start#, i);
240 }
241 }
242
243 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
244 fn test_helper_endrust-analyzer cargo handlebars 5.1.2 grammar/test/test_helper_end().() {
245 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!!["{{/if}}", "{{~/if}}", "{{~/if ~}}", "{{/if ~}}"];
246 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
247 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::helper_block_endrust-analyzer cargo handlebars 5.1.2 grammar/Rule#helper_block_end#, i);
248 }
249 }
250
251 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
252 fn test_helper_blockrust-analyzer cargo handlebars 5.1.2 grammar/test/test_helper_block().() {
253 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
254 "{{#if hello}}hello{{/if}}",
255 "{{#if true}}hello{{/if}}",
256 "{{#if nice ok=1}}hello{{/if}}",
257 "{{#if}}hello{{else}}world{{/if}}",
258 "{{#if}}hello{{^}}world{{/if}}",
259 "{{#if}}{{#if}}hello{{/if}}{{/if}}",
260 "{{#if}}hello{{~else}}world{{/if}}",
261 "{{#if}}hello{{else~}}world{{/if}}",
262 "{{#if}}hello{{~^~}}world{{/if}}",
263 "{{#if}}{{/if}}",
264 "{{#if}}hello{{else if}}world{{else}}test{{/if}}",
265 ];
266 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
267 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::helper_blockrust-analyzer cargo handlebars 5.1.2 grammar/Rule#helper_block#, i);
268 }
269 }
270
271 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
272 fn test_raw_blockrust-analyzer cargo handlebars 5.1.2 grammar/test/test_raw_block().() {
273 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
274 "{{{{if hello}}}}good {{hello}}{{{{/if}}}}",
275 "{{{{if hello}}}}{{#if nice}}{{/if}}{{{{/if}}}}",
276 ];
277 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
278 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::raw_blockrust-analyzer cargo handlebars 5.1.2 grammar/Rule#raw_block#, i);
279 }
280 }
281
282 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
283 fn test_block_paramrust-analyzer cargo handlebars 5.1.2 grammar/test/test_block_param().() {
284 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!!["as |person|", "as |val key|"];
285 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
286 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::block_paramrust-analyzer cargo handlebars 5.1.2 grammar/Rule#block_param#, i);
287 }
288 }
289
290 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
291 fn test_pathrust-analyzer cargo handlebars 5.1.2 grammar/test/test_path().() {
292 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
293 "a",
294 "a.b.c.d",
295 "a.[0].[1].[2]",
296 "a.[abc]",
297 "a/v/c.d.s",
298 "a.[0]/b/c/d",
299 "a.[bb c]/b/c/d",
300 "a.[0].[#hello]",
301 "../a/b.[0].[1]",
302 "this.[0]/[1]/this/a",
303 "./this_name",
304 "./goo/[/bar]",
305 "a.[你好]",
306 "a.[10].[#comment]",
307 "a.[]", // empty key
308 "./[/foo]",
309 "[foo]",
310 "@root/a/b",
311 "nullable",
312 ];
313 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
314 assert_rule_matchrust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule_match!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::pathrust-analyzer cargo handlebars 5.1.2 grammar/Rule#path#, i);
315 }
316 }
317
318 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
319 fn test_decorator_expressionrust-analyzer cargo handlebars 5.1.2 grammar/test/test_decorator_expression().() {
320 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!!["{{* ssh}}", "{{~* ssh}}"];
321 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
322 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::decorator_expressionrust-analyzer cargo handlebars 5.1.2 grammar/Rule#decorator_expression#, i);
323 }
324 }
325
326 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
327 fn test_decorator_blockrust-analyzer cargo handlebars 5.1.2 grammar/test/test_decorator_block().() {
328 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
329 "{{#* inline}}something{{/inline}}",
330 "{{~#* inline}}hello{{/inline}}",
331 "{{#* inline \"partialname\"}}something{{/inline}}",
332 ];
333 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
334 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::decorator_blockrust-analyzer cargo handlebars 5.1.2 grammar/Rule#decorator_block#, i);
335 }
336 }
337
338 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
339 fn test_partial_expressionrust-analyzer cargo handlebars 5.1.2 grammar/test/test_partial_expression().() {
340 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
341 "{{> hello}}",
342 "{{> (hello)}}",
343 "{{~> hello a}}",
344 "{{> hello a=1}}",
345 "{{> (hello) a=1}}",
346 "{{> hello.world}}",
347 "{{> [a83?f4+.3]}}",
348 "{{> 'anif?.bar'}}",
349 ];
350 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
351 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::partial_expressionrust-analyzer cargo handlebars 5.1.2 grammar/Rule#partial_expression#, i);
352 }
353 }
354
355 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
356 fn test_partial_blockrust-analyzer cargo handlebars 5.1.2 grammar/test/test_partial_block().() {
357 let s = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!!["{{#> hello}}nice{{/hello}}"];
358 for i in s.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
359 assert_rulerust-analyzer cargo handlebars 5.1.2 grammar/test/assert_rule!!(Rulerust-analyzer cargo handlebars 5.1.2 grammar/Rule#::partial_blockrust-analyzer cargo handlebars 5.1.2 grammar/Rule#partial_block#, i);
360 }
361 }
362 }