SublimeText / PackageDev

Tools to ease the creation of snippets, syntax definitions, etc. for Sublime Text.
MIT License
436 stars 83 forks source link

Scoping on .YAML-tmLanguage vs .sublime-syntax #162

Closed runxel closed 7 years ago

runxel commented 7 years ago

Scoping doesn't work when one uses the YAML structure of the .sublime-syntax files, as in use since ST build 3084.

FichteFoll commented 7 years ago

I don't understand this issue.

What are you doing, what is happening and what do you expect? Include screenshots if they help to convey your point.

runxel commented 7 years ago

I'm sorry I wasn't clear enough here. The attached screenshot will give you the full misery. The left is a .YAML-tm-language file, which looks great. The right is a .sublime-syntax file, which doesn't. Both have the syntax set to "Sublime Text Syntax Def (YAML)".

highlight

FichteFoll commented 7 years ago

You should use "Sublime Text Syntax Definition (YAML)" for the right side.

In fact, it appears you are using an outdated version of PackageDev since the "Sublime Text Syntax Def (YAML)" definition has been renamed to "TextMate Syntax Definition (YAML)".

runxel commented 7 years ago

Oh my bad! You're right...
I was in fact using a very old version.
How's that? Any idea why a package wouldn't update?

FichteFoll commented 7 years ago

The most likely reason would be either installing manually or having automatic updates disabled. You should check your PC settings file.

You can force-upgrade packages with "Package Control: Upgrade Package".

runxel commented 7 years ago

Interestingly neither is the case here...
That's why I never checked on which version I actually am – for me it was out of realm of possibility.