Skip to content

Commit 56ee7ac

Browse files
Merge pull request #378 from AbdelrhmanSaid/main
Add support for @pushif, @pushOnce, and @use directives in Blade completion
2 parents 1f3f27d + f81ed2d commit 56ee7ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/completion/Blade.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ export default class Blade implements vscode.CompletionItemProvider {
129129
"@slot(...)": "@slot(${1})",
130130
"@stack(...)": "@stack(${1})",
131131
"@push(...)": ["@push(${1})", indent("${2}"), "@endpush"],
132+
"@pushIf(...)": ["@pushIf(${1})", indent("${2}"), "@endPushIf"],
133+
"@pushOnce(...)": ["@pushOnce(${1})", indent("${2}"), "@endPushOnce"],
132134
"@prepend(...)": ["@prepend(${1})", indent("${2}"), "@endprepend"],
133135
"@php": ["@php", indent("${1}"), "@endphp"],
134136
"@component(...)": ["@component(${1})", "${2}", "@endcomponent"],
@@ -139,6 +141,7 @@ export default class Blade implements vscode.CompletionItemProvider {
139141
],
140142
"@section(...)": "@section(${1})",
141143
"@props(...)": "@props(${1})",
144+
"@use(...)": "@use(${1})",
142145
"@show": "@show",
143146
"@stop": "@stop",
144147
"@parent": "@parent",
@@ -165,6 +168,8 @@ export default class Blade implements vscode.CompletionItemProvider {
165168
"@endenv": "@endenv",
166169
"@endonce": "@endonce",
167170
"@endpush": "@endpush",
171+
"@endpushIf": "@endPushIf",
172+
"@endpushOnce": "@endPushOnce",
168173
"@endprepend": "@endprepend",
169174
"@endphp": "@endphp",
170175
"@endcomponent": "@endcomponent",

0 commit comments

Comments
 (0)