danderson / templ-ts-mode

Emacs major mode for editing Templ files
GNU General Public License v3.0
13 stars 2 forks source link

Assign subparsers to inline <style> and <script> elements #2

Open danderson opened 10 months ago

danderson commented 10 months ago

You can use <style> and <script> elements in a templ, and those just embed bog standard CSS and Javascript respectively. templ-ts-mode should assign sub-parsers to those sections, and set up the appropriate font locking and indent rules.