Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Add @props directive to the default supported directives #75

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion syntax/blade.vim
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ syn region bladeComment matchgroup=bladeDelimiter start="{{--" end="--}}" c
syn keyword bladeKeyword @if @elseif @foreach @forelse @for @while @can @cannot @elsecan @elsecannot @include
\ @includeIf @each @inject @extends @section @stack @push @unless @yield @parent @hasSection @break @continue
\ @unset @lang @choice @component @slot @prepend @json @isset @auth @guest @switch @case @includeFirst @empty
\ @includeWhen
\ @includeWhen @props
\ nextgroup=bladePhpParenBlock skipwhite containedin=ALLBUT,@bladeExempt

syn keyword bladeKeyword @else @endif @endunless @endfor @endforeach @endforelse @endwhile @endcan
Expand Down
2 changes: 2 additions & 0 deletions test.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@props(['foo' => 'bar', 'baz'])

<?php if($foo='bar' ) { $something() } ?>
Hello, {{ $name }}.

Expand Down