Skip to content

Commit

Permalink
Add test for doc attribute including a file
Browse files Browse the repository at this point in the history
Summary: Capture an additional doc attribute format in a test

Reviewed By: TD5

Differential Revision: D60166663

fbshipit-source-id: 307c1e74d613af8df03d6e89aa43b7c8bb0fda2c
  • Loading branch information
alanz authored and facebook-github-bot committed Jul 24, 2024
1 parent 19ca500 commit 8f41b58
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/corpus/doc-attributes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,26 @@ f() -> ok.
(expr_args)
(clause_body
(atom)))))

================================================================================
doc include file
================================================================================

-doc {file,"../../doc/src/info.md"}.
f() -> ok.

--------------------------------------------------------------------------------

(source_file
(wild_attribute
(attr_name
(atom))
(tuple
(atom)
(string)))
(fun_decl
(function_clause
(atom)
(expr_args)
(clause_body
(atom)))))

0 comments on commit 8f41b58

Please sign in to comment.