-
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.
Browse files
Browse the repository at this point in the history
## What are you adding in this PR? Closes Shopify/develop-advanced-edits#441 https://share.descript.com/view/sZkEWbd5kAr Added support for parsing and formatting `@param` tags within Liquid doc blocks. - Added a configurable option to prettier `liquidDocParamDash` to format all descriptions with `-` (or not) ## What's next? Any followup issues? - I'm moving on to completions while Josh is going to add parsing + prettier support for the `@example` tag - I want to add support for optional params, default values, etc afterwards ## What did you learn? Creating ohm syntax rules is an art form ## Testing https://github.com/user-attachments/assets/3a902774-8088-4a00-9f8c-c915aec75fe3 ## Before you deploy - [x] I included a minor bump `changeset` - [x] My feature is backward compatible
- Loading branch information
Showing
16 changed files
with
379 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@shopify/theme-language-server-common': minor | ||
'@shopify/prettier-plugin-liquid': minor | ||
'@shopify/liquid-html-parser': minor | ||
--- | ||
|
||
Add prettier support for LiquidDoc {% doc %} tag and @param annotation |
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
Oops, something went wrong.