diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-29 01:53:03 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-29 01:53:42 +0200 |
commit | 024ff6b80831a27d2f6571006eb6fdf94d95f882 (patch) | |
tree | 1c4a520069712e978c0ffb9eaa1d8ee771be304d /runtime/syntax | |
parent | 789c46934b2089782fb0115493513bd0cc6f7388 (diff) | |
download | rneovim-024ff6b80831a27d2f6571006eb6fdf94d95f882.tar.gz rneovim-024ff6b80831a27d2f6571006eb6fdf94d95f882.tar.bz2 rneovim-024ff6b80831a27d2f6571006eb6fdf94d95f882.zip |
vim-patch:25de4c232d58
Updated runtime files.
https://github.com/vim/vim/commit/25de4c232d580583feadae11ab34e3cc6333c350
Diffstat (limited to 'runtime/syntax')
-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' |