Comments (6)
Hi,
yes some blade directives are not implemented, and I didn't know about append.
I've done a new release on https://github.com/haidubogdan/netbeans-php-blade-plugin/releases/tag/nb122-126-04032022 where the append tag is recognized as a closing tag. The (@Stop and @show) are already added as a closing tag for @section.
For the moment I think I will add some logic related to all these blade directives for later.
Also, a version and deprecation system is also required to keep this in balance.
from netbeans-php-blade-plugin.
@can
,@elsecan
,@endcan
,
@cannot
,@elsecannot
,@endcannot
@canany
,@elsecanany
,@endcanany
,
@switch
, @case
, @default
, @endswitch
@while
,@endwhile
,
@empty
for @forelse
on autocomplete
@haidubogdan those are the most important,
Examples:
@can('update')
<!-- The current user can update the post... -->
@elsecan('create')
<!-- The current user can create new posts... -->
@else
<!-- ... -->
@endcan
@canany(['update', 'view', 'delete'])
<!-- The current user can update, view, or delete the post... -->
@elsecanany(['create'])
<!-- The current user can create a post... -->
@endcanany
@cannot('update')
<!-- The current user cannot update the post... -->
@elsecannot('create')
<!-- The current user cannot create new posts... -->
@endcannot
@forelse ($users as $user)
<li>{{ $user->name }}</li>
@empty
<p>No users</p>
@endforelse
@while (true)
<p>I'm looping forever.</p>
@endwhile
@switch($i)
@case(1)
First case...
@break
@case(2)
Second case...
@break
@default
Default case...
@endswitch
from netbeans-php-blade-plugin.
Thanks, it is fixed now
For the moment I think I will add some logic related to all these blade directives for later.
I will be waiting for new releases 👍
from netbeans-php-blade-plugin.
@haidubogdan hi, is @append
bug back?
@append
is also a close tag for@section
but it is not supported,
i think also@show
,@stop
are closing tags for@section
too
for@section
@parent
directive is missing@section('modals') <!--contents--> @append
from netbeans-php-blade-plugin.
Hi,
sorry for the regression.
@append
is a bit elusive in the laravel documentation.
With this occasion I noticed that @can
and it's derivatives was not handled also, so I added a quick fix for them in the latest release,
Thank you :).
from netbeans-php-blade-plugin.
It's working again, thanks
from netbeans-php-blade-plugin.
Related Issues (20)
- Blade Sintax Error on CSS HOT 3
- `@hasSection`/`@sectionMissing` uses `@else`, and `@endif` as closing HOT 2
- First and Fourth argument of `@each` directive are a path HOT 4
- Blade directives break javascript highlighting after use them on comments HOT 2
- [BUG] Blade autocomplete break **CTRL + Z** when custom blade directives HOT 7
- [BUG] Netbeans freezes and stop working when i'm trying to write a class static inside a directive HOT 6
- [BUG] On blade comments HOT 2
- Code highlighting | Namespace import HOT 4
- Highlight error when string `:` on arguments HOT 6
- Highlight error on closing tags
- @json function is not working HOT 4
- @if formatting is not working HOT 8
- `unknown directive` on custom blade directives HOT 13
- `@endforeach` autocompletion not working HOT 1
- `Unclosed @if` when `@endif` exists HOT 1
- `mismatched input (` error on working blade HOT 1
- No highlight open tags `@canany`/`@endcanany` when selecting end tags HOT 1
- Custom `@end` prefix tag could have arguments, and if they start witn `end` stops highlight HOT 2
- `extraneous input <EOF>` in a correct blade file HOT 1
- `@include` path suggestions problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netbeans-php-blade-plugin.