summaryrefslogtreecommitdiffstats
path: root/autoload/julia
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--autoload/julia.vim8
-rw-r--r--autoload/julia/doc.vim8
-rw-r--r--autoload/julia_blocks.vim8
-rw-r--r--autoload/julia_latex_symbols.vim8
4 files changed, 16 insertions, 16 deletions
diff --git a/autoload/julia.vim b/autoload/julia.vim
index 695a6b78..c3c949ac 100644
--- a/autoload/julia.vim
+++ b/autoload/julia.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1
+ finish
+endif
+
function! julia#set_syntax_version(jvers)
if &filetype != "julia"
echo "Not a Julia file"
@@ -184,5 +186,3 @@ function! julia#gotodefinition()
endfunction
endif
-
-endif
diff --git a/autoload/julia/doc.vim b/autoload/julia/doc.vim
index 8a9cab52..c2660143 100644
--- a/autoload/julia/doc.vim
+++ b/autoload/julia/doc.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1
+ finish
+endif
+
" path to the julia binary to communicate with
if has('win32') || has('win64')
if exists('g:julia#doc#juliapath')
@@ -242,5 +244,3 @@ function! s:likely(str) abort
let output = systemlist(cmd)
return split(matchstr(output[0], '\C^search: \zs.*'))
endfunction
-
-endif
diff --git a/autoload/julia_blocks.vim b/autoload/julia_blocks.vim
index 0362c8dc..0f4d2bb0 100644
--- a/autoload/julia_blocks.vim
+++ b/autoload/julia_blocks.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1
+ finish
+endif
+
" Facilities for moving around Julia blocks (e.g. if/end, function/end etc.)
" (AKA a collection of horrible hacks)
@@ -794,5 +796,3 @@ function! s:cursor_moved(...)
let b:jlblk_did_select = b:jlblk_doing_select
let b:jlblk_doing_select = 0
endfunction
-
-endif
diff --git a/autoload/julia_latex_symbols.vim b/autoload/julia_latex_symbols.vim
index 69f857e6..29bf031f 100644
--- a/autoload/julia_latex_symbols.vim
+++ b/autoload/julia_latex_symbols.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1
+ finish
+endif
+
" This file is autogenerated from the script 'generate_latex_symbols_table.jl'
" The symbols are based on Julia version 1.1.0-DEV.695
@@ -3329,5 +3331,3 @@ function! julia_latex_symbols#get_dict()
\ '\:baggage_claim:': '🛄',
\ '\:left_luggage:': '🛅'}
endfunction
-
-endif