summaryrefslogtreecommitdiffstats
path: root/syntax/hog.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/hog.vim')
-rw-r--r--syntax/hog.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/hog.vim b/syntax/hog.vim
index 68b0b91f..96540cfa 100644
--- a/syntax/hog.vim
+++ b/syntax/hog.vim
@@ -1,11 +1,6 @@
-let s:base = expand("<sfile>:h:h")
-let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
-let files = filter(globpath(&rtp, 'syntax/hog.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('hog', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hog') == -1
" Vim syntax file
" Language: hog (Snort.conf + .rules)
@@ -215,5 +210,3 @@ hi link HogFileTypeOpt HogRuleOption
hi link NotASemiColn HogRuleChars
let b:current_syntax = "hog"
-
-endif