diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-06 23:37:24 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-06 23:37:24 +0200 |
commit | 46040f3ffd35c4a981ca1f3713934f55b58bb525 (patch) | |
tree | a562dbf2edce5657e648f6c6a69856ea30985d27 /heuristics.yaml | |
parent | 48254ec7adc9cbbc2ff15c606faf062d23d7f200 (diff) | |
download | vim-polyglot-46040f3ffd35c4a981ca1f3713934f55b58bb525.tar.gz vim-polyglot-46040f3ffd35c4a981ca1f3713934f55b58bb525.zip |
Add heuristics for .h extension
Diffstat (limited to 'heuristics.yaml')
-rw-r--r-- | heuristics.yaml | 14 |
1 files changed, 14 insertions, 0 deletions
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 |