diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2021-06-09 14:23:57 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2021-06-09 14:23:57 +0200 |
commit | f05dea8dd765b0ce5b6c6ea92b049a5ae7547180 (patch) | |
tree | fa6b1381d5eb99e24d177e4ffd73697bb944e8f1 /heuristics.yaml | |
parent | e3ad29ce799fd94e7e3e5617443761c1e24b37de (diff) | |
download | vim-polyglot-f05dea8dd765b0ce5b6c6ea92b049a5ae7547180.tar.gz vim-polyglot-f05dea8dd765b0ce5b6c6ea92b049a5ae7547180.zip |
Disable languages also from heuristics, fixes #673
Diffstat (limited to 'heuristics.yaml')
-rw-r--r-- | heuristics.yaml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/heuristics.yaml b/heuristics.yaml index 23f63bb4..fd7fbe94 100644 --- a/heuristics.yaml +++ b/heuristics.yaml @@ -28,12 +28,12 @@ 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" + - if: "exists('g:c_syntax_for_h')" filetype: objc - filetype: objcpp -- if_exists: "g:c_syntax_for_h" +- if: "exists('g:c_syntax_for_h')" filetype: c -- if_exists: "g:ch_syntax_for_h" +- if: "exists('g:ch_syntax_for_h')" filetype: ch - filetype: cpp --- @@ -46,16 +46,23 @@ rules: - pattern: '^\s*(@(interface|class|protocol|property|end|synchronised|selector|implementation)\b|#import\s+.+\.h[">])' filetype: objc - pattern: '^\s*%' + if: "!has_key(g:polyglot_is_disabled, 'octave')" filetype: octave + - pattern: '^\s*%' + if: "has_key(g:polyglot_is_disabled, 'octave')" + filetype: matlab - pattern: '^\s*\(\*' filetype: mma - pattern: '^\s*((type|var)\b|--)' ignore_case: true filetype: murphi -- if_set: "saw_comment" +- if: "saw_comment" filetype: objc - override: true - filetype: octave + if: "!has_key(g:polyglot_is_disabled, 'octave')" +- filetype: matlab + if: "has_key(g:polyglot_is_disabled, 'octave')" --- extensions: [fs] rules: |