From e0c9c4ef20a47bbc9fc4a223d0d758e85c97f094 Mon Sep 17 00:00:00 2001 From: Ihor Oleksandrov Date: Sun, 9 Aug 2020 02:59:56 +0300 Subject: [PATCH] Change the scope and assign to `*.component.html` by default (#21) * Apply the syntax to `*.component.html` files by default * Change the scope to differentiate from default HTML syntax * Update NgxHTML.sublime-syntax Co-authored-by: Po Chen --- NgxHTML.sublime-syntax | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/NgxHTML.sublime-syntax b/NgxHTML.sublime-syntax index 097d85a..74a6e9d 100644 --- a/NgxHTML.sublime-syntax +++ b/NgxHTML.sublime-syntax @@ -2,15 +2,8 @@ --- name: Ngx HTML file_extensions: - - html - - htm - - shtml - - xhtml - - inc - - tmpl - - tpl -first_line_match: (?i)<(!DOCTYPE\s*)?html -scope: text.html.basic + - component.html +scope: text.html.ngx variables: unquoted_attribute_value: (?:[^\s<>/''"]|/(?!>))+