From 7771ae0a1e42bc26eb10a43f0a7e9740db9e9efb Mon Sep 17 00:00:00 2001 From: Charles Weng Date: Sun, 27 Dec 2015 04:11:44 +0800 Subject: [PATCH 1/2] fix: text/template cannot be recognized properly --- HTML-extended.tmLanguage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HTML-extended.tmLanguage b/HTML-extended.tmLanguage index 2d26507..3762456 100644 --- a/HTML-extended.tmLanguage +++ b/HTML-extended.tmLanguage @@ -305,7 +305,7 @@ begin - (?:^\s+)?(<)((?i:script))\b(?![^>]*/>)(?!.*type=["']text/(?:temp‌​late|html)['"]) + (?:^\s+)?(<)((?i:script))\b(?![^>]*/>)(?!.*type=["']text/(?:template|html)['"]) beginCaptures 1 @@ -1072,4 +1072,4 @@ uuid 17994EC8-6B1D-11D9-AC3A-000D93589AF6 - \ No newline at end of file + From bc9e35bb8db202abc7b597b46023f5177d652d05 Mon Sep 17 00:00:00 2001 From: Charles Weng Date: Sun, 27 Dec 2015 04:12:31 +0800 Subject: [PATCH 2/2] Add support for angular template type (ng-template) --- HTML-extended.tmLanguage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HTML-extended.tmLanguage b/HTML-extended.tmLanguage index 3762456..3a151ab 100644 --- a/HTML-extended.tmLanguage +++ b/HTML-extended.tmLanguage @@ -305,7 +305,7 @@ begin - (?:^\s+)?(<)((?i:script))\b(?![^>]*/>)(?!.*type=["']text/(?:template|html)['"]) + (?:^\s+)?(<)((?i:script))\b(?![^>]*/>)(?!.*type=["']text/(?:template|ng-template|html)['"]) beginCaptures 1