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

Highlighting breaks on latest Sublime 3 #76

Closed
heitorsilva opened this issue Jun 6, 2015 · 26 comments
Closed

Highlighting breaks on latest Sublime 3 #76

heitorsilva opened this issue Jun 6, 2015 · 26 comments

Comments

@heitorsilva
Copy link

Today, I was going to work and my Blade Highlighting broke after getting version 3092 of Sublime Text 3. My color scheme is called IR_Black.

Why is this is happening?

@Medalink
Copy link
Owner

Medalink commented Jun 6, 2015

That is a development build that changes syntax highlighting. I am still testing and working out fixes for it. For now you can download the latest stable 3083 and it works just fine.

@heitorsilva
Copy link
Author

Thanks for the feedback!

I'll leave this issue open, and feel free to close it when you get to the fix.

@Medalink
Copy link
Owner

@heitorsilva Can you provide more details on exactly what is breaking with the blade highlighter?

@anlutro
Copy link
Contributor

anlutro commented Jun 16, 2015

The problem seems to be that the highlighter starts off in the context of blade syntax as opposed to defaulting to HTML.

@heitorsilva
Copy link
Author

@Medalink, this is how it is right now:
image

and this is how it was before:
image

@heitorsilva
Copy link
Author

Sublime was updated to 3093 today, and laravel-blade is still broken for me...

@jbrooksuk
Copy link
Contributor

Grammars should now be looking to use the new .sublime-syntax format.

@danwall
Copy link

danwall commented Jul 4, 2015

I believe the main cause for this is that the php scope changed from source.php to embedding.php.

A bunch of packages have had issues with this lately.

https://github.com/equinusocio/material-theme/blob/master/prefs/icon_php.tmPreferences

@Medalink
Copy link
Owner

Medalink commented Jul 7, 2015

Alright I just pushed 711179b, this is a complete re-write with the new .sublime-syntax. Please test and leave feedback. Uninstall the package control version and use the manual install for now until we hit the stable release.

@Medalink
Copy link
Owner

Medalink commented Jul 7, 2015

Also note that colors changed qutie a bit. I need feedback here on how it's working with your theme. Thanks!

@anlutro
Copy link
Contributor

anlutro commented Jul 7, 2015

Nice! Using a slightly customized Twilight scheme, blade controls seems to blend in a bit too much with the colour of HTML tags. http://i.imgur.com/etoSLPP.png I think it's because both are "entity.name.tag".

@Medalink
Copy link
Owner

Medalink commented Jul 7, 2015

@anlutro yeah they may blend a little much. I am trying out a few themes like Material and it matches well here: http://i.imgur.com/j14VzJ2.jpg?1 The @ symbol is supposed to be a different color than the compiler name but some themes do not highlight some of the meta tags.

@heitorsilva
Copy link
Author

It's a little bit different from past version, but it's looking great now:

image

I'm using Sublime Text 3 (3094).

Thanks @Medalink

@anlutro
Copy link
Contributor

anlutro commented Jul 8, 2015

I see that most of the themes do make @section etc stand out a bit more, so if nothing gets done I can just change my customized theme.

That being said, I think keyword.control.php.blade or something similar is a more fitting scope for things like @foreach - it's more consistent with PHP's syntax definition.

@jbrooksuk
Copy link
Contributor

Can you tag this so that Package Control upgrades?

@Medalink
Copy link
Owner

Medalink commented Jul 8, 2015

@jbrooksuk I will shortly. I want to make sure in the re-write I did not miss anything and it works correctly.

@jbrooksuk
Copy link
Contributor

#79 then ;)

@Medalink
Copy link
Owner

Medalink commented Jul 8, 2015

@jbrooksuk I went ahead and pushed the pre-release to the ST3 dev builds only. I will check out the other issue, thanks.

@bcalik
Copy link

bcalik commented Dec 31, 2015

I'm on build 3095 and there are weird situations with JS code.
blade else breaks the rest of javascript.

screen shot 2015-12-31 at 12 38 40

screen shot 2015-12-31 at 12 38 56

@rafal-netblink
Copy link

Hi,
I'm on build 3103 with Laravel Highlighter v1.5.6 and it works great a lot of the time, but there seems to be a problem when custom blade tags meet with Blade brackets in one line.

laravel

Any chance you can do something about it?

@carlosvini
Copy link

I have the same problem as rafal-netblink, but it doesn't seem to matter if there is a bracket. Looks like custom blade tags like

@active
@whathever

are closing or opening some HTML syntax

@jbrooksuk
Copy link
Contributor

I made a new version; https://github.com/jbrooksuk/Sublime-Blade

@rafal-netblink
Copy link

Works great, thanks James!

It seems Sublime doesn't know about the new package yet, so for those who install directly from a repository for the first time, like me - go to Command Palette (ctrl+shift+p on Windows) and find "Package Controll -> Add Repository". Enter the URL James posted and then install the package as you normally would.

@Medalink
Copy link
Owner

@jbrooksuk why don't you join this project as a maintainer instead of forking into another one? It's true that right now I do not have time to fully maintain the project so I am just accepting PR's but I could sure use the help to get the base plugin updated. We can work together as a community to drive this project forward.

@jbrooksuk
Copy link
Contributor

Sure. Give me access and I'll contribute back. You were moving too slowly for me to warrant making pull requests, that's not your fault of course :)

@zaynali53
Copy link
Contributor

This issue has been resolved.

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

9 participants