File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,8 @@ if exists("java_highlight_all") || exists("java_highlight_java") || exists("ja
109109 syn cluster javaTop add =javaLangObject
110110endif
111111
112- if filereadable ( expand ( " <sfile>:p:h " ). " /javaid.vim" )
113- source <sfile> : p : h /javaid.vim
112+ if globpath (& runtimepath , ' syntax /javaid.vim' ) !=# ' '
113+ source syntax /javaid.vim
114114endif
115115
116116if exists (" java_space_errors" )
@@ -154,10 +154,10 @@ JavaHiLink javaCommentCharacter javaCharacter
154154
155155syn cluster javaTop add =javaComment,javaLineComment
156156
157- if ! exists (" java_ignore_javadoc" ) && main_syntax != ' jsp'
157+ if ! exists (" java_ignore_javadoc" ) && main_syntax != ' jsp' && globpath (& runtimepath , ' syntax/html.vim ' ) !=# ' '
158158 syntax case ignore
159159 " syntax coloring for javadoc comments (HTML)
160- syntax include @javaHtml <sfile> :p:h /html.vim
160+ syntax include @javaHtml syntax /html.vim
161161 unlet b: current_syntax
162162 " HTML enables spell checking for all text that is not in a syntax item. This
163163 " is wrong for Java (all identifiers would be spell-checked), so it's undone
You can’t perform that action at this time.
0 commit comments