Skip to content

Commit

Permalink
Merge pull request #1160 from forkeith/html_style_reindentation
Browse files Browse the repository at this point in the history
[HTML] fix reindentation of style tag
  • Loading branch information
wbond authored Sep 19, 2017
2 parents bcf171c + 6bacb8a commit 577ad28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions HTML/HTML.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ contexts:
2: entity.name.tag.style.html
3: punctuation.definition.tag.end.html
pop: true
- match: '>'
scope: meta.tag.style.begin.html punctuation.definition.tag.end.html
- match: '(>)\s*'
captures:
1: meta.tag.style.begin.html punctuation.definition.tag.end.html
push:
- meta_content_scope: source.css.embedded.html
- include: 'scope:source.css'
Expand Down
3 changes: 2 additions & 1 deletion HTML/syntax_test_html.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@
<style type="text/css">
## ^^^^^^^^^^^^^^^^^^^^ meta.tag.style.begin.html
## ^ entity.name.tag.style.html
## ^^^^^^^^^^^^^^^^^^^^ - source.css.embedded.html
## ^^^^^^^^^^^^^^^^^^^^^ - source.css.embedded.html
## ^ entity.other.attribute-name
## ^ - meta.tag
h2 {
## <- entity.name.tag.css
## <- source.css.embedded.html
font-family: "Arial";
## ^ string.quoted.double.css
}
Expand Down

0 comments on commit 577ad28

Please sign in to comment.