annotate vendor/vim-syntax/typescript.vim @ 658:35c26d9dcaa7

Upload file for 0paste alias
author nanaya <me@nanaya.pro>
date Sun, 28 Nov 2021 20:05:47 +0900
parents 5bd223d5a97f
children 2febdacae5b4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
620
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
1 " Vim syntax file
647
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
2 " Language: typescript
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
3 " Author: MicroSoft Open Technologies Inc.
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
4 " Version: 0.1
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
5 " Credits: Zhao Yi, Claudio Fleiner, Scott Shattuck, Jose Elera Campana
620
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
6
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
7 if !exists("main_syntax")
647
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
8 if version < 600
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
9 syntax clear
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
10 elseif exists("b:current_syntax")
620
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
11 finish
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
12 endif
647
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
13 let main_syntax = "typescript"
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
14 endif
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
15
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
16 " Drop fold if it set but vim doesn't support it.
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
17 if version < 600 && exists("typescript_fold")
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
18 unlet typescript_fold
620
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
19 endif
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
20
647
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
21 "" dollar sign is permitted anywhere in an identifier
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
22 setlocal iskeyword+=$
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
23
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
24 syntax sync fromstart
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
25
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
26 "" syntax coloring for Node.js shebang line
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
27 syn match shebang "^#!.*/bin/env\s\+node\>"
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
28 hi link shebang Comment
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
29
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
30 "" typescript comments"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
31 syn keyword typescriptCommentTodo TODO FIXME XXX TBD contained
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
32 syn match typescriptLineComment "\/\/.*" contains=@Spell,typescriptCommentTodo,typescriptRef
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
33 syn match typescriptRefComment /\/\/\/<\(reference\|amd-\(dependency\|module\)\)\s\+.*\/>$/ contains=typescriptRefD,typescriptRefS
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
34 syn region typescriptRefD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
35 syn region typescriptRefS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
36
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
37 syn match typescriptCommentSkip "^[ \t]*\*\($\|[ \t]\+\)"
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
38 syn region typescriptComment start="/\*" end="\*/" contains=@Spell,typescriptCommentTodo extend
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
39 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
40 "" JSDoc support start"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
41 if !exists("typescript_ignore_typescriptdoc")
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
42 syntax case ignore
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
43
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
44 " syntax coloring for JSDoc comments (HTML)
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
45 "unlet b:current_syntax
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
46
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
47 syntax region typescriptDocComment start="/\*\*\s*$" end="\*/" contains=typescriptDocTags,typescriptCommentTodo,typescriptCvsTag,@typescriptHtml,@Spell fold extend
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
48 syntax match typescriptDocTags contained "@\(param\|argument\|requires\|exception\|throws\|type\|class\|extends\|see\|link\|member\|module\|method\|title\|namespace\|optional\|default\|base\|file\|returns\=\)\>" nextgroup=typescriptDocParam,typescriptDocSeeTag skipwhite
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
49 syntax match typescriptDocTags contained "@\(beta\|deprecated\|description\|fileoverview\|author\|license\|version\|constructor\|private\|protected\|final\|ignore\|addon\|exec\)\>"
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
50 syntax match typescriptDocParam contained "\%(#\|\w\|\.\|:\|\/\)\+"
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
51 syntax region typescriptDocSeeTag contained matchgroup=typescriptDocSeeTag start="{" end="}" contains=typescriptDocTags
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
52
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
53 syntax case match
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
54 endif "" JSDoc end
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
55 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
56 syntax case match
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
57
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
58 "" Syntax in the typescript code"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
59 syn match typescriptSpecial "\\\d\d\d\|\\x\x\{2\}\|\\u\x\{4\}" contained containedin=typescriptStringD,typescriptStringS,typescriptStringB display
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
60 syn region typescriptStringD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ contains=typescriptSpecial,@htmlPreproc extend
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
61 syn region typescriptStringS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ contains=typescriptSpecial,@htmlPreproc extend
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
62 syn region typescriptStringB start=+`+ skip=+\\\\\|\\`+ end=+`+ contains=typescriptInterpolation,typescriptSpecial,@htmlPreproc extend
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
63
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
64 syn region typescriptInterpolation matchgroup=typescriptInterpolationDelimiter
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
65 \ start=/${/ end=/}/ contained
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
66 \ contains=@typescriptExpression
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
67
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
68 syn match typescriptNumber "-\=\<\d[0-9_]*L\=\>" display
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
69 syn match typescriptNumber "-\=\<0[xX][0-9a-fA-F][0-9a-fA-F_]*\>" display
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
70 syn match typescriptNumber "-\=\<0[bB][01][01_]*\>" display
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
71 syn match typescriptNumber "-\=\<0[oO]\o[0-7_]*\>" display
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
72 syn region typescriptRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gimsuy]\{0,2\}\s*$+ end=+/[gimsuy]\{0,2\}\s*[;.,)\]}]+me=e-1 contains=@htmlPreproc oneline
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
73 " syntax match typescriptSpecial "\\\d\d\d\|\\x\x\{2\}\|\\u\x\{4\}\|\\."
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
74 " syntax region typescriptStringD start=+"+ skip=+\\\\\|\\$"+ end=+"+ contains=typescriptSpecial,@htmlPreproc
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
75 " syntax region typescriptStringS start=+'+ skip=+\\\\\|\\$'+ end=+'+ contains=typescriptSpecial,@htmlPreproc
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
76 " syntax region typescriptRegexpString start=+/\(\*\|/\)\@!+ skip=+\\\\\|\\/+ end=+/[gimsuy]\{,3}+ contains=typescriptSpecial,@htmlPreproc oneline
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
77 " syntax match typescriptNumber /\<-\=\d\+L\=\>\|\<0[xX]\x\+\>/
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
78 syntax match typescriptFloat /\<-\=\%(\d[0-9_]*\.\d[0-9_]*\|\d[0-9_]*\.\|\.\d[0-9]*\)\%([eE][+-]\=\d[0-9_]*\)\=\>/
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
79 " syntax match typescriptLabel /\(?\s*\)\@<!\<\w\+\(\s*:\)\@=/
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
80
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
81 syn match typescriptDecorators /@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a-zA-Z0-9]*\>/
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
82 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
83 "" typescript Prototype"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
84 syntax keyword typescriptPrototype contained prototype
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
85 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
86 " DOM, Browser and Ajax Support {{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
87 """"""""""""""""""""""""
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
88 if get(g:, 'typescript_ignore_browserwords', 0)
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
89 syntax keyword typescriptBrowserObjects window navigator screen history location
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
90
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
91 syntax keyword typescriptDOMObjects document event HTMLElement Anchor Area Base Body Button Form Frame Frameset Image Link Meta Option Select Style Table TableCell TableRow Textarea
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
92 syntax keyword typescriptDOMMethods contained 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
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
93 syntax keyword typescriptDOMProperties contained nodeName nodeValue nodeType parentNode childNodes firstChild lastChild previousSibling nextSibling attributes ownerDocument namespaceURI prefix localName tagName
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
94
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
95 syntax keyword typescriptAjaxObjects XMLHttpRequest
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
96 syntax keyword typescriptAjaxProperties contained readyState responseText responseXML statusText
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
97 syntax keyword typescriptAjaxMethods contained onreadystatechange abort getAllResponseHeaders getResponseHeader open send setRequestHeader
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
98
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
99 syntax keyword typescriptPropietaryObjects ActiveXObject
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
100 syntax keyword typescriptPropietaryMethods contained attachEvent detachEvent cancelBubble returnValue
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
101
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
102 syntax keyword typescriptHtmlElemProperties contained className clientHeight clientLeft clientTop clientWidth dir href id innerHTML lang length offsetHeight offsetLeft offsetParent offsetTop offsetWidth scrollHeight scrollLeft scrollTop scrollWidth style tabIndex target title
620
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
103
647
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
104 syntax keyword typescriptEventListenerKeywords contained blur click focus mouseover mouseout load item
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
105
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
106 syntax keyword typescriptEventListenerMethods contained scrollIntoView addEventListener dispatchEvent removeEventListener preventDefault stopPropagation
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
107 endif
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
108 " }}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
109 "" Programm Keywords"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
110 syntax keyword typescriptSource import export from as
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
111 syntax keyword typescriptIdentifier arguments this void
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
112 syntax keyword typescriptStorageClass let var const
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
113 syntax keyword typescriptOperator delete new instanceof typeof
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
114 syntax keyword typescriptBoolean true false
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
115 syntax keyword typescriptNull null undefined
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
116 syntax keyword typescriptMessage alert confirm prompt status
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
117 syntax keyword typescriptGlobal self top parent
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
118 syntax keyword typescriptDeprecated escape unescape all applets alinkColor bgColor fgColor linkColor vlinkColor xmlEncoding
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
119 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
120 "" Statement Keywords"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
121 syntax keyword typescriptConditional if else switch
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
122 syntax keyword typescriptRepeat do while for in of
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
123 syntax keyword typescriptBranch break continue yield await
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
124 syntax keyword typescriptLabel case default async readonly
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
125 syntax keyword typescriptStatement return with
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
126
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
127 syntax keyword typescriptGlobalObjects Array Boolean Date Function Infinity JSON Math Number NaN Object Packages RegExp String Symbol netscape ArrayBuffer BigInt64Array BigUint64Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray Buffer Collator DataView DateTimeFormat Intl Iterator Map Set WeakMap WeakSet NumberFormat ParallelArray Promise Proxy Reflect Uint8ClampedArray WebAssembly console document fetch window
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
128 syntax keyword typescriptGlobalNodeObjects module exports global process __dirname __filename
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
129
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
130 syntax keyword typescriptExceptions try catch throw finally Error EvalError RangeError ReferenceError SyntaxError TypeError URIError
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
131
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
132 syntax keyword typescriptReserved constructor declare as interface module abstract enum int short 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 type namespace from get set keyof
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
133 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
134 "" typescript/DOM/HTML/CSS specified things"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
135
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
136 " typescript Objects"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
137 syn match typescriptFunction "(super\s*|constructor\s*)" contained nextgroup=typescriptVars
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
138 syn region typescriptVars start="(" end=")" contained contains=typescriptParameters transparent keepend
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
139 syn match typescriptParameters "([a-zA-Z0-9_?.$][\w?.$]*)\s*:\s*([a-zA-Z0-9_?.$][\w?.$]*)" contained skipwhite
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
140 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
141 " DOM2 Objects"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
142 syntax keyword typescriptType DOMImplementation DocumentFragment Node NodeList NamedNodeMap CharacterData Attr Element Text Comment CDATASection DocumentType Notation Entity EntityReference ProcessingInstruction void any string boolean number symbol never object unknown
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
143 syntax keyword typescriptExceptions DOMException
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
144 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
145 " DOM2 CONSTANT"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
146 syntax keyword typescriptDomErrNo 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
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
147 syntax keyword typescriptDomNodeConsts 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
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
148 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
149 " HTML events and internal variables"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
150 syntax case ignore
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
151 syntax keyword typescriptHtmlEvents onblur onclick oncontextmenu ondblclick onfocus onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup onresize onload onsubmit
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
152 syntax case match
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
153 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
154
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
155 " Follow stuff should be highligh within a special context
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
156 " While it can't be handled with context depended with Regex based highlight
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
157 " So, turn it off by default
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
158 if exists("typescript_enable_domhtmlcss")
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
159
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
160 " DOM2 things"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
161 syntax match typescriptDomElemAttrs contained /\%(nodeName\|nodeValue\|nodeType\|parentNode\|childNodes\|firstChild\|lastChild\|previousSibling\|nextSibling\|attributes\|ownerDocument\|namespaceURI\|prefix\|localName\|tagName\)\>/
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
162 syntax match typescriptDomElemFuncs 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=typescriptParen skipwhite
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
163 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
164 " HTML things"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
165 syntax match typescriptHtmlElemAttrs contained /\%(className\|clientHeight\|clientLeft\|clientTop\|clientWidth\|dir\|id\|innerHTML\|lang\|length\|offsetHeight\|offsetLeft\|offsetParent\|offsetTop\|offsetWidth\|scrollHeight\|scrollLeft\|scrollTop\|scrollWidth\|style\|tabIndex\|title\)\>/
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
166 syntax match typescriptHtmlElemFuncs contained /\%(blur\|click\|focus\|scrollIntoView\|addEventListener\|dispatchEvent\|removeEventListener\|item\)\>/ nextgroup=typescriptParen skipwhite
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
167 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
168 " CSS Styles in typescript"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
169 syntax keyword typescriptCssStyles contained color font fontFamily fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontWeight letterSpacing lineBreak lineHeight quotes rubyAlign rubyOverhang rubyPosition
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
170 syntax keyword typescriptCssStyles contained textAlign textAlignLast textAutospace textDecoration textIndent textJustify textJustifyTrim textKashidaSpace textOverflowW6 textShadow textTransform textUnderlinePosition
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
171 syntax keyword typescriptCssStyles contained unicodeBidi whiteSpace wordBreak wordSpacing wordWrap writingMode
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
172 syntax keyword typescriptCssStyles contained bottom height left position right top width zIndex
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
173 syntax keyword typescriptCssStyles 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
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
174 syntax keyword typescriptCssStyles contained margin marginBottom marginLeft marginRight marginTop outline outlineColor outlineStyle outlineWidth padding paddingBottom paddingLeft paddingRight paddingTop
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
175 syntax keyword typescriptCssStyles contained listStyle listStyleImage listStylePosition listStyleType
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
176 syntax keyword typescriptCssStyles contained background backgroundAttachment backgroundColor backgroundImage backgroundPosition backgroundPositionX backgroundPositionY backgroundRepeat
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
177 syntax keyword typescriptCssStyles contained clear clip clipBottom clipLeft clipRight clipTop content counterIncrement counterReset cssFloat cursor direction display filter layoutGrid layoutGridChar layoutGridLine layoutGridMode layoutGridType
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
178 syntax keyword typescriptCssStyles contained marks maxHeight maxWidth minHeight minWidth opacity MozOpacity overflow overflowX overflowY verticalAlign visibility zoom cssText
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
179 syntax keyword typescriptCssStyles contained scrollbar3dLightColor scrollbarArrowColor scrollbarBaseColor scrollbarDarkShadowColor scrollbarFaceColor scrollbarHighlightColor scrollbarShadowColor scrollbarTrackColor
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
180 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
181 endif "DOM/HTML/CSS
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
182
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
183 " Highlight ways"{{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
184 syntax match typescriptDotNotation "\." nextgroup=typescriptPrototype,typescriptDomElemAttrs,typescriptDomElemFuncs,typescriptDOMMethods,typescriptDOMProperties,typescriptHtmlElemAttrs,typescriptHtmlElemFuncs,typescriptHtmlElemProperties,typescriptAjaxProperties,typescriptAjaxMethods,typescriptPropietaryMethods,typescriptEventListenerMethods skipwhite skipnl
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
185 syntax match typescriptDotNotation "\.style\." nextgroup=typescriptCssStyles
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
186 "}}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
187
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
188 "" end DOM/HTML/CSS specified things""}}}
620
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
189
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
190
647
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
191 "" Code blocks
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
192 syntax cluster typescriptAll contains=typescriptComment,typescriptLineComment,typescriptDocComment,typescriptStringD,typescriptStringS,typescriptStringB,typescriptRegexpString,typescriptNumber,typescriptFloat,typescriptDecorators,typescriptLabel,typescriptSource,typescriptType,typescriptOperator,typescriptBoolean,typescriptNull,typescriptFuncKeyword,typescriptConditional,typescriptGlobal,typescriptRepeat,typescriptBranch,typescriptStatement,typescriptGlobalObjects,typescriptMessage,typescriptIdentifier,typescriptStorageClass,typescriptExceptions,typescriptReserved,typescriptDeprecated,typescriptDomErrNo,typescriptDomNodeConsts,typescriptHtmlEvents,typescriptDotNotation,typescriptBrowserObjects,typescriptDOMObjects,typescriptAjaxObjects,typescriptPropietaryObjects,typescriptDOMMethods,typescriptHtmlElemProperties,typescriptDOMProperties,typescriptEventListenerKeywords,typescriptEventListenerMethods,typescriptAjaxProperties,typescriptAjaxMethods,typescriptFuncArg,typescriptGlobalNodeObjects
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
193
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
194 if main_syntax == "typescript"
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
195 syntax sync clear
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
196 syntax sync ccomment typescriptComment minlines=200
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
197 " syntax sync match typescriptHighlight grouphere typescriptBlock /{/
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
198 endif
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
199
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
200 syntax keyword typescriptFuncKeyword function
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
201 "syntax region typescriptFuncDef start="function" end="\(.*\)" contains=typescriptFuncKeyword,typescriptFuncArg keepend
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
202 "syntax match typescriptFuncArg "\(([^()]*)\)" contains=typescriptParens,typescriptFuncComma contained
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
203 "syntax match typescriptFuncComma /,/ contained
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
204 " syntax region typescriptFuncBlock contained matchgroup=typescriptFuncBlock start="{" end="}" contains=@typescriptAll,typescriptParensErrA,typescriptParensErrB,typescriptParen,typescriptBracket,typescriptBlock fold
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
205
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
206 syn match typescriptBraces "[{}\[\]]"
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
207 syn match typescriptParens "[()]"
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
208 syn match typescriptEndColons "[;,]"
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
209 syn match typescriptLogicSymbols "\(&&\)\|\(||\)\|\(!\)"
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
210 syn match typescriptOpSymbols "=\{1,3}\|!==\|!=\|<\|>\|>=\|<=\|++\|+=\|--\|-="
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
211
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
212 " typescriptFold Function {{{
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
213
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
214 " function! typescriptFold()
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
215
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
216 " skip curly braces inside RegEx's and comments
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
217 syn region foldBraces start=/{/ skip=/\(\/\/.*\)\|\(\/.*\/\)/ end=/}/ transparent fold keepend extend
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
218
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
219 " setl foldtext=FoldText()
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
220 " endfunction
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
221
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
222 " au FileType typescript call typescriptFold()
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
223
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
224 " }}}
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
225
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
226 " Define the default highlighting.
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
227 " For version 5.7 and earlier: only when not done already by this script
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
228 " For version 5.8 and later: only when an item doesn't have highlighting yet
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
229 " For version 8.1.1486 and later: only when not done already by this script (need to override vim's new typescript support)
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
230 if version >= 508 || !exists("did_typescript_syn_inits")
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
231 if version < 508 || has('patch-8.1.1486')
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
232 let did_typescript_syn_inits = 1
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
233 command -nargs=+ HiLink hi link <args>
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
234 else
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
235 command -nargs=+ HiLink hi def link <args>
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
236 endif
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
237
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
238 "typescript highlighting
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
239 HiLink typescriptParameters Operator
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
240 HiLink typescriptSuperBlock Operator
620
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
241
647
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
242 HiLink typescriptEndColons Exception
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
243 HiLink typescriptOpSymbols Operator
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
244 HiLink typescriptLogicSymbols Boolean
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
245 HiLink typescriptBraces Function
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
246 HiLink typescriptParens Operator
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
247 HiLink typescriptComment Comment
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
248 HiLink typescriptLineComment Comment
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
249 HiLink typescriptRefComment Include
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
250 HiLink typescriptRefS String
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
251 HiLink typescriptRefD String
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
252 HiLink typescriptDocComment Comment
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
253 HiLink typescriptCommentTodo Todo
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
254 HiLink typescriptCvsTag Function
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
255 HiLink typescriptDocTags Special
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
256 HiLink typescriptDocSeeTag Function
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
257 HiLink typescriptDocParam Function
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
258 HiLink typescriptStringS String
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
259 HiLink typescriptStringD String
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
260 HiLink typescriptStringB String
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
261 HiLink typescriptInterpolationDelimiter Delimiter
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
262 HiLink typescriptRegexpString String
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
263 HiLink typescriptGlobal Constant
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
264 HiLink typescriptCharacter Character
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
265 HiLink typescriptPrototype Type
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
266 HiLink typescriptConditional Conditional
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
267 HiLink typescriptBranch Conditional
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
268 HiLink typescriptIdentifier Identifier
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
269 HiLink typescriptStorageClass StorageClass
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
270 HiLink typescriptRepeat Repeat
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
271 HiLink typescriptStatement Statement
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
272 HiLink typescriptFuncKeyword Keyword
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
273 HiLink typescriptMessage Keyword
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
274 HiLink typescriptDeprecated Exception
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
275 HiLink typescriptError Error
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
276 HiLink typescriptParensError Error
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
277 HiLink typescriptParensErrA Error
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
278 HiLink typescriptParensErrB Error
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
279 HiLink typescriptParensErrC Error
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
280 HiLink typescriptReserved Keyword
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
281 HiLink typescriptOperator Operator
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
282 HiLink typescriptType Type
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
283 HiLink typescriptNull Type
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
284 HiLink typescriptNumber Number
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
285 HiLink typescriptFloat Number
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
286 HiLink typescriptDecorators Special
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
287 HiLink typescriptBoolean Boolean
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
288 HiLink typescriptLabel Label
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
289 HiLink typescriptSpecial Special
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
290 HiLink typescriptSource Special
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
291 HiLink typescriptGlobalObjects Special
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
292 HiLink typescriptGlobalNodeObjects Special
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
293 HiLink typescriptExceptions Special
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
294
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
295 HiLink typescriptDomErrNo Constant
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
296 HiLink typescriptDomNodeConsts Constant
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
297 HiLink typescriptDomElemAttrs Label
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
298 HiLink typescriptDomElemFuncs PreProc
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
299
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
300 HiLink typescriptHtmlElemAttrs Label
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
301 HiLink typescriptHtmlElemFuncs PreProc
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
302
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
303 HiLink typescriptCssStyles Label
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
304
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
305 " Ajax Highlighting
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
306 HiLink typescriptBrowserObjects Constant
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
307
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
308 HiLink typescriptDOMObjects Constant
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
309 HiLink typescriptDOMMethods Function
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
310 HiLink typescriptDOMProperties Special
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
311
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
312 HiLink typescriptAjaxObjects Constant
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
313 HiLink typescriptAjaxMethods Function
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
314 HiLink typescriptAjaxProperties Special
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
315
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
316 HiLink typescriptFuncDef Title
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
317 HiLink typescriptFuncArg Special
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
318 HiLink typescriptFuncComma Operator
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
319
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
320 HiLink typescriptHtmlEvents Special
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
321 HiLink typescriptHtmlElemProperties Special
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
322
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
323 HiLink typescriptEventListenerKeywords Keyword
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
324
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
325 HiLink typescriptNumber Number
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
326 HiLink typescriptPropietaryObjects Constant
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
327
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
328 delcommand HiLink
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
329 endif
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
330
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
331 " Define the htmltypescript for HTML syntax html.vim
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
332 "syntax clear htmltypescript
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
333 "syntax clear typescriptExpression
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
334 syntax cluster htmltypescript contains=@typescriptAll,typescriptBracket,typescriptParen,typescriptBlock,typescriptParenError
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
335 syntax cluster typescriptExpression contains=@typescriptAll,typescriptBracket,typescriptParen,typescriptBlock,typescriptParenError,@htmlPreproc
620
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
336
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
337 let b:current_syntax = "typescript"
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
338 if main_syntax == 'typescript'
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
339 unlet main_syntax
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
340 endif
7ac088ee101a Add typescript vim syntax
nanaya <me@nanaya.pro>
parents:
diff changeset
341
647
5bd223d5a97f Use better typescript syntax
nanaya <me@nanaya.pro>
parents: 634
diff changeset
342 " vim: ts=4