-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HTML] Tweak embedded script/style code boundaries and comment indent…
…ation (#4020) * [HTML] Tweak embedded script/style code boundaries This commit... 1. consumes a) any trailing whitespace until end of line after opening script/style tags or optionally following `<!--` punctuation. b) any leading whitespace in front of closing script/style tags or optionally preceded `-->` punctuation. to not apply embedded syntax's scope after standalone opening or in front of standalone closing tags. This change makes sure to ... a) always apply HTML specific indentation rules to enclosing script/style tags or comment punctuation. b) apply custom background highlighting of embedded syntaxes only on full lines, but not after or in front of standalone tags. 2. modifies indentation rules for HTML comments to remove indentation of comments' content. * [HTML] Adjust ASP/Rails syntax tests
- Loading branch information
Showing
7 changed files
with
115 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>scope</key> | ||
<string>text.html comment.block.html</string> | ||
<key>settings</key> | ||
<dict> | ||
<!-- ignore anything until standalone closing comment punctuation --> | ||
<key>unIndentedLinePattern</key> | ||
<string>^(?!\s*-->)</string> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters