Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I add a small piece of code to support
*_by_lua_block
in st3.Not supported in st2
Forgive me that I don't want to waste time modifying tmLanguage version to implement the same feature because I am not familiar with it and st2 is not recommended.
Further more, I doubt whether tmLanguage supports embedded language because sublime_syntax is superset of tmLanguage and sublime_syntax supports more features.
Limit to lua code
Only lua block is supported because inline lua code is discouraged.
Beside, Lua code block is ended by an alone
}
in a new line so lua table's}
must not be placed that way. I can not mange to solve this and maybe it can not solved because inline javascript in html has the same problem:</script>
in string or comment will break the javascript code and return to html.If there is a way to fix this, don't forget to notify me.
Thank you.