annotate vendor/vim-syntax/javascript.vim @ 629:035b23bb15da

Update syntaxes
author nanaya <me@nanaya.pro>
date Fri, 18 Oct 2019 15:21:13 +0900
parents b305f2ce5f88
children ced2ee9efd9f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
1 " Vim syntax file
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
2 " Language: JavaScript
629
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
3 " Maintainer: Jose Elera <https://github.com/jelera>
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
4 " https://jelera.github.io
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
5 " Last Modified: Thu 11 Jul 2019 11:53:28 AM CDT
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
6 " Version: 0.8.2
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
7 " Credits: Zhao Yi, Claudio Fleiner, Scott Shattuck (This file is based
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
8 " on their hard work), gumnos (From the #vim IRC Channel in
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
9 " Freenode), all the contributors at this project's github page
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
10 " (https://github.com/jelera/vim-javascript-syntax/graphs/contributors)
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
11
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
12 if !exists("main_syntax")
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
13 if version < 600
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
14 syntax clear
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
15 elseif exists("b:current_syntax")
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
16 finish
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
17 endif
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
18 let main_syntax = 'javascript'
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
19 endif
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
20
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
21 " Drop fold if it set but vim doesn't support it.
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
22 if version < 600 && exists("javaScript_fold")
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
23 unlet javaScript_fold
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
24 endif
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
25
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
26 "" Remove dollar sign from identifier when embedded in a PHP file
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
27 if &filetype == 'javascript'
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
28 setlocal iskeyword+=$
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
29 endif
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
30
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
31 syntax sync fromstart
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
32
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
33 "" syntax coloring for Node.js shebang line
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
34 syntax match shebang "^#!.*"
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
35 hi link shebang Comment
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
36
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
37 " Statement Keywords {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
38 syntax keyword javaScriptSource import export from
612
b305f2ce5f88 Update vendored files
nanaya <me@nanaya.pro>
parents: 604
diff changeset
39 syntax keyword javaScriptIdentifier arguments this let var void yield async await const
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
40 syntax keyword javaScriptOperator delete new instanceof typeof
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
41 syntax keyword javaScriptBoolean true false
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
42 syntax keyword javaScriptNull null undefined
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
43 syntax keyword javaScriptMessage alert confirm prompt status
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
44 syntax keyword javaScriptGlobal self top parent
629
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
45 syntax keyword javaScriptDeprecated escape unescape applets alinkColor bgColor fgColor linkColor vlinkColor xmlEncoding
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
46 syntax keyword javaScriptConditional if else switch
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
47 syntax keyword javaScriptRepeat do while for in of
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
48 syntax keyword javaScriptBranch break continue
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
49 syntax keyword javaScriptLabel case default
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
50 syntax keyword javaScriptPrototype prototype
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
51 syntax keyword javaScriptStatement return with
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
52 syntax keyword javaScriptGlobalObjects Array Boolean Date Function Math Number Object RegExp String
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
53 syntax keyword javaScriptExceptions try catch throw finally Error EvalError RangeError ReferenceError SyntaxError TypeError URIError
629
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
54 syntax keyword javaScriptReserved abstract all enum int short boolean export interface static byte extends long super char final native synchronized class float package throws goto private transient debugger implements protected volatile double import public
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
55 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
56 " Comments {{{
612
b305f2ce5f88 Update vendored files
nanaya <me@nanaya.pro>
parents: 604
diff changeset
57 syntax keyword javaScriptCommentTodo TODO FIXME XXX TBD OPTIMIZE HACK REVIEW contained
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
58 syntax match javaScriptLineComment "\/\/.*" contains=@Spell,javaScriptCommentTodo
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
59 syntax match javaScriptCommentSkip "^[ \t]*\*\($\|[ \t]\+\)"
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
60 syntax region javaScriptComment start="/\*" end="\*/" contains=@Spell,javaScriptCommentTodo
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
61 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
62 " JSDoc support {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
63 if !exists("javascript_ignore_javaScriptdoc")
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
64 syntax case ignore
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
65
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
66 " syntax coloring for JSDoc comments (HTML)
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
67 "unlet b:current_syntax
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
68
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
69 syntax region javaScriptDocComment matchgroup=javaScriptComment start="/\*\*\s*$" end="\*/" contains=javaScriptDocTags,javaScriptCommentTodo,@javaScriptHtml,jsInJsdocExample,@Spell fold
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
70 syntax match javaScriptDocTags contained "@\(abstract\|access\|alias\|arg\|argument\|augments\|author\|borrows\|callback\|class\|classdesc\|const\|constant\|constructor\|constructs\|copyright\|default\|defaultvalue\|deprecated\|desc\|description\|emits\|enum\|event\|example\|exception\|exports\|extends\|external\|file\|fileoverview\|fires\|func\|function\|global\|host\|ignore\|implements\|inheritdoc\|inner\|instance\|interface\|kind\|lends\|license\|link\|linkcode\|linkplain\|listens\|member\|memberof\|method\|mixes\|mixin\|module\|name\|namespace\|override\|overview\|param\|private\|prop\|property\|cfg\|protected\|public\|readonly\|requires\|return\|returns\|see\|since\|static\|summary\|this\|throws\|todo\|tutorial\|tutorial\|type\|typedef\|var\|variation\|version\|virtual\)\>" nextgroup=javaScriptDocParam,javaScriptDocSeeTag skipwhite
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
71 syntax match javaScriptDocParam contained "\%(#\|\w\|\.\|:\|\/\)\+"
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
72 syntax region javaScriptDocSeeTag contained matchgroup=javaScriptDocSeeTag start="{" end="}" contains=javaScriptDocTags
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
73
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
74 syntax case match
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
75 endif
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
76 syntax case match
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
77 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
78 " Strings, Numbers and Regex Highlight {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
79 syntax match javaScriptSpecial "\\\d\d\d\|\\."
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
80 syntax region javaScriptString start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ contains=javaScriptSpecial,@htmlPreproc
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
81 syntax region javaScriptString start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ contains=javaScriptSpecial,@htmlPreproc
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
82
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
83 syntax match javaScriptSpecialCharacter "'\\.'"
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
84 syntax match javaScriptNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
85 syntax region javaScriptRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gim]\{0,2\}\s*$+ end=+/[gim]\{0,2\}\s*[;.,)\]}]+me=e-1 contains=@htmlPreproc oneline
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
86 syntax match javaScriptFloat /\<-\=\%(\d\+\.\d\+\|\d\+\.\|\.\d\+\)\%([eE][+-]\=\d\+\)\=\>/
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
87 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
88 " DOM, Browser and Ajax Support {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
89 syntax keyword javaScriptBrowserObjects window navigator screen history location console
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
90
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
91 syntax keyword javaScriptDOMObjects document event HTMLElement Anchor Area Base Body Button Form Frame Frameset Image Link Meta Option Select Style Table TableCell TableRow Textarea
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
92 syntax keyword javaScriptDOMMethods createTextNode createElement insertBefore replaceChild removeChild appendChild hasChildNodes cloneNode normalize isSupported hasAttributes getAttribute setAttribute removeAttribute getAttributeNode setAttributeNode removeAttributeNode getElementsByTagName hasAttribute getElementById adoptNode close compareDocumentPosition createAttribute createCDATASection createComment createDocumentFragment createElementNS createEvent createExpression createNSResolver createProcessingInstruction createRange createTreeWalker elementFromPoint evaluate getBoxObjectFor getElementsByClassName getSelection getUserData hasFocus importNode
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
93 syntax keyword javaScriptDOMProperties nodeName nodeValue nodeType parentNode childNodes firstChild lastChild previousSibling nextSibling attributes ownerDocument namespaceURI prefix localName tagName
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
94
629
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
95
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
96 syntax keyword javaScriptLocalStorageObjects localStorage
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
97 syntax keyword javaScriptLocalStorageMethods setItem getItem removeItem
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
98
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
99 syntax keyword javaScriptAjaxObjects XMLHttpRequest
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
100 syntax keyword javaScriptAjaxProperties readyState responseText responseXML statusText
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
101 syntax keyword javaScriptAjaxMethods onreadystatechange abort getAllResponseHeaders getResponseHeader open send setRequestHeader
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
102
629
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
103 syntax keyword javaScriptFetchAPIObjects Response Promise
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
104 syntax keyword javaScriptFetchAPIMethods fetch then response clone redirect arrayBuffer blob formData allSettled race reject resolve
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
105 syntax keyword javaScriptFetchAPIProperties headers ok redirected url useFinalURL bodyUsed
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
106
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
107 syntax keyword javaScriptJSONObject JSON
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
108 syntax keyword javaScriptJSONMethods json stringify parse
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
109
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
110 syntax keyword javaScriptPropietaryObjects ActiveXObject
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
111 syntax keyword javaScriptPropietaryMethods attachEvent detachEvent cancelBubble returnValue
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
112
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
113 syntax keyword javaScriptHtmlElemProperties className clientHeight clientLeft clientTop clientWidth dir href id innerHTML lang length offsetHeight offsetLeft offsetParent offsetTop offsetWidth scrollHeight scrollLeft scrollTop scrollWidth style tabIndex target title
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
114
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
115 syntax keyword javaScriptEventListenerKeywords blur click focus mouseover mouseout load item
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
116
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
117 syntax keyword javaScriptEventListenerMethods scrollIntoView addEventListener dispatchEvent removeEventListener preventDefault stopPropagation
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
118 " }}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
119 " DOM/HTML5/CSS specified things {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
120 " Web API Interfaces (very long list of keywords) {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
121 syntax keyword javaScriptWebAPI AbstractWorker AnalyserNode AnimationEvent App Apps ArrayBuffer ArrayBufferView Attr AudioBuffer AudioBufferSourceNode AudioContext AudioDestinationNode AudioListener AudioNode AudioParam AudioProcessingEvent BatteryManager BiquadFilterNode Blob BlobBuilder BlobEvent CallEvent CameraCapabilities CameraControl CameraManager CanvasGradient CanvasImageSource CanvasPattern CanvasPixelArray CanvasRenderingContext2D CaretPosition CDATASection ChannelMergerNode ChannelSplitterNode CharacterData ChildNode ChromeWorker ClipboardEvent CloseEvent Comment CompositionEvent Connection Console ContactManager ConvolverNode Coordinates CSS CSSConditionRule CSSGroupingRule CSSKeyframeRule CSSKeyframesRule CSSMediaRule CSSNamespaceRule CSSPageRule CSSRule CSSRuleList CSSStyleDeclaration CSSStyleRule CSSStyleSheet CSSSupportsRule CustomEvent
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
122 syntax keyword javaScriptWebAPI DataTransfer DataView DedicatedWorkerGlobalScope DelayNode DeviceAcceleration DeviceLightEvent DeviceMotionEvent DeviceOrientationEvent DeviceProximityEvent DeviceRotationRate DeviceStorage DeviceStorageChangeEvent DirectoryEntry DirectoryEntrySync DirectoryReader DirectoryReaderSync Document DocumentFragment DocumentTouch DocumentType DOMConfiguration DOMCursor DOMError DOMErrorHandler DOMException DOMHighResTimeStamp DOMImplementation DOMImplementationList DOMImplementationSource DOMLocator DOMObject DOMParser DOMRequest DOMString DOMStringList DOMStringMap DOMTimeStamp DOMTokenList DOMUserData DynamicsCompressorNode
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
123 syntax keyword javaScriptWebAPI Element ElementTraversal Entity EntityReference Entry EntrySync ErrorEvent Event EventListener EventSource EventTarget Extensions File FileEntry FileEntrySync FileError FileException FileList FileReader FileSystem FileSystemSync Float32Array Float64Array FMRadio FocusEvent FormData GainNode Geolocation History
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
124 syntax keyword javaScriptWebAPI HTMLAnchorElement HTMLAreaElement HTMLAudioElement HTMLBaseElement HTMLBaseFontElement HTMLBodyElement HTMLBRElement HTMLButtonElement HTMLCanvasElement HTMLCollection HTMLDataElement HTMLDataListElement HTMLDivElement HTMLDListElement HTMLDocument HTMLElement HTMLEmbedElement HTMLFieldSetElement HTMLFormControlsCollection HTMLFormElement HTMLHeadElement HTMLHeadingElement HTMLHRElement HTMLHtmlElement HTMLIFrameElement HTMLImageElement HTMLInputElement HTMLIsIndexElement HTMLKeygenElement HTMLLabelElement HTMLLegendElement HTMLLIElement HTMLLinkElement HTMLMapElement HTMLMediaElement HTMLMetaElement HTMLMeterElement HTMLModElement HTMLObjectElement HTMLOListElement HTMLOptGroupElement HTMLOptionElement HTMLOptionsCollection HTMLOutputElement HTMLParagraphElement HTMLParamElement HTMLPreElement HTMLProgressElement HTMLQuoteElement HTMLScriptElement HTMLSelectElement HTMLSourceElement HTMLSpanElement HTMLStyleElement HTMLTableCaptionElement HTMLTableCellElement HTMLTableColElement HTMLTableElement HTMLTableRowElement HTMLTableSectionElement HTMLTextAreaElement HTMLTimeElement HTMLTitleElement HTMLTrackElement HTMLUListElement HTMLUnknownElement HTMLVideoElement
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
125 syntax keyword javaScriptWebAPI IDBCursor IDBCursorWithValue IDBDatabase IDBDatabaseException IDBEnvironment IDBFactory IDBIndex IDBKeyRange IDBObjectStore IDBOpenDBRequest IDBRequest IDBTransaction IDBVersionChangeEvent ImageData Int16Array Int32Array Int8Array KeyboardEvent LinkStyle LocalFileSystem LocalFileSystemSync Location MediaQueryList MediaQueryListListener MediaSource MediaStream MediaStreamTrack MessageEvent MouseEvent MouseScrollEvent MouseWheelEvent MozActivity MozActivityOptions MozActivityRequestHandler MozAlarmsManager MozContact MozContactChangeEvent MozIccManager MozMmsEvent MozMmsMessage MozMobileCellInfo MozMobileCFInfo MozMobileConnection MozMobileConnectionInfo MozMobileICCInfo MozMobileMessageManager MozMobileMessageThread MozMobileNetworkInfo MozNetworkStats MozNetworkStatsData MozNetworkStatsManager MozSettingsEvent MozSmsEvent MozSmsFilter MozSmsManager MozSmsMessage MozSmsSegmentInfo MozTimeManager MozWifiConnectionInfoEvent MutationObserver
629
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
126 syntax keyword javaScriptWebAPI NamedNodeMap NameList Navigator NavigatorGeolocation NavigatorID NavigatorLanguage NavigatorOnLine NavigatorPlugins NetworkInformation Node NodeFilter NodeIterator NodeList Notation Notification NotifyAudioAvailableEvent OfflineAudioCompletionEvent OfflineAudioContext PannerNode ParentNode Performance PerformanceNavigation PerformanceTiming Plugin PluginArray Position PositionError PositionOptions PowerManager ProcessingInstruction ProgressEvent PromiseResolver PushManager
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
127 syntax keyword javaScriptWebAPI Range ScriptProcessorNode Selection SettingsLock SettingsManager SharedWorker StyleSheet StyleSheetList SVGAElement SVGAngle SVGAnimateColorElement SVGAnimatedAngle SVGAnimatedBoolean SVGAnimatedEnumeration SVGAnimatedInteger SVGAnimatedLengthList SVGAnimatedNumber SVGAnimatedNumberList SVGAnimatedPoints SVGAnimatedPreserveAspectRatio SVGAnimatedRect SVGAnimatedString SVGAnimatedTransformList SVGAnimateElement SVGAnimateMotionElement SVGAnimateTransformElement SVGAnimationElement SVGCircleElement SVGClipPathElement SVGCursorElement SVGDefsElement SVGDescElement SVGElement SVGEllipseElement SVGFilterElement SVGFontElement SVGFontFaceElement SVGFontFaceFormatElement SVGFontFaceNameElement SVGFontFaceSrcElement SVGFontFaceUriElement
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
128 syntax keyword javaScriptWebAPI SVGForeignObjectElement SVGGElement SVGGlyphElement SVGGradientElement SVGHKernElement SVGImageElement SVGLength SVGLengthList SVGLinearGradientElement SVGLineElement SVGMaskElement SVGMatrix SVGMissingGlyphElement SVGMPathElement SVGNumber SVGNumberList SVGPathElement SVGPatternElement SVGPolygonElement SVGPolylineElement SVGPreserveAspectRatio SVGRadialGradientElement SVGRect SVGRectElement SVGScriptElement SVGSetElement SVGStopElement SVGStringList SVGStylable SVGStyleElement SVGSVGElement SVGSwitchElement SVGSymbolElement SVGTests SVGTextElement SVGTextPositioningElement SVGTitleElement SVGTransform SVGTransformable SVGTransformList SVGTRefElement SVGTSpanElement SVGUseElement SVGViewElement SVGVKernElement TCPSocket Telephony TelephonyCall Text TextDecoder TextEncoder TextMetrics TimeRanges Touch TouchEvent TouchList Transferable TransitionEvent TreeWalker TypeInfo UIEvent Uint16Array Uint32Array Uint8Array Uint8ClampedArray URL URLUtils URLUtilsReadOnly
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
129 " }}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
130 " DOM2 CONSTANT {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
131 syntax keyword javaScriptDomErrNo INDEX_SIZE_ERR DOMSTRING_SIZE_ERR HIERARCHY_REQUEST_ERR WRONG_DOCUMENT_ERR INVALID_CHARACTER_ERR NO_DATA_ALLOWED_ERR NO_MODIFICATION_ALLOWED_ERR NOT_FOUND_ERR NOT_SUPPORTED_ERR INUSE_ATTRIBUTE_ERR INVALID_STATE_ERR SYNTAX_ERR INVALID_MODIFICATION_ERR NAMESPACE_ERR INVALID_ACCESS_ERR
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
132 syntax keyword javaScriptDomNodeConsts ELEMENT_NODE ATTRIBUTE_NODE TEXT_NODE CDATA_SECTION_NODE ENTITY_REFERENCE_NODE ENTITY_NODE PROCESSING_INSTRUCTION_NODE COMMENT_NODE DOCUMENT_NODE DOCUMENT_TYPE_NODE DOCUMENT_FRAGMENT_NODE NOTATION_NODE
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
133 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
134 " HTML events and internal variables"{{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
135 syntax case ignore
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
136 syntax keyword javaScriptHtmlEvents onblur onclick oncontextmenu ondblclick onfocus onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup onresize onload onsubmit
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
137 syntax case match
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
138 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
139
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
140 " Follow stuff should be highligh within a special context
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
141 " While it can't be handled with context depended with Regex based highlight
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
142 " So, turn it off by default
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
143 if exists("javascript_enable_domhtmlcss")
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
144 " DOM2 things {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
145 syntax match javaScriptDomElemAttrs contained /\%(nodeName\|nodeValue\|nodeType\|parentNode\|childNodes\|firstChild\|lastChild\|previousSibling\|nextSibling\|attributes\|ownerDocument\|namespaceURI\|prefix\|localName\|tagName\)\>/
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
146 syntax match javaScriptDomElemFuncs contained /\%(insertBefore\|replaceChild\|removeChild\|appendChild\|hasChildNodes\|cloneNode\|normalize\|isSupported\|hasAttributes\|getAttribute\|setAttribute\|removeAttribute\|getAttributeNode\|setAttributeNode\|removeAttributeNode\|getElementsByTagName\|getAttributeNS\|setAttributeNS\|removeAttributeNS\|getAttributeNodeNS\|setAttributeNodeNS\|getElementsByTagNameNS\|hasAttribute\|hasAttributeNS\)\>/ nextgroup=javaScriptParen skipwhite
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
147 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
148 " HTML things {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
149 syntax match javaScriptHtmlElemAttrs contained /\%(className\|clientHeight\|clientLeft\|clientTop\|clientWidth\|dir\|id\|innerHTML\|lang\|length\|offsetHeight\|offsetLeft\|offsetParent\|offsetTop\|offsetWidth\|scrollHeight\|scrollLeft\|scrollTop\|scrollWidth\|style\|tabIndex\|title\)\>/
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
150 syntax match javaScriptHtmlElemFuncs contained /\%(blur\|click\|focus\|scrollIntoView\|addEventListener\|dispatchEvent\|removeEventListener\|item\)\>/ nextgroup=javaScriptParen skipwhite
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
151 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
152 " CSS Styles in JavaScript {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
153 syntax keyword javaScriptCssStyles contained color font fontFamily fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontWeight letterSpacing lineBreak lineHeight quotes rubyAlign rubyOverhang rubyPosition
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
154 syntax keyword javaScriptCssStyles contained textAlign textAlignLast textAutospace textDecoration textIndent textJustify textJustifyTrim textKashidaSpace textOverflowW6 textShadow textTransform textUnderlinePosition
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
155 syntax keyword javaScriptCssStyles contained unicodeBidi whiteSpace wordBreak wordSpacing wordWrap writingMode
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
156 syntax keyword javaScriptCssStyles contained bottom height left position right top width zIndex
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
157 syntax keyword javaScriptCssStyles contained border borderBottom borderLeft borderRight borderTop borderBottomColor borderLeftColor borderTopColor borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle borderBottomWidth borderLeftWidth borderRightWidth borderTopWidth borderColor borderStyle borderWidth borderCollapse borderSpacing captionSide emptyCells tableLayout
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
158 syntax keyword javaScriptCssStyles contained margin marginBottom marginLeft marginRight marginTop outline outlineColor outlineStyle outlineWidth padding paddingBottom paddingLeft paddingRight paddingTop
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
159 syntax keyword javaScriptCssStyles contained listStyle listStyleImage listStylePosition listStyleType
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
160 syntax keyword javaScriptCssStyles contained background backgroundAttachment backgroundColor backgroundImage gackgroundPosition backgroundPositionX backgroundPositionY backgroundRepeat
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
161 syntax keyword javaScriptCssStyles contained clear clip clipBottom clipLeft clipRight clipTop content counterIncrement counterReset cssFloat cursor direction display filter layoutGrid layoutGridChar layoutGridLine layoutGridMode layoutGridType
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
162 syntax keyword javaScriptCssStyles contained marks maxHeight maxWidth minHeight minWidth opacity MozOpacity overflow overflowX overflowY verticalAlign visibility zoom cssText
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
163 syntax keyword javaScriptCssStyles contained scrollbar3dLightColor scrollbarArrowColor scrollbarBaseColor scrollbarDarkShadowColor scrollbarFaceColor scrollbarHighlightColor scrollbarShadowColor scrollbarTrackColor
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
164 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
165 " Highlight ways {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
166 syntax match javaScriptDotNotation "\." nextgroup=javaScriptPrototype,javaScriptDomElemAttrs,javaScriptDomElemFuncs,javaScriptHtmlElemAttrs,javaScriptHtmlElemFuncs
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
167 syntax match javaScriptDotNotation "\.style\." nextgroup=javaScriptCssStyles
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
168 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
169 endif
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
170 " end DOM/HTML/CSS specified things }}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
171 " Code blocks"{{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
172 syntax cluster javaScriptAll contains=javaScriptComment,javaScriptLineComment,javaScriptDocComment,javaScriptString,javaScriptRegexpString,javaScriptNumber,javaScriptFloat,javaScriptLabel,javaScriptSource,javaScriptWebAPI,javaScriptOperator,javaScriptBoolean,javaScriptNull,javaScriptFuncKeyword,javaScriptConditional,javaScriptGlobal,javaScriptRepeat,javaScriptBranch,javaScriptStatement,javaScriptGlobalObjects,javaScriptMessage,javaScriptIdentifier,javaScriptExceptions,javaScriptReserved,javaScriptDeprecated,javaScriptDomErrNo,javaScriptDomNodeConsts,javaScriptHtmlEvents,javaScriptDotNotation,javaScriptBrowserObjects,javaScriptDOMObjects,javaScriptAjaxObjects,javaScriptPropietaryObjects,javaScriptDOMMethods,javaScriptHtmlElemProperties,javaScriptDOMProperties,javaScriptEventListenerKeywords,javaScriptEventListenerMethods,javaScriptAjaxProperties,javaScriptAjaxMethods,javaScriptFuncArg
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
173
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
174 if main_syntax == "javascript"
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
175 syntax sync clear
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
176 syntax sync ccomment javaScriptComment minlines=200
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
177 " syntax sync match javaScriptHighlight grouphere javaScriptBlock /{/
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
178 endif
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
179 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
180 " Function and arguments highlighting {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
181 syntax keyword javaScriptFuncKeyword function contained
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
182 syntax region javaScriptFuncExp start=/\w\+\s\==\s\=function\>/ end="\([^)]*\)" contains=javaScriptFuncEq,javaScriptFuncKeyword,javaScriptFuncArg keepend
612
b305f2ce5f88 Update vendored files
nanaya <me@nanaya.pro>
parents: 604
diff changeset
183 syntax match javaScriptFuncArg "\(([^()]*)\)" contains=javaScriptParens,javaScriptFuncComma,javaScriptComment contained
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
184 syntax match javaScriptFuncComma /,/ contained
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
185 syntax match javaScriptFuncEq /=/ contained
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
186 syntax region javaScriptFuncDef start="\<function\>" end="\([^)]*\)" contains=javaScriptFuncKeyword,javaScriptFuncArg keepend
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
187 syntax match javaScriptObjectKey /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>\(\s*:\)\@=/ contains=javaScriptFunctionKey
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
188 syntax match javaScriptFunctionKey /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>\(\s*:\s*function\s*\)\@=/ contained
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
189 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
190 " Braces, Parens, symbols, colons {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
191 syntax match javaScriptBraces "[{}\[\]]"
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
192 syntax match javaScriptParens "[()]"
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
193 syntax match javaScriptOpSymbols "=\{1,3}\|!==\|!=\|<\|>\|>=\|<=\|++\|+=\|--\|-="
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
194 syntax match javaScriptEndColons "[;,]"
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
195 syntax match javaScriptLogicSymbols "\(&&\)\|\(||\)"
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
196 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
197 " ES6 String Interpolation {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
198 syntax match javaScriptTemplateDelim "\${\|}" contained
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
199 syntax region javaScriptTemplateVar start=+${+ end=+}+ contains=javaScriptTemplateDelim keepend
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
200 syntax region javaScriptTemplateString start=+`+ skip=+\\\(`\|$\)+ end=+`+ contains=javaScriptTemplateVar,javaScriptSpecial keepend
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
201 "}}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
202 " JavaScriptFold Function {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
203
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
204 function! JavaScriptFold()
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
205 setl foldmethod=syntax
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
206 setl foldlevelstart=1
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
207 syntax region foldBraces start=/{/ end=/}/ transparent fold keepend extend
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
208 endfunction
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
209
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
210 " }}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
211 " Highlight links {{{
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
212 " Define the default highlighting.
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
213 " For version 5.7 and earlier: only when not done already
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
214 " For version 5.8 and later: only when an item doesn't have highlighting yet
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
215 if version >= 508 || !exists("did_javascript_syn_inits")
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
216 if version < 508
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
217 let did_javascript_syn_inits = 1
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
218 command -nargs=+ HiLink hi link <args>
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
219 else
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
220 command -nargs=+ HiLink hi def link <args>
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
221 endif
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
222 HiLink javaScriptEndColons Operator
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
223 HiLink javaScriptOpSymbols Operator
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
224 HiLink javaScriptLogicSymbols Boolean
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
225 HiLink javaScriptBraces Function
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
226 HiLink javaScriptParens Operator
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
227 HiLink javaScriptTemplateDelim Operator
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
228
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
229 HiLink javaScriptComment Comment
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
230 HiLink javaScriptLineComment Comment
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
231 HiLink javaScriptDocComment Comment
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
232 HiLink javaScriptCommentTodo Todo
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
233
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
234 HiLink javaScriptDocTags Special
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
235 HiLink javaScriptDocSeeTag Function
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
236 HiLink javaScriptDocParam Function
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
237
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
238 HiLink javaScriptString String
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
239 HiLink javaScriptRegexpString String
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
240 HiLink javaScriptTemplateString String
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
241
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
242 HiLink javaScriptNumber Number
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
243 HiLink javaScriptFloat Number
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
244
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
245 HiLink javaScriptGlobal Constant
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
246 HiLink javaScriptCharacter Character
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
247 HiLink javaScriptPrototype Type
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
248 HiLink javaScriptConditional Conditional
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
249 HiLink javaScriptBranch Conditional
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
250 HiLink javaScriptIdentifier Identifier
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
251 HiLink javaScriptRepeat Repeat
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
252 HiLink javaScriptStatement Statement
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
253 HiLink javaScriptMessage Keyword
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
254 HiLink javaScriptReserved Keyword
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
255 HiLink javaScriptOperator Operator
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
256 HiLink javaScriptNull Type
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
257 HiLink javaScriptBoolean Boolean
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
258 HiLink javaScriptLabel Label
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
259 HiLink javaScriptSpecial Special
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
260 HiLink javaScriptSource Special
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
261 HiLink javaScriptGlobalObjects Special
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
262 HiLink javaScriptExceptions Special
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
263
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
264 HiLink javaScriptDeprecated Exception
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
265 HiLink javaScriptError Error
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
266 HiLink javaScriptParensError Error
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
267 HiLink javaScriptParensErrA Error
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
268 HiLink javaScriptParensErrB Error
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
269 HiLink javaScriptParensErrC Error
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
270 HiLink javaScriptDomErrNo Error
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
271
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
272 HiLink javaScriptDomNodeConsts Constant
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
273 HiLink javaScriptDomElemAttrs Label
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
274 HiLink javaScriptDomElemFuncs Type
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
275
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
276 HiLink javaScriptWebAPI Type
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
277
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
278 HiLink javaScriptHtmlElemAttrs Label
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
279 HiLink javaScriptHtmlElemFuncs Type
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
280
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
281 HiLink javaScriptCssStyles Type
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
282
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
283 HiLink javaScriptBrowserObjects Constant
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
284
629
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
285 HiLink javaScriptLocalStorageObjects Constant
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
286 HiLink javaScriptLocalStorageMethods Type
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
287
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
288 HiLink javaScriptFetchAPIObjects Constant
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
289 HiLink javaScriptFetchAPIMethods Type
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
290 HiLink javaScriptFetchAPIProperties Label
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
291
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
292 HiLink javaScriptJSONObject Constant
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
293 HiLink javaScriptJSONMethods Type
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
294
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
295 HiLink javaScriptDOMObjects Constant
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
296 HiLink javaScriptDOMMethods Type
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
297 HiLink javaScriptDOMProperties Label
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
298
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
299 HiLink javaScriptAjaxObjects Constant
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
300 HiLink javaScriptAjaxMethods Type
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
301 HiLink javaScriptAjaxProperties Label
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
302
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
303 HiLink javaScriptFuncKeyword Function
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
304 HiLink javaScriptFuncDef PreProc
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
305 HiLink javaScriptFuncExp Title
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
306 HiLink javaScriptFuncArg Special
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
307 HiLink javaScriptFuncComma Operator
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
308 HiLink javaScriptFuncEq Operator
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
309
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
310 HiLink javaScriptHtmlEvents Constant
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
311 HiLink javaScriptHtmlElemProperties Label
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
312
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
313 HiLink javaScriptEventListenerKeywords Type
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
314
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
315 HiLink javaScriptPropietaryObjects Constant
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
316
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
317 delcommand HiLink
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
318 endif
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
319 " end Highlight links }}}
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
320
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
321 " Define the htmlJavaScript for HTML syntax html.vim
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
322 "syntax clear htmlJavaScript
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
323 "syntax clear javaScriptExpression
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
324 syntax cluster htmlJavaScript contains=@javaScriptAll,javaScriptBracket,javaScriptParen,javaScriptBlock,javaScriptParenError
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
325 syntax cluster javaScriptExpression contains=@javaScriptAll,javaScriptBracket,javaScriptParen,javaScriptBlock,javaScriptParenError,@htmlPreproc
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
326
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
327 let b:current_syntax = "javascript"
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
328 if main_syntax == 'javascript'
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
329 unlet main_syntax
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
330 endif
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
331 syntax region jsInJsdocExample matchgroup=Snip start="^\s*\* @example" end="\(^\s*\* [^[:space:]]\)\@=" containedin=@javaScriptComment contains=@javaScriptAll
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
332 hi link Snip SpecialComment