-
Notifications
You must be signed in to change notification settings - Fork 3
Feature request: support for leptos #21
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
I have tested this plugin by changing only the name of the macro view to html. and it seemed to work fine. is there any chance you are willing to add highligthing for leptos?
looking at the syntax highlighting code I think this should work:
{
"scopeName": "source.rust.yew",
"injectionSelector": "L:source.rust",
"patterns": [
{
"include": "#view-macro"
},
{
"include": "#rust-brackets"
}
],
"repository": {
"view-macro": {
"name": "source.rust.leptos.view",
"begin": "view! {",
"end": "}",
"beginCaptures": {
"0": {
"name": "punctuation.macro.open"
}
},
"endCaptures": {
"0": {
"name": "punctuation.macro.close"
}
},
"patterns": [
{
"include": "source.js.jsx"
}
]
},
"rust-brackets": {
"name": "source.rust.leptos",
"begin": "{",
"end": "}",
"patterns": [
{
"include": "source.rust"
}
]
}
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed