Skip to content

v1.0.0

Choose a tag to compare

@wfurphy wfurphy released this 08 Mar 04:23
c72071f

Changed

  • Treat [[[ ... ]]] templates as embedded JavaScript language regions in YAML injections (including token type mapping for non-string tokenisation).
  • Expand inline YAML injection selectors to cover additional scopes.
  • Broaden bracket delimiter matching to support [[[ and longer opening/closing sequences used by newer button-card nested templates.
  • Use full JavaScript grammar for block injections to improve multiline parsing behaviour.

🙋‍♂️ Single line "[[[ ... ]]]" templates need to be terminated with a closing semicolon (;) or else they can break the syntax highlighting in some cases.

Fixed

  • #3 Fix inconsistent syntax highlighting and insufficient tokenisation of JavaScript code inside [[[ ... ]]] blocks. Full language support now provides proper syntax highlighting, commenting, and tokenisation for JavaScript code in all contexts.

Development

  • Add automated tests that verify embedded language and token type manifest configuration.