SublimeText / PackageDev

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

Incorrect syntax highlighting for sublime-theme #274

Closed absop closed 4 years ago

absop commented 4 years ago

When I open the source file of the Material-theme-lighter theme, large part of the view was highlighted in RED means illegal syntax. But the there works well.

FichteFoll commented 4 years ago

Please include the or a minimal sample file for reproduction and a screenshot.

FichteFoll commented 4 years ago

Okay, I found out where it breaks. "layer0.texture": [255, 255, 255, 255],

According to the docs, texture keys only accept string paths to PNG files, so this is actually an error in the theme. I may try to have it fail in a more forgiving way, but I may also consider it not worth it.

https://www.sublimetext.com/docs/3/themes.html