-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add basic prettier support for doc tag #652
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
// One of the benefits of leaving it here is that we can use the indentation and other logic from the raw markup. | ||
// The benefit of doing it in LiquidRawTag is that we can keep the logic for doc separate | ||
// I still want to understand how embeddings would work in this scenario. Maybe that's a complete different approach that we could take. | ||
return [indent([hardline, body]), hardline]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LiquidRawTag exists mostly because we want to paste the body back as it was ("raw"). So body
here is actually just a string and not a "recursive call to print". This is why the asdf thing at the bottom never gets called. You need to do some kind of path.call(p => print(p), 'children')
to make it recursive.
7b277c1
to
d4803fa
Compare
Add doc param tag
- Added `paramNode` to the grammar for LiquidDoc, allowing for parameter definitions in doc tags. - Updated the parsing logic to recognize and handle `@param` syntax correctly. - Modified CST tests to validate the new structure, ensuring proper identification of `LiquidDocParamNode` and associated text nodes. - Refactored existing tests to align with the new parsing rules and improve accuracy.
- Updated the `toLiquidDocAST` function to include handling for `@param` syntax and fallback text node
…n LiquidCompletionParams
1a1108a
to
68227c4
Compare
d4803fa
to
0f17fef
Compare
68227c4
to
e7ed99d
Compare
What are you adding in this PR?
What's next? Any followup issues?
What did you learn?
Before you deploy
changeset
allChecks
array insrc/checks/index.ts
yarn build
and committed the updated configuration filestheme-app-extension.yml
configchangeset
changeset