martomo / SublimeTextXdebug

Xdebug debugger client for Sublime Text
MIT License
564 stars 89 forks source link

Use custom region scopes for gutter items #131

Closed michaelhogg closed 6 years ago

michaelhogg commented 9 years ago

The Xdebug.tmLanguage file defines these scopes:

xdebug.output.context.object
xdebug.output.context.property
xdebug.output.context.unknown
xdebug.output.context.trimmed
xdebug.output.stack.entry
xdebug.output.stack.exception
xdebug.output.breakpoint.file
xdebug.output.breakpoint.line
xdebug.output.watch.entry

These are useful for applying syntax highlighting to the Xdebug output.

Similarly, it'd be useful to have custom scopes for the items in the gutter, so that custom highlighting can be applied to them.

martomo commented 6 years ago

Thanks for pointing this out, I did some checking and it seems that the xdebug.output.* scope name is actually invalid/incorrect. Instead I should have been using meta.xdebug.*, I have updated the scope names for syntax definitions and gutter icons according to the recommendations in the next release.

As for your proposed changes, I deliberately used string/comment, considering most themes (should) have gutter colors defined for these scopes. Whereas themes would most likely not have gutter colors defined for xdebug.gutter.