greplytix / Hamlbars

Sublime Text 3 Syntax highlighting for .hamlbars files which is a combination of both Haml and Handlebars
MIT License
2 stars 0 forks source link

Implement Two Concurrent Threads #20

Closed ghost closed 9 years ago

ghost commented 9 years ago

Implement two concurrent threads in Sublime Text 3 after the completion of #19, using that issue's code as a base.

ghost commented 9 years ago

It appears that only one syntax file can be used at a time in checking the Sublime Text 3 API. See the following function and its description:

set_syntax_file(syntax_file)

Changes the syntax used by the view. syntax_file should be a name along the lines of Packages/Python/Python.tmLanguage. To retrieve the current syntax, use view.settings().get('syntax').

It seems that the better approach, perhaps best approach, would be to combine Haml and Handlebars plist regex into a single syntax definition we'll call Hamlbars.

My apologies -- I've adjusted issues and issue assignments accordingly.