-
Notifications
You must be signed in to change notification settings - Fork 6
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
added free form text pattern to use with example content #36
base: main
Are you sure you want to change the base?
Conversation
- include: '#javascript_codefence' | ||
- include: '#object' | ||
- include: '#tag' | ||
- include: '#free_form_text' |
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.
one of the patterns that came with #core
was the doc tag so I removed it so we didn't have any potential nested rule action.
Manually adding patterns also let us set the free_form_text
above text.basic.html
allowing us to properly highlight free form text anywhere within the example content.
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.
Since our hover in theme-tools assumes it's entirely liquid, how does it appear there?
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.
|
||
liquid_doc_fallback_tag: | ||
match: '(@\w+)\b' | ||
captures: | ||
1: { name: comment.block.liquid } | ||
|
||
free_form_text: | ||
match: '(?:(?![{<]).)+' |
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.
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.
sounds good
Closes: https://github.com/Shopify/developer-tools-team/issues/614
Adds proper highlighting for free form text pattern for
@example
that aligns with@description
and@param
tagsBefore:

After:
