summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgorgianitis Loukas <agorg_louk@icloud.com>2022-01-01 19:33:32 +0200
committerGitHub <noreply@github.com>2022-01-01 18:33:32 +0100
commitf621f6c1eeadf73780ff7a7929a025a25a66702a (patch)
tree7f68db2ee278527ede47fade7ab87cdeaed376a1
parentcb80947143fe342797bcf571b6190c86b3c07700 (diff)
downloadvim-polyglot-f621f6c1eeadf73780ff7a7929a025a25a66702a.tar.gz
vim-polyglot-f621f6c1eeadf73780ff7a7929a025a25a66702a.zip
Add heuristic for fragment shader files (#737)
Another step towards solving #570
-rw-r--r--heuristics.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/heuristics.yaml b/heuristics.yaml
index fd7fbe94..e9d81154 100644
--- a/heuristics.yaml
+++ b/heuristics.yaml
@@ -77,6 +77,13 @@ rules:
- override: true
- filetype: forth
---
+extensions: [frag]
+rules:
+- lines: 50
+ rules:
+ - pattern: '\s*(#version|precision|uniform|varying|vec[234])'
+ filetype: glsl
+---
extensions: [re]
rules:
- lines: 50