Indentation Rules.tmPreferences (1633B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <plist version="1.0"> 3 <dict> 4 <key>scope</key> 5 <string>text.html</string> 6 <key>settings</key> 7 <dict> 8 <key>decreaseIndentPattern</key> 9 <string><![CDATA[(?x) 10 # the beginning of the line followed by any amount of whitespace 11 # a valid HTML close tag except "html" 12 ^[^<>]*+ </ (?!html[\t\n\f /<>])[^\t\n\f /<>]+ [^>]* > 13 | ^[\t\n\f ]*+ 14 ( 15 # closing comment punctuation, optionally preceded by an end "comment selector" 16 (<!\[ .*? \])?--> 17 # closing directive/section punctuation 18 | [?%]> 19 # closing curly brace 20 | \} 21 ) 22 ]]></string> 23 <key>increaseIndentPattern</key> 24 <string><![CDATA[(?x) 25 # the beginning of the line followed by any amount of whitespace 26 ^.* ( 27 # a valid non-self-closing HTML tag that doesn't close itself on the same line 28 <(?! 29 !-- # no comment 30 | [?%] # no section 31 | (?i:area|base|br|col|frame|hr|html|img|input|link|meta|param)[\t\n\f /<>] 32 )(?: 33 # tag name 34 (?<html_tag>[^\t\n\f /<>]+) 35 # not self closing 36 (?:(?!/>)[^>])* > 37 # not closing in the same line 38 (?! .* </\k<html_tag>) 39 ) 40 # comments that don't close themselves on the same line 41 | <!--(?!.*?-->) 42 # directives that don't close themselves on the same line 43 | <\?(?!.*?\?>) 44 # sections that don't close themselves on the same line 45 | <\%(?!.*?\%>) 46 # open curly braces that don't have close braces or string punctuation after them 47 | \{(?![}"']) 48 ) 49 ]]></string> 50 <key>bracketIndentNextLinePattern</key> 51 <string><![CDATA[<!DOCTYPE(?!.*>)]]></string> 52 </dict> 53 </dict> 54 </plist>