annotate runtime/syntax/java.vim @ 5854:c519c446c548 v7.4.270

updated for version 7.4.270 Problem: Comparing pointers instead of the string they point to. Solution: Use strcmp(). (Ken Takata)
author Bram Moolenaar <bram@vim.org>
date Tue, 29 Apr 2014 15:11:43 +0200
parents aa51675adf7e
children 099f8b730941
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
1 " Vim syntax file
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
2 " Language: Java
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
3 " Maintainer: Claudio Fleiner <claudio@fleiner.com>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://www.fleiner.com/vim/syntax/java.vim
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
5 " Last Change: 2012 Oct 05
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Please check :help java.vim for comments on some of the options available.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if !exists("main_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " we define it here so that included files can test for it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 let main_syntax='java'
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1621
diff changeset
18 syn region javaFold start="{" end="}" transparent fold
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
21 let s:cpo_save = &cpo
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
22 set cpo&vim
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
23
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " don't use standard HiLink, it will not work with included syntax files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 command! -nargs=+ JavaHiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 command! -nargs=+ JavaHiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " some characters that cannot be in a java program (outside a string)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match javaError "[\\@`]"
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
33 syn match javaError "<<<\|\.\.\|=>\|||=\|&&=\|[^-]->\|\*\/"
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
34
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match javaOK "\.\.\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " use separate name so that it can be deleted in javacc.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match javaError2 "#\|=<"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 JavaHiLink javaError2 javaError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " keyword definitions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword javaExternal native package
856
8cd729851562 updated for version 7.0g
vimboss
parents: 632
diff changeset
45 syn match javaExternal "\<import\>\(\s\+static\>\)\?"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword javaError goto const
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword javaConditional if else switch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword javaRepeat while for do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword javaBoolean true false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword javaConstant null
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword javaTypedef this super
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword javaOperator new instanceof
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword javaType boolean char byte short int long float double
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword javaType void
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword javaStatement return
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword javaStorageClass static synchronized transient volatile final strictfp serializable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword javaExceptions throw try catch finally
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword javaAssert assert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword javaMethodDecl synchronized throws
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword javaClassDecl extends implements interface
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " to differentiate the keyword class from MyClass.class we use a match here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match javaTypedef "\.\s*\<class\>"ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword javaClassDecl enum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn match javaClassDecl "^class\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn match javaClassDecl "[^.]\s*\<class\>"ms=s+1
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
66 syn match javaAnnotation "@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a-zA-Z0-9]*\>"
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
67 syn match javaClassDecl "@interface\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword javaBranch break continue nextgroup=javaUserLabelRef skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn match javaUserLabelRef "\k\+" contained
856
8cd729851562 updated for version 7.0g
vimboss
parents: 632
diff changeset
70 syn match javaVarArg "\.\.\."
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword javaScopeDecl public protected private abstract
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
632
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
73 if exists("java_highlight_java_lang_ids")
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
74 let java_highlight_all=1
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
75 endif
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
76 if exists("java_highlight_all") || exists("java_highlight_java") || exists("java_highlight_java_lang")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " java.lang.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn match javaLangClass "\<System\>"
632
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
79 syn keyword javaR_JavaLang NegativeArraySizeException ArrayStoreException IllegalStateException RuntimeException IndexOutOfBoundsException UnsupportedOperationException ArrayIndexOutOfBoundsException ArithmeticException ClassCastException EnumConstantNotPresentException StringIndexOutOfBoundsException IllegalArgumentException IllegalMonitorStateException IllegalThreadStateException NumberFormatException NullPointerException TypeNotPresentException SecurityException
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
80 syn cluster javaTop add=javaR_JavaLang
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
81 syn cluster javaClasses add=javaR_JavaLang
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
82 JavaHiLink javaR_JavaLang javaR_Java
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
83 syn keyword javaC_JavaLang Process RuntimePermission StringKeySet CharacterData01 Class ThreadLocal ThreadLocalMap CharacterData0E Package Character StringCoding Long ProcessImpl ProcessEnvironment Short AssertionStatusDirectives 1PackageInfoProxy UnicodeBlock InheritableThreadLocal AbstractStringBuilder StringEnvironment ClassLoader ConditionalSpecialCasing CharacterDataPrivateUse StringBuffer StringDecoder Entry StringEntry WrappedHook StringBuilder StrictMath State ThreadGroup Runtime CharacterData02 MethodArray Object CharacterDataUndefined Integer Gate Boolean Enum Variable Subset StringEncoder Void Terminator CharsetSD IntegerCache CharacterCache Byte CharsetSE Thread SystemClassLoaderAction CharacterDataLatin1 StringValues StackTraceElement Shutdown ShortCache String ConverterSD ByteCache Lock EnclosingMethodInfo Math Float Value Double SecurityManager LongCache ProcessBuilder StringEntrySet Compiler Number UNIXProcess ConverterSE ExternalData CaseInsensitiveComparator CharacterData00 NativeLibrary
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
84 syn cluster javaTop add=javaC_JavaLang
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
85 syn cluster javaClasses add=javaC_JavaLang
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
86 JavaHiLink javaC_JavaLang javaC_Java
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
87 syn keyword javaE_JavaLang IncompatibleClassChangeError InternalError UnknownError ClassCircularityError AssertionError ThreadDeath IllegalAccessError NoClassDefFoundError ClassFormatError UnsupportedClassVersionError NoSuchFieldError VerifyError ExceptionInInitializerError InstantiationError LinkageError NoSuchMethodError Error UnsatisfiedLinkError StackOverflowError AbstractMethodError VirtualMachineError OutOfMemoryError
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
88 syn cluster javaTop add=javaE_JavaLang
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
89 syn cluster javaClasses add=javaE_JavaLang
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
90 JavaHiLink javaE_JavaLang javaE_Java
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
91 syn keyword javaX_JavaLang CloneNotSupportedException Exception NoSuchMethodException IllegalAccessException NoSuchFieldException Throwable InterruptedException ClassNotFoundException InstantiationException
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
92 syn cluster javaTop add=javaX_JavaLang
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
93 syn cluster javaClasses add=javaX_JavaLang
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
94 JavaHiLink javaX_JavaLang javaX_Java
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
95
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
96 JavaHiLink javaR_Java javaR_
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
97 JavaHiLink javaC_Java javaC_
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
98 JavaHiLink javaE_Java javaE_
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
99 JavaHiLink javaX_Java javaX_
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
100 JavaHiLink javaX_ javaExceptions
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
101 JavaHiLink javaR_ javaExceptions
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
102 JavaHiLink javaE_ javaExceptions
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
103 JavaHiLink javaC_ javaConstant
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
104
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword javaLangObject clone equals finalize getClass hashCode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword javaLangObject notify notifyAll toString wait
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 JavaHiLink javaLangObject javaConstant
632
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
108 syn cluster javaTop add=javaLangObject
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 if filereadable(expand("<sfile>:p:h")."/javaid.vim")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 source <sfile>:p:h/javaid.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 if exists("java_space_errors")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 if !exists("java_no_trail_space_error")
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
117 syn match javaSpaceError "\s\+$"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 if !exists("java_no_tab_space_error")
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
120 syn match javaSpaceError " \+\t"me=e-1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
124 syn region javaLabelRegion transparent matchgroup=javaLabel start="\<case\>" matchgroup=NONE end=":" contains=javaNumber,javaCharacter
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
125 syn match javaUserLabel "^\s*[_$a-zA-Z][_$a-zA-Z0-9_]*\s*:"he=e-1 contains=javaLabel
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn keyword javaLabel default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
3237
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
128 " highlighting C++ keywords as errors removed, too many people find it
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
129 " annoying. Was: if !exists("java_allow_cpp_keywords")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 " The following cluster contains all java groups except the contained ones
557
862863033fdd updated for version 7.0158
vimboss
parents: 36
diff changeset
132 syn cluster javaTop add=javaExternal,javaError,javaError,javaBranch,javaLabelRegion,javaLabel,javaConditional,javaRepeat,javaBoolean,javaConstant,javaTypedef,javaOperator,javaType,javaType,javaStatement,javaStorageClass,javaAssert,javaExceptions,javaMethodDecl,javaClassDecl,javaClassDecl,javaClassDecl,javaScopeDecl,javaError,javaError2,javaUserLabel,javaLangObject,javaAnnotation,javaVarArg
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn keyword javaTodo contained TODO FIXME XXX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 if exists("java_comment_strings")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn region javaCommentString contained start=+"+ end=+"+ end=+$+ end=+\*/+me=s-1,he=s-1 contains=javaSpecial,javaCommentStar,javaSpecialChar,@Spell
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
139 syn region javaComment2String contained start=+"+ end=+$\|"+ contains=javaSpecial,javaSpecialChar,@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn match javaCommentCharacter contained "'\\[^']\{1,6\}'" contains=javaSpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn match javaCommentCharacter contained "'\\''" contains=javaSpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn match javaCommentCharacter contained "'[^\\]'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn cluster javaCommentSpecial add=javaCommentString,javaCommentCharacter,javaNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn cluster javaCommentSpecial2 add=javaComment2String,javaCommentCharacter,javaNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn region javaComment start="/\*" end="\*/" contains=@javaCommentSpecial,javaTodo,@Spell
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
147 syn match javaCommentStar contained "^\s*\*[^/]"me=e-1
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
148 syn match javaCommentStar contained "^\s*\*$"
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
149 syn match javaLineComment "//.*" contains=@javaCommentSpecial2,javaTodo,@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 JavaHiLink javaCommentString javaString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 JavaHiLink javaComment2String javaString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 JavaHiLink javaCommentCharacter javaCharacter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn cluster javaTop add=javaComment,javaLineComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 if !exists("java_ignore_javadoc") && main_syntax != 'jsp'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syntax case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 " syntax coloring for javadoc comments (HTML)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syntax include @javaHtml <sfile>:p:h/html.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 unlet b:current_syntax
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1621
diff changeset
161 " HTML enables spell checking for all text that is not in a syntax item. This
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1621
diff changeset
162 " is wrong for Java (all identifiers would be spell-checked), so it's undone
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1621
diff changeset
163 " here.
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1621
diff changeset
164 syntax spell default
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1621
diff changeset
165
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
166 syn region javaDocComment start="/\*\*" end="\*/" keepend contains=javaCommentTitle,@javaHtml,javaDocTags,javaDocSeeTag,javaTodo,@Spell
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
167 syn region javaCommentTitle contained matchgroup=javaDocComment start="/\*\*" matchgroup=javaCommentTitle keepend end="\.$" end="\.[ \t\r<&]"me=e-1 end="[^{]@"me=s-2,he=s-1 end="\*/"me=s-1,he=s-1 contains=@javaHtml,javaCommentStar,javaTodo,@Spell,javaDocTags,javaDocSeeTag
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
169 syn region javaDocTags contained start="{@\(code\|link\|linkplain\|inherit[Dd]oc\|doc[rR]oot\|value\)" end="}"
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
170 syn match javaDocTags contained "@\(param\|exception\|throws\|since\)\s\+\S\+" contains=javaDocParam
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
171 syn match javaDocParam contained "\s\S\+"
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
172 syn match javaDocTags contained "@\(version\|author\|return\|deprecated\|serial\|serialField\|serialData\)\>"
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
173 syn region javaDocSeeTag contained matchgroup=javaDocTags start="@see\s\+" matchgroup=NONE end="\_."re=e-1 contains=javaDocSeeTagParam
632
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
174 syn match javaDocSeeTagParam contained @"\_[^"]\+"\|<a\s\+\_.\{-}</a>\|\(\k\|\.\)*\(#\k\+\((\_[^)]\+)\)\=\)\=@ extend
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syntax case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 " match the special comment /**/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 syn match javaComment "/\*\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 " Strings and constants
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
182 syn match javaSpecialError contained "\\."
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 syn match javaSpecialCharError contained "[^']"
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
184 syn match javaSpecialChar contained "\\\([4-9]\d\|[0-3]\d\d\|[\"\\'ntbrf]\|u\x\{4\}\)"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 syn region javaString start=+"+ end=+"+ end=+$+ contains=javaSpecialChar,javaSpecialError,@Spell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 " next line disabled, it can cause a crash for a long line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 "syn match javaStringError +"\([^"\\]\|\\.\)*$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 syn match javaCharacter "'[^']*'" contains=javaSpecialChar,javaSpecialCharError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 syn match javaCharacter "'\\''" contains=javaSpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 syn match javaCharacter "'[^\\]'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 syn match javaNumber "\<\(0[0-7]*\|0[xX]\x\+\|\d\+\)[lL]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 syn match javaNumber "\(\<\d\+\.\d*\|\.\d\+\)\([eE][-+]\=\d\+\)\=[fFdD]\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 syn match javaNumber "\<\d\+[eE][-+]\=\d\+[fFdD]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 syn match javaNumber "\<\d\+\([eE][-+]\=\d\+\)\=[fFdD]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 " unicode characters
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
197 syn match javaSpecial "\\u\d\{4\}"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 syn cluster javaTop add=javaString,javaCharacter,javaNumber,javaSpecial,javaStringError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 if exists("java_highlight_functions")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 if java_highlight_functions == "indent"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 syn match javaFuncDef "^\(\t\| \{8\}\)[_$a-zA-Z][_$a-zA-Z0-9_. \[\]]*([^-+*/()]*)" contains=javaScopeDecl,javaType,javaStorageClass,@javaClasses
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 syn region javaFuncDef start=+^\(\t\| \{8\}\)[$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*,\s*+ end=+)+ contains=javaScopeDecl,javaType,javaStorageClass,@javaClasses
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 syn match javaFuncDef "^ [$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*)" contains=javaScopeDecl,javaType,javaStorageClass,@javaClasses
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 syn region javaFuncDef start=+^ [$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*,\s*+ end=+)+ contains=javaScopeDecl,javaType,javaStorageClass,@javaClasses
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 " This line catches method declarations at any indentation>0, but it assumes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 " two things:
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
210 " 1. class names are always capitalized (ie: Button)
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
211 " 2. method names are never capitalized (except constructors, of course)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 syn region javaFuncDef start=+^\s\+\(\(public\|protected\|private\|static\|abstract\|final\|native\|synchronized\)\s\+\)*\(\(void\|boolean\|char\|byte\|short\|int\|long\|float\|double\|\([A-Za-z_][A-Za-z0-9_$]*\.\)*[A-Z][A-Za-z0-9_$]*\)\(<[^>]*>\)\=\(\[\]\)*\s\+[a-z][A-Za-z0-9_$]*\|[A-Z][A-Za-z0-9_$]*\)\s*([^0-9]+ end=+)+ contains=javaScopeDecl,javaType,javaStorageClass,javaComment,javaLineComment,@javaClasses
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 syn match javaBraces "[{}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 syn cluster javaTop add=javaFuncDef,javaBraces
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 if exists("java_highlight_debug")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 " Strings and constants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 syn match javaDebugSpecial contained "\\\d\d\d\|\\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 syn region javaDebugString contained start=+"+ end=+"+ contains=javaDebugSpecial
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
223 syn match javaDebugStringError +"\([^"\\]\|\\.\)*$+
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 syn match javaDebugCharacter contained "'[^\\]'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 syn match javaDebugSpecialCharacter contained "'\\.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 syn match javaDebugSpecialCharacter contained "'\\''"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 syn match javaDebugNumber contained "\<\(0[0-7]*\|0[xX]\x\+\|\d\+\)[lL]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 syn match javaDebugNumber contained "\(\<\d\+\.\d*\|\.\d\+\)\([eE][-+]\=\d\+\)\=[fFdD]\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 syn match javaDebugNumber contained "\<\d\+[eE][-+]\=\d\+[fFdD]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 syn match javaDebugNumber contained "\<\d\+\([eE][-+]\=\d\+\)\=[fFdD]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 syn keyword javaDebugBoolean contained true false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 syn keyword javaDebugType contained null this super
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 syn region javaDebugParen start=+(+ end=+)+ contained contains=javaDebug.*,javaDebugParen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 " to make this work you must define the highlighting for these groups
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 syn match javaDebug "\<System\.\(out\|err\)\.print\(ln\)*\s*("me=e-1 contains=javaDebug.* nextgroup=javaDebugParen
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
237 syn match javaDebug "\<p\s*("me=e-1 contains=javaDebug.* nextgroup=javaDebugParen
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 syn match javaDebug "[A-Za-z][a-zA-Z0-9_]*\.printStackTrace\s*("me=e-1 contains=javaDebug.* nextgroup=javaDebugParen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 syn match javaDebug "\<trace[SL]\=\s*("me=e-1 contains=javaDebug.* nextgroup=javaDebugParen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 syn cluster javaTop add=javaDebug
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 if version >= 508 || !exists("did_c_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 JavaHiLink javaDebug Debug
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 JavaHiLink javaDebugString DebugString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 JavaHiLink javaDebugStringError javaError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 JavaHiLink javaDebugType DebugType
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 JavaHiLink javaDebugBoolean DebugBoolean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 JavaHiLink javaDebugNumber Debug
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 JavaHiLink javaDebugSpecial DebugSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 JavaHiLink javaDebugSpecialCharacter DebugSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 JavaHiLink javaDebugCharacter DebugString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 JavaHiLink javaDebugParen Debug
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 JavaHiLink DebugString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 JavaHiLink DebugSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 JavaHiLink DebugBoolean Boolean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 JavaHiLink DebugType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 if exists("java_mark_braces_in_parens_as_errors")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 syn match javaInParen contained "[{}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 JavaHiLink javaInParen javaError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 syn cluster javaTop add=javaInParen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 " catch errors caused by wrong parenthesis
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
269 syn region javaParenT transparent matchgroup=javaParen start="(" end=")" contains=@javaTop,javaParenT1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 syn region javaParenT1 transparent matchgroup=javaParen1 start="(" end=")" contains=@javaTop,javaParenT2 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 syn region javaParenT2 transparent matchgroup=javaParen2 start="(" end=")" contains=@javaTop,javaParenT contained
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
272 syn match javaParenError ")"
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
273 " catch errors caused by wrong square parenthesis
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
274 syn region javaParenT transparent matchgroup=javaParen start="\[" end="\]" contains=@javaTop,javaParenT1
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
275 syn region javaParenT1 transparent matchgroup=javaParen1 start="\[" end="\]" contains=@javaTop,javaParenT2 contained
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
276 syn region javaParenT2 transparent matchgroup=javaParen2 start="\[" end="\]" contains=@javaTop,javaParenT contained
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
277 syn match javaParenError "\]"
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
278
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
279 JavaHiLink javaParenError javaError
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 if !exists("java_minlines")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 let java_minlines = 10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 exec "syn sync ccomment javaComment minlines=" . java_minlines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 " The default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 if version >= 508 || !exists("did_java_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 let did_java_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 JavaHiLink javaFuncDef Function
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
292 JavaHiLink javaVarArg Function
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 JavaHiLink javaBraces Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 JavaHiLink javaBranch Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 JavaHiLink javaUserLabelRef javaUserLabel
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 JavaHiLink javaLabel Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 JavaHiLink javaUserLabel Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 JavaHiLink javaConditional Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 JavaHiLink javaRepeat Repeat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 JavaHiLink javaExceptions Exception
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 JavaHiLink javaAssert Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 JavaHiLink javaStorageClass StorageClass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 JavaHiLink javaMethodDecl javaStorageClass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304 JavaHiLink javaClassDecl javaStorageClass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 JavaHiLink javaScopeDecl javaStorageClass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306 JavaHiLink javaBoolean Boolean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 JavaHiLink javaSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 JavaHiLink javaSpecialError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 JavaHiLink javaSpecialCharError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 JavaHiLink javaString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 JavaHiLink javaCharacter Character
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 JavaHiLink javaSpecialChar SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 JavaHiLink javaNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 JavaHiLink javaError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 JavaHiLink javaStringError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 JavaHiLink javaStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 JavaHiLink javaOperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 JavaHiLink javaComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 JavaHiLink javaDocComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 JavaHiLink javaLineComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 JavaHiLink javaConstant Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 JavaHiLink javaTypedef Typedef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 JavaHiLink javaTodo Todo
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2034
diff changeset
324 JavaHiLink javaAnnotation PreProc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 JavaHiLink javaCommentTitle SpecialComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 JavaHiLink javaDocTags Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 JavaHiLink javaDocParam Function
632
b6632d553df3 updated for version 7.0182
vimboss
parents: 557
diff changeset
329 JavaHiLink javaDocSeeTagParam Function
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 JavaHiLink javaCommentStar javaComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 JavaHiLink javaType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 JavaHiLink javaExternal Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 JavaHiLink htmlComment Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 JavaHiLink htmlCommentPart Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 JavaHiLink javaSpaceError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 delcommand JavaHiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 let b:current_syntax = "java"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 if main_syntax == 'java'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 unlet main_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 let b:spell_options="contained"
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
349 let &cpo = s:cpo_save
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
350 unlet s:cpo_save
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 " vim: ts=8