" Java syntax. syn clear MiscChar Comment Error PreProc syn match MiscChar "[^_a-zA-Z0-9(){} ]" "syn region PreProc start=/^\s*#\%(include\|define\|ifn\?def\|endif\)\>/ end=/\s*$/ syn region PreProc start=/^\s*import/ end=/;\s*$/ syn match Comment "^\s*//.*" syn region CommentMult start=+^\s*/\*+ end=+\*/+ syn keyword TypeChar char String syn keyword TypeNum int float double long short byte syn keyword TypeMisc boolean true false syn keyword TypeMisc Object Class Method Constructor syn keyword TypeMisc Double Number Integer Long syn keyword TypeMisc Comparable Random Arrays Array syn keyword TypeMisc Collection ListIterator Iterator syn keyword TypeMisc Hashtable syn keyword TypeMisc ArrayList Vector List AbstractList LinkedList syn match TypeMisc "\<\(Sorted\|Hash\|Tree\|\)\(Set\|Map\)\>" syn keyword TypeMisc Heap HeapMin HeapMax PriorityQueue syn keyword TypeMisc Color Polygon Graphics Applet syn match TypeMisc "\" syn match TypeMisc "\<\(String\)Buffer\>" syn keyword Scope package class extends implements syn keyword Scope final void static private public protected abstract syn keyword Repeat do for while break continue syn keyword Condition if else switch case default: syn match Error "\<\%(throws\?\|try\|finally\|[a-zA-Z][_a-zA-Z0-9]\+_\?throw\)\>" syn match Error "\<\([A-Z][A-Za-z]\+\)\?\(Exception\|Error\)\>" syn match Error "\" syn keyword FlowControl return syn match Function /\c\<[a-z]\+[a-z0-9_]\+\s*(\@=/ so $vim_cf/quoted.syn let b:current_syntax = "java"