Skip to content

Commit 5d2879e

Browse files
committed
Merge pull request #2 from kamichidu/develop
Support lambda symbol.
2 parents 280dbfc + a21e5ee commit 5d2879e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

syntax/java.vim

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
" Vim syntax file
22
" Language: Java
3-
" Maintainer: Claudio Fleiner <[email protected]>
4-
" URL: http://www.fleiner.com/vim/syntax/java.vim
5-
" Last Change: 2012 Oct 05
6-
3+
" Current Maintainer: kamichidu <[email protected]>
4+
" Current URL: http://github.com/vim-jp/vim-java/
5+
" Previous Maintainer: Claudio Fleiner <[email protected]>
6+
" Previous URL: http://www.fleiner.com/vim/syntax/java.vim
7+
" Last Change: 2015 Feb 28
78
" Please check :help java.vim for comments on some of the options available.
89

910
" Quit when a syntax file was already loaded
@@ -30,7 +31,7 @@ endif
3031

3132
" some characters that cannot be in a java program (outside a string)
3233
syn match javaError "[\\@`]"
33-
syn match javaError "<<<\|\.\.\|=>\|||=\|&&=\|[^-]->\|\*\/"
34+
syn match javaError "<<<\|\.\.\|=>\|||=\|&&=\|\*\/"
3435

3536
syn match javaOK "\.\.\."
3637

@@ -108,8 +109,8 @@ if exists("java_highlight_all") || exists("java_highlight_java") || exists("ja
108109
syn cluster javaTop add=javaLangObject
109110
endif
110111

111-
if filereadable(expand("<sfile>:p:h")."/javaid.vim")
112-
source <sfile>:p:h/javaid.vim
112+
if globpath(&runtimepath, 'syntax/javaid.vim') !=# ''
113+
source syntax/javaid.vim
113114
endif
114115

115116
if exists("java_space_errors")
@@ -153,10 +154,10 @@ JavaHiLink javaCommentCharacter javaCharacter
153154

154155
syn cluster javaTop add=javaComment,javaLineComment
155156

156-
if !exists("java_ignore_javadoc") && main_syntax != 'jsp'
157+
if !exists("java_ignore_javadoc") && main_syntax != 'jsp' && globpath(&runtimepath, 'syntax/html.vim') !=# ''
157158
syntax case ignore
158159
" syntax coloring for javadoc comments (HTML)
159-
syntax include @javaHtml <sfile>:p:h/html.vim
160+
syntax include @javaHtml syntax/html.vim
160161
unlet b:current_syntax
161162
" HTML enables spell checking for all text that is not in a syntax item. This
162163
" is wrong for Java (all identifiers would be spell-checked), so it's undone

0 commit comments

Comments
 (0)