From 4e95df7c7e12cb76e781f2dacf1c07f8984cce58 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 4 Nov 2019 09:04:28 +0100 Subject: Update --- ftplugin/meson.vim | 1 + ftplugin/ocaml.vim | 6 +++--- ftplugin/tsx.vim | 15 --------------- ftplugin/typescriptreact.vim | 15 +++++++++++++++ 4 files changed, 19 insertions(+), 18 deletions(-) delete mode 100644 ftplugin/tsx.vim create mode 100644 ftplugin/typescriptreact.vim (limited to 'ftplugin') diff --git a/ftplugin/meson.vim b/ftplugin/meson.vim index e401158d..a187d100 100644 --- a/ftplugin/meson.vim +++ b/ftplugin/meson.vim @@ -2,6 +2,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'meson') == -1 " Vim filetype plugin file " Language: meson +" License: VIM License " Original Author: Laurent Pinchart " Last Change: 2018 Nov 27 diff --git a/ftplugin/ocaml.vim b/ftplugin/ocaml.vim index 7e84445c..31694cfe 100644 --- a/ftplugin/ocaml.vim +++ b/ftplugin/ocaml.vim @@ -393,9 +393,9 @@ endfunction endif endfun - " This variable contain a dictionnary of list. Each element of the dictionnary - " represent an annotation system. An annotation system is a list with : - " - annotation file name as it's key + " This variable contains a dictionary of lists. Each element of the dictionary + " represents an annotation system. An annotation system is a list with: + " - annotation file name as its key " - annotation file path as first element of the contained list " - build path as second element of the contained list " - annot_file_last_mod (contain the date of .annot file) as third element diff --git a/ftplugin/tsx.vim b/ftplugin/tsx.vim deleted file mode 100644 index 8a6bb9b5..00000000 --- a/ftplugin/tsx.vim +++ /dev/null @@ -1,15 +0,0 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 - -" modified from mxw/vim-jsx from html.vim -if exists("loaded_matchit") && !exists('b:tsx_match_words') - let b:match_ignorecase = 0 - let b:tsx_match_words = '(:),\[:\],{:},<:>,' . - \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(/\@\|$\):<\@<=/\1>' - let b:match_words = exists('b:match_words') - \ ? b:match_words . ',' . b:tsx_match_words - \ : b:tsx_match_words -endif - -set suffixesadd+=.tsx - -endif diff --git a/ftplugin/typescriptreact.vim b/ftplugin/typescriptreact.vim new file mode 100644 index 00000000..8a6bb9b5 --- /dev/null +++ b/ftplugin/typescriptreact.vim @@ -0,0 +1,15 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 + +" modified from mxw/vim-jsx from html.vim +if exists("loaded_matchit") && !exists('b:tsx_match_words') + let b:match_ignorecase = 0 + let b:tsx_match_words = '(:),\[:\],{:},<:>,' . + \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(/\@\|$\):<\@<=/\1>' + let b:match_words = exists('b:match_words') + \ ? b:match_words . ',' . b:tsx_match_words + \ : b:tsx_match_words +endif + +set suffixesadd+=.tsx + +endif -- cgit v1.2.3