-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: syntax coloring #1
Comments
# Imported from Slack conversationhighlighting optional Yaml data in the blew syntax seems impossible
We use ending But this kind of logic does not support in language grammars They simply does not support backtracking, for simplicity and performance issues An alternative would be to change data syntax to something like front matters syntax
Here is the proposal structure with coloring |
I see, that makes total sense. What about: ::block-hero
---
data: yaml data
---
[default] (optional)
This is the default slot
[title]
The Jamstack Website Generator.
:: Using |
Great idea; I also though that mixing the same syntax for props & slots was going to be confusing. I like using []. As we are delimitating content; I also though about this (unsure if possible):
Note that https://vuejs.org/v2/guide/components-slots.html#Named-Slots-Shorthand |
I like it even more 🔥 Would that be possible @farnabaz ? |
Absolutely 👍 |
Also, have you considerd the ugly markup with naive markdown parser caused by the |
Syntax coloring discussions should happen here. 😊
The text was updated successfully, but these errors were encountered: