From 46040f3ffd35c4a981ca1f3713934f55b58bb525 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 6 Sep 2020 23:37:24 +0200 Subject: Add heuristics for .h extension --- heuristics.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'heuristics.yaml') diff --git a/heuristics.yaml b/heuristics.yaml index 8c0c1663..901241cb 100644 --- a/heuristics.yaml +++ b/heuristics.yaml @@ -23,6 +23,20 @@ rules: filetype: aspperl - filetype: aspvbs --- +extensions: [h] +rules: +- lines: 200 + pattern: '^\s*(@(interface|class|protocol|property|end|synchronised|selector|implementation)\b|#import\s+.+\.h[">])' + rules: + - if_exists: "g:c_syntax_for_h" + filetype: objc + - filetype: objcpp +- if_exists: "g:c_syntax_for_h" + filetype: c +- if_exists: "g:ch_syntax_for_h" + filetype: ch +- filetype: cpp +--- extensions: [m] rules: - lines: 100 -- cgit v1.2.3