From 7e2d060f880a2d1d8e4742e27709869425983335 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 23 Sep 2020 23:25:01 +0200 Subject: Fix detecting jinja templates, #553 --- heuristics.yaml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'heuristics.yaml') diff --git a/heuristics.yaml b/heuristics.yaml index 35350a69..7cc6a273 100644 --- a/heuristics.yaml +++ b/heuristics.yaml @@ -180,5 +180,8 @@ rules: - lines: 1 pattern: '^(%|<[%&].*>)' filetype: mason +- lines: 50 + pattern: '{{.*}}|{%-?\s*(end.*|extends|block|macro|set|if|for|include|trans)\b' + filetype: jinja.html - filetype: html -- cgit v1.2.3