File tree Expand file tree Collapse file tree 1 file changed +74
-0
lines changed Expand file tree Collapse file tree 1 file changed +74
-0
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,80 @@ const ψ_2 : Ψ = 1;
219219 (type_identifier)
220220 (integer_literal)))
221221
222+ ================================================================================
223+ Frontmatter
224+ ================================================================================
225+
226+ #!/usr/bin/env cargo
227+
228+ ---
229+ [package]
230+ edition = "2024"
231+ ---
232+
233+ --------------------------------------------------------------------------------
234+
235+ (source_file
236+ (shebang)
237+ (frontmatter
238+ (frontmatter_content)))
239+
240+ ================================================================================
241+ Frontmatter with escaping
242+ ================================================================================
243+
244+ -----
245+ [package]
246+ description = """
247+ ---
248+ ---
249+ """
250+ -----
251+
252+ --------------------------------------------------------------------------------
253+
254+ (source_file
255+ (frontmatter
256+ (frontmatter_content)))
257+
258+ ================================================================================
259+ Empty frontmatter
260+ ================================================================================
261+
262+ ---
263+ ---
264+
265+ fn main() {}
266+
267+ --------------------------------------------------------------------------------
268+
269+ (source_file
270+ (frontmatter
271+ (frontmatter_content))
272+ (function_item
273+ (identifier)
274+ (parameters)
275+ (block)))
276+
277+ ================================================================================
278+ Empty frontmatter with info string
279+ ================================================================================
280+
281+ --- info string
282+ ---
283+
284+ fn main() {}
285+
286+ --------------------------------------------------------------------------------
287+
288+ (source_file
289+ (frontmatter
290+ (frontmatter_content))
291+ (function_item
292+ (identifier)
293+ (parameters)
294+ (block)))
295+
222296================================================================================
223297Shebang line containing spaces
224298================================================================================
You can’t perform that action at this time.
0 commit comments