Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@if and @section issues #1

Open
naquad opened this issue Mar 23, 2013 · 6 comments
Open

@if and @section issues #1

naquad opened this issue Mar 23, 2013 · 6 comments

Comments

@naquad
Copy link

naquad commented Mar 23, 2013

Using master, VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 26 2012 16:45:16)
Included patches: 1-54 I see that @if content is not treated as PHP code and @section, @parent and @yield are completely ignored. Tried different color schemes, but result is the same. See attachment.
laravel-blade-issue

@johnhamelink
Copy link
Owner

Hi @naquad,

I've been aware of this issue for a while (and I also suffer from this), but I've never gotten around to looking into it deeply. I'll have a go at fixing it for good tonight, or if you already have a fix feel free to submit a pull-request.

Cheers!
JH

@naquad
Copy link
Author

naquad commented Mar 25, 2013

I'm afraid I don't. I've tried to change region definition but no luck :(

2013/3/25 John Hamelink [email protected]

Hi @naquad https://github.com/naquad,

I've been aware of this issue for a while (and I also suffer from this),
but I've never gotten around to looking into it deeply. I'll have a go at
fixing it for good tonight, or if you already have a fix feel free to
submit a pull-request.

Cheers!
JH


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-15397770
.

@johnhamelink
Copy link
Owner

Indeed, same issue for me. I've also tried building a regex using the very magic flag "\v", but what constitutes as a match in vim's search mode doesn't seem to match up with the search functionality available for syntax definitions.

I'll have another attempt tonight regardless. Thanks for reminding me about this ^_^

JH

@johnhamelink
Copy link
Owner

So I've managed to fix the @if syntax, but I've had no luck with the custom keywords. You can see what I've done here: ec74aa8

@naquad
Copy link
Author

naquad commented Mar 26, 2013

yes, @if is fixed, but @parent, @yield and @section are not :( i'm reading
vim syntax manual, maybe will make up something

2013/3/26 John Hamelink [email protected]

So I've managed to fix the @if https://github.com/if syntax, but I've
had no luck with the custom keywords. You can see what I've done here:
ec74aa8ec74aa8


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-15461693
.

@johnhamelink
Copy link
Owner

Indeed. I had a play with the syntax keyword command, but it just doesn't seem match for some reason (I think it might have something to do with the @ sign).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants