-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #665 from Shopify/jm/liquid_doc_param_description
Add parsing + prettier support for param name and description in doc tags
- Loading branch information
Showing
9 changed files
with
171 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
packages/prettier-plugin-liquid/src/test/liquid-doc/fixed.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
It should indent the body | ||
{% doc %} | ||
@param body | ||
@param paramName param with description | ||
{% enddoc %} | ||
|
||
It should not dedent to root | ||
{% doc %} | ||
@param body | ||
@param paramName param with description | ||
{% enddoc %} | ||
|
||
It should trim whitespace between nodes | ||
{% doc %} | ||
@param paramName param with description | ||
{% enddoc %} |
9 changes: 7 additions & 2 deletions
9
packages/prettier-plugin-liquid/src/test/liquid-doc/index.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
It should indent the body | ||
{% doc %} | ||
@param body | ||
@param paramName param with description | ||
{% enddoc %} | ||
|
||
It should not dedent to root | ||
{% doc %} | ||
@param body | ||
@param paramName param with description | ||
{% enddoc %} | ||
|
||
It should trim whitespace between nodes | ||
{% doc %} | ||
@param paramName param with description | ||
{% enddoc %} |