diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-12 14:33:21 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-12 15:08:44 +0200 |
commit | 4f3df59be709bf0d5c5c67dc804fde49abdc2700 (patch) | |
tree | 71b86b1d2c678dd2bb8411c61f83fd1cd3ec691d /autoload/vital | |
parent | 26790941f6d4ceedbf6324eb3712949eb614908f (diff) | |
download | vim-polyglot-4.0.3.tar.gz vim-polyglot-4.0.3.zip |
Improve guard so it works for no eof new linev4.0.3
Diffstat (limited to 'autoload/vital')
-rw-r--r-- | autoload/vital/_crystal.vim | 2 | ||||
-rw-r--r-- | autoload/vital/_crystal/ColorEcho.vim | 2 | ||||
-rw-r--r-- | autoload/vital/_crystal/Data/List.vim | 2 | ||||
-rw-r--r-- | autoload/vital/_crystal/Data/String.vim | 2 | ||||
-rw-r--r-- | autoload/vital/_crystal/Process.vim | 2 | ||||
-rw-r--r-- | autoload/vital/_crystal/Web/JSON.vim | 2 | ||||
-rw-r--r-- | autoload/vital/crystal.vim | 2 | ||||
-rw-r--r-- | autoload/vital/crystal.vital | 2 |
8 files changed, 16 insertions, 0 deletions
diff --git a/autoload/vital/_crystal.vim b/autoload/vital/_crystal.vim index 08972e34..27e1b310 100644 --- a/autoload/vital/_crystal.vim +++ b/autoload/vital/_crystal.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 + let s:_plugin_name = expand('<sfile>:t:r') function! vital#{s:_plugin_name}#new() abort @@ -8,4 +9,5 @@ endfunction function! vital#{s:_plugin_name}#function(funcname) abort silent! return function(a:funcname) endfunction + endif diff --git a/autoload/vital/_crystal/ColorEcho.vim b/autoload/vital/_crystal/ColorEcho.vim index de55e0e6..af9b4374 100644 --- a/autoload/vital/_crystal/ColorEcho.vim +++ b/autoload/vital/_crystal/ColorEcho.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 + " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -186,4 +187,5 @@ endfunction let &cpo = s:save_cpo unlet s:save_cpo + endif diff --git a/autoload/vital/_crystal/Data/List.vim b/autoload/vital/_crystal/Data/List.vim index 8595fa53..c84e1ffa 100644 --- a/autoload/vital/_crystal/Data/List.vim +++ b/autoload/vital/_crystal/Data/List.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 + " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -463,4 +464,5 @@ let &cpo = s:save_cpo unlet s:save_cpo " vim:set et ts=2 sts=2 sw=2 tw=0: + endif diff --git a/autoload/vital/_crystal/Data/String.vim b/autoload/vital/_crystal/Data/String.vim index e8c72a47..fe37c6a5 100644 --- a/autoload/vital/_crystal/Data/String.vim +++ b/autoload/vital/_crystal/Data/String.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 + " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -626,4 +627,5 @@ endfunction let &cpo = s:save_cpo unlet s:save_cpo " vim:set et ts=2 sts=2 sw=2 tw=0: + endif diff --git a/autoload/vital/_crystal/Process.vim b/autoload/vital/_crystal/Process.vim index 5f19af55..9a159932 100644 --- a/autoload/vital/_crystal/Process.vim +++ b/autoload/vital/_crystal/Process.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 + " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -172,4 +173,5 @@ let &cpo = s:save_cpo unlet s:save_cpo " vim:set et ts=2 sts=2 sw=2 tw=0: + endif diff --git a/autoload/vital/_crystal/Web/JSON.vim b/autoload/vital/_crystal/Web/JSON.vim index ef9cd5e9..e9567fef 100644 --- a/autoload/vital/_crystal/Web/JSON.vim +++ b/autoload/vital/_crystal/Web/JSON.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 + " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -177,4 +178,5 @@ let &cpo = s:save_cpo unlet s:save_cpo " vim:set et ts=2 sts=2 sw=2 tw=0: + endif diff --git a/autoload/vital/crystal.vim b/autoload/vital/crystal.vim index f5858108..e1fb611b 100644 --- a/autoload/vital/crystal.vim +++ b/autoload/vital/crystal.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 + let s:plugin_name = expand('<sfile>:t:r') let s:vital_base_dir = expand('<sfile>:h') let s:project_root = expand('<sfile>:h:h:h') @@ -327,4 +328,5 @@ else return a:list endfunction endif + endif diff --git a/autoload/vital/crystal.vital b/autoload/vital/crystal.vital index 19e5f642..4a13eb01 100644 --- a/autoload/vital/crystal.vital +++ b/autoload/vital/crystal.vital @@ -1,8 +1,10 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 + crystal bee84ae23effb0510137ad177e98c94d8b3657a6 Process Web.JSON ColorEcho + endif |