summaryrefslogtreecommitdiffstats
path: root/heuristics.yaml
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-01 23:02:36 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-01 23:02:36 +0200
commitf2ef4cedecf554c0c9f0694f93df1d53a57bf70c (patch)
treeee95ac48f56aee9607aa3c92fe478cf63f9c26b7 /heuristics.yaml
parent45c1923f43f2bb2e626fe910654d4395a0e50a04 (diff)
downloadvim-polyglot-f2ef4cedecf554c0c9f0694f93df1d53a57bf70c.tar.gz
vim-polyglot-f2ef4cedecf554c0c9f0694f93df1d53a57bf70c.zip
Fix reason filetype detection, closes #532v4.7.1
Diffstat (limited to 'heuristics.yaml')
-rw-r--r--heuristics.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/heuristics.yaml b/heuristics.yaml
index 28dff4ce..97999022 100644
--- a/heuristics.yaml
+++ b/heuristics.yaml
@@ -55,3 +55,11 @@ rules:
filetype: glsl
- override: "g:filetype_fs"
- filetype: forth
+---
+extensions: [re]
+rules:
+- lines: 50
+ rules:
+ - pattern: '^\s*#(?:(?:if|ifdef|define|pragma)\s+\w|\s*include\s+[<"]|template\s*<)'
+ filetype: cpp
+ - filetype: reason