SublimeText / PackageDev

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

[feature request] highlight relevant capture group #92

Closed keith-hall closed 7 years ago

keith-hall commented 7 years ago

when writing syntax definitions, one quite often uses multiple capture groups. It can get quite tricky to find/remember where each group starts and which number it is. I therefore propose that we add functionality similiar to how the syntax test highlighting helper works, and when the caret is on a captures: n: line in a sublime-syntax file, that the relevant group be highlighted in the corresponding match: line

  - match: ((a)?(b)cde(fgh))(ij)
    captures:
      1: where is capture group 1 again?
FichteFoll commented 7 years ago

Implemented in #102.