summaryrefslogtreecommitdiffstats
path: root/syntax/bzl.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-16 15:50:39 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-16 15:50:39 +0200
commit17c2b630e1f0f0f02a24fcc664f0df91122e8e00 (patch)
tree09a54c87c97be6d400291b79b89368fab37ce234 /syntax/bzl.vim
parent271679272c7bb1a281c7404408a2414068abf91c (diff)
downloadvim-polyglot-17c2b630e1f0f0f02a24fcc664f0df91122e8e00.tar.gz
vim-polyglot-17c2b630e1f0f0f02a24fcc664f0df91122e8e00.zip
Write heuristics for perl, closes #550v4.10.2
Diffstat (limited to 'syntax/bzl.vim')
-rw-r--r--syntax/bzl.vim20
1 files changed, 20 insertions, 0 deletions
diff --git a/syntax/bzl.vim b/syntax/bzl.vim
new file mode 100644
index 00000000..9c0c5781
--- /dev/null
+++ b/syntax/bzl.vim
@@ -0,0 +1,20 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'bzl') == -1
+
+" Vim syntax file
+" Language: Bazel (http://bazel.io)
+" Maintainer: David Barnett (https://github.com/google/vim-ft-bzl)
+" Last Change: 2015 Aug 11
+
+if exists('b:current_syntax')
+ finish
+endif
+
+
+runtime! syntax/python.vim
+
+let b:current_syntax = 'bzl'
+
+syn region bzlRule start='^\w\+($' end='^)\n*' transparent fold
+syn region bzlList start='\[' end='\]' transparent fold
+
+endif