" Javascript syntax. syn clear MiscChar Comment Error PreProc syn match MiscChar "[^_a-zA-Z0-9(){} ]" syn match Comment "^\s*//.*" syn region CommentMult start=+^\s*/\*+ end=+\*/+ syn keyword TypeFunc function syn keyword TypeBool true false undefined null syn keyword TypeMisc Boolean String var const syn keyword FlowControl return break continue syn match Function /\c\<[a-z]\+[a-z0-9_]\+\s*(\@=/ syn match Error "\<\(try\|catch\)\>" syn match Error "\<\([A-Z][A-Za-z]\+\)\?\(Exception\|Error\)\>" " '(' in 'alert()' needs to be used in look-ahead context in order to " avoid coloring '(' along w/ 'alert' but not ')' syn match Error "\