Skip to content

Commit

Permalink
closes #54
Browse files Browse the repository at this point in the history
  • Loading branch information
EmranMR committed Feb 24, 2024
1 parent f4783cb commit ff9543a
Show file tree
Hide file tree
Showing 5 changed files with 139,283 additions and 132,255 deletions.
5 changes: 4 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ module.exports = grammar({
$._unescaped,
$._raw,
$._setup,
$._hooks
$._hooks,
$._js
),
_escaped: ($) =>
seq(
Expand All @@ -60,6 +61,8 @@ module.exports = grammar({
optional($.php_only),
alias('@endphp', $.directive_end)
),
_js: ($) =>
seq(alias('@js', $.directive), $._directive_parameter),
// ! Conditional Attributes
attribute: ($) =>
seq(
Expand Down
22 changes: 22 additions & 0 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
{
"type": "SYMBOL",
"name": "_hooks"
},
{
"type": "SYMBOL",
"name": "_js"
}
]
},
Expand Down Expand Up @@ -235,6 +239,24 @@
}
]
},
"_js": {
"type": "SEQ",
"members": [
{
"type": "ALIAS",
"content": {
"type": "STRING",
"value": "@js"
},
"named": true,
"value": "directive"
},
{
"type": "SYMBOL",
"name": "_directive_parameter"
}
]
},
"attribute": {
"type": "SEQ",
"members": [
Expand Down
Loading

0 comments on commit ff9543a

Please sign in to comment.