diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-01 08:33:15 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-01 08:33:15 +0200 |
commit | e166f741ef054ea990aa6d1af85b97ceb82171bb (patch) | |
tree | 275e4f7660eaa181cc3e40f71ce72ba8864e6c71 /heuristics.yaml | |
parent | d4fcef1aa835f20f4f9df41eceb406b66f446f70 (diff) | |
download | vim-polyglot-e166f741ef054ea990aa6d1af85b97ceb82171bb.tar.gz vim-polyglot-e166f741ef054ea990aa6d1af85b97ceb82171bb.zip |
Some major updates including heuristicsv4.6.0
- Allow to define heuristics in heuristics.yaml
- Migrate all filetypes from vim beginning with "a"
- Remove enhanced cpp syntax (it was too slow to load)
- Use setf instead of set ft for setting filetype (faster)
- Override native hauristics with au!
- Add globbing of files for packages
- Replace predefined dirs with extra_dirs and ignored_dirs
- Allow to define proper order of packages with topological sort
- Fix powershell detection
- Lint and fix many packages.yaml issues
- etc etd
Diffstat (limited to 'heuristics.yaml')
-rw-r--r-- | heuristics.yaml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/heuristics.yaml b/heuristics.yaml new file mode 100644 index 00000000..28dff4ce --- /dev/null +++ b/heuristics.yaml @@ -0,0 +1,57 @@ +--- +extensions: [inp] +rules: +- lines: 1 + pattern: '^\*' + filetype: abaqus +- lines: 500 + pattern: '^header surface data' + ignore_case: true + filetype: trasys +--- +extensions: [asa] +rules: +- override: "g:filetype_asa" +- filetype: aspvbs +--- +extensions: [asp] +rules: +- override: "g:filetype_asp" +- lines: 3 + pattern: 'perlscript' + ignore_case: true + filetype: aspperl +- filetype: aspvbs +--- +extensions: [m] +rules: +- lines: 100 + rules: + - pattern: '^\s*/\*' + set: 'saw_comment' + - pattern: '^\s*(@(interface|class|protocol|property|end|synchronised|selector|implementation)\b|#import\s+.+\.h[">])' + filetype: objc + - pattern: '^\s*%' + filetype: octave + - pattern: '^\s*\(\*' + filetype: mma + - pattern: '^\s*((type|var)\b|--)' + ignore_case: true + filetype: murphi +- if_set: "saw_comment" + filetype: objc +- override: "g:filetype_m" +- filetype: octave +--- +extensions: [fs] +rules: +- lines: 50 + rules: + - pattern: '^(: |new-device)' + filetype: forth + - pattern: '^\s*(#light|import|let|module|namespace|open|type)' + filetype: fsharp + - pattern: '\s*(#version|precision|uniform|varying|vec[234])' + filetype: glsl +- override: "g:filetype_fs" +- filetype: forth |