From 25de4c232d580583feadae11ab34e3cc6333c350 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 6 Nov 2016 14:48:06 +0100 Subject: Updated runtime files. --- runtime/syntax/synload.vim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'runtime/syntax/synload.vim') diff --git a/runtime/syntax/synload.vim b/runtime/syntax/synload.vim index 6183f33a5..ab918c645 100644 --- a/runtime/syntax/synload.vim +++ b/runtime/syntax/synload.vim @@ -1,6 +1,6 @@ " Vim syntax support file " Maintainer: Bram Moolenaar -" 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' -- cgit v1.2.1