Improve html heuristics

This commit is contained in:
Adam Stankiewicz
2020-09-24 09:24:13 +02:00
parent c284af58fa
commit 6b4da27538
4 changed files with 21 additions and 9 deletions

View File

@@ -181,7 +181,10 @@ rules:
pattern: '^(%|<[%&].*>)'
filetype: mason
- lines: 50
pattern: '{{.*}}|{%-?\s*(end.*|extends|block|macro|set|if|for|include|trans)\b'
filetype: jinja.html
rules:
- pattern: '{{.*}}|{%-?\s*(end.*|extends|block|macro|set|if|for|include|trans)\b|{#\s+'
filetype: jinja.html
- pattern: '\bDTD\s+XHTML\s'
filetype: xhtml
- filetype: html
fallback: true