diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-29 14:59:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-29 14:59:10 +0200 |
| commit | 5a304b78647d1a3913cbab197ccde033ae0510cd (patch) | |
| tree | 654eb1c155b568745309646e79b970e011527577 /runtime/syntax/synload.vim | |
| parent | 51a2d8dc36b56125c81a085a773eb47671eec7f0 (diff) | |
| parent | 024ff6b80831a27d2f6571006eb6fdf94d95f882 (diff) | |
| download | rneovim-5a304b78647d1a3913cbab197ccde033ae0510cd.tar.gz rneovim-5a304b78647d1a3913cbab197ccde033ae0510cd.tar.bz2 rneovim-5a304b78647d1a3913cbab197ccde033ae0510cd.zip | |
Merge #6615 from justinmk/vim-patches
Diffstat (limited to 'runtime/syntax/synload.vim')
| -rw-r--r-- | runtime/syntax/synload.vim | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/syntax/synload.vim b/runtime/syntax/synload.vim index 6183f33a59..ab918c645b 100644 --- a/runtime/syntax/synload.vim +++ b/runtime/syntax/synload.vim @@ -1,6 +1,6 @@ " Vim syntax support file " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2012 Sep 25 +" Last Change: 2016 Nov 04 " This file sets up for syntax highlighting. " It is loaded from "syntax.vim" and "manual.vim". @@ -69,8 +69,11 @@ au Syntax c,cpp,cs,idl,java,php,datascript " Source the user-specified syntax highlighting file -if exists("mysyntaxfile") && filereadable(expand(mysyntaxfile)) - execute "source " . mysyntaxfile +if exists("mysyntaxfile") + let s:fname = expand(mysyntaxfile) + if filereadable(s:fname) + execute "source " . fnameescape(s:fname) + endif endif " Restore 'cpoptions' |