SublimeText / PackageDev

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

set syntax when a syntax test file is loaded #91

Closed keith-hall closed 7 years ago

keith-hall commented 7 years ago

useful for when the syntax def doesn't have any file extensions associated with it, or when the test can't use the proper file extension

FichteFoll commented 7 years ago

It might be a good idea to start with returning a namedtuple now. That has implicit documentation attached. ;)

Then you could use named group matches and pass match.groupdict() as kwargs to the namedtuple constructor.