Skip to content

Commit

Permalink
added script type text/x-template as html content type
Browse files Browse the repository at this point in the history
  • Loading branch information
kristjanstrojan committed Dec 7, 2017
1 parent 78d4939 commit c686559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -4255,7 +4255,7 @@ another auto-completion with different ac-sources (e.g. ac-php)")
(setq element-content-type "jsx"))
((string-match-p " type[ ]*=[ ]*[\"']text/\\(markdown\\|template\\)" script)
(setq element-content-type "markdown"))
((string-match-p " type[ ]*=[ ]*[\"']text/\\(x-handlebars\\|x-jquery-tmpl\\|x-jsrender\\|html\\|ng-template\\|template\\|mustache\\|x-dust-template\\)" script)
((string-match-p " type[ ]*=[ ]*[\"']text/\\(x-handlebars\\|x-jquery-tmpl\\|x-jsrender\\|html\\|ng-template\\|template\\|mustache\\|x-dust-template\\|x-template\\)" script)
(setq element-content-type "html"
part-close-tag nil))
((string-match-p " type[ ]*=[ ]*[\"']application/\\(ld\\+json\\|json\\)" script)
Expand Down

0 comments on commit c686559

Please sign in to comment.