diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-16 15:50:39 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-16 15:50:39 +0200 |
commit | 17c2b630e1f0f0f02a24fcc664f0df91122e8e00 (patch) | |
tree | 09a54c87c97be6d400291b79b89368fab37ce234 /syntax/bzl.vim | |
parent | 271679272c7bb1a281c7404408a2414068abf91c (diff) | |
download | vim-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.vim | 20 |
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 |