SublimeText / PackageDev

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

Syntax: Restrict AssignSyntaxTestSyntaxListener #366

Closed deathaxe closed 2 years ago

deathaxe commented 2 years ago

Fixes #365

This commit restricts execution of on_load() to syntax_test_ files located within ST's packages path.

Note: Hard coded path separators such as / don't work on Windows and therefore must not be used.

FichteFoll commented 2 years ago

Thanks for the fix. However, I addressed it in 3aae6fdcb76009e95ed73f65f82017fbb01d13d3 using pathlib instead.