Browse Source

upgrading package: vim 8.1.2424 -> 8.2.0

master
parent
commit
05a822199e
  1. 647
      vim/vim.patch
  2. 2430
      vim/vim.spec

647
vim/vim.patch

@ -1,9 +1,6 @@
The following patch adjust the RPM .spec syntax highlighting
a little bit to better highlight OpenPKG RPM .spec files.
Index: vim81/runtime/syntax/spec.vim
--- vim81/runtime/syntax/spec.vim.orig 2016-08-31 21:53:08.000000000 +0200
+++ vim81/runtime/syntax/spec.vim 2016-09-12 19:55:57.279496833 +0200
Index: vim82/runtime/syntax/spec.vim
--- vim82/runtime/syntax/spec.vim.orig 2019-09-27 18:45:49.000000000 +0200
+++ vim82/runtime/syntax/spec.vim 2019-12-12 21:17:06.919502000 +0100
@@ -80,7 +80,7 @@
"One line macros - valid in all ScriptAreas
@ -49,641 +46,3 @@ Index: vim81/runtime/syntax/spec.vim
syn sync match specIfSync groupthere specIf "%endIf"
syn sync match shForSync grouphere shFor "\<for\>"
syn sync match shForSync groupthere shFor "\<in\>"
-----------------------------------------------------------------------------
Activate additional language files.
Index: vim81/runtime/filetype.vim
--- vim81/runtime/filetype.vim.orig 2013-08-03 17:50:05.000000000 +0200
+++ vim81/runtime/filetype.vim 2013-12-27 17:08:28.997948852 +0100
@@ -2374,7 +2374,7 @@
au BufNewFile,BufRead *.csproj,*.csproj.user setf xml
" Qt Linguist translation source and Qt User Interface Files are XML
-au BufNewFile,BufRead *.ts,*.ui setf xml
+au BufNewFile,BufRead *.ui setf xml
" TPM's are RDF-based descriptions of TeX packages (Nikolai Weibull)
au BufNewFile,BufRead *.tpm setf xml
@@ -2447,6 +2447,15 @@
" Z80 assembler asz80
au BufNewFile,BufRead *.z8a setf z8a
+" Scala
+au BufNewFile,BufRead *.scala setf scala
+
+" Markdown
+au BufNewFile,BufRead *.mkd setf mkd
+
+" TypeScript
+au BufNewFile,BufRead *.ts setf typescript
+
augroup END
-----------------------------------------------------------------------------
Markdown Language Support
http://plasticboy.com/markdown-vim-mode/
http://github.com/plasticboy/vim-markdown/
Index: vim81/runtime/syntax/mkd.vim
--- vim81/runtime/syntax/mkd.vim.orig 2010-08-10 12:57:36.000000000 +0200
+++ vim81/runtime/syntax/mkd.vim 2010-08-10 12:57:41.000000000 +0200
@@ -0,0 +1,104 @@
+" Vim syntax file
+" Language: Markdown
+" Maintainer: Ben Williams <benw@plasticboy.com>
+" URL: http://plasticboy.com/markdown-vim-mode/
+" Version: 9
+" Last Change: 2009 May 18
+" Remark: Uses HTML syntax file
+" Remark: I don't do anything with angle brackets (<>) because that would too easily
+" easily conflict with HTML syntax
+" TODO: Handle stuff contained within stuff (e.g. headings within blockquotes)
+
+
+" Read the HTML syntax to start with
+if version < 600
+ so <sfile>:p:h/html.vim
+else
+ runtime! syntax/html.vim
+ unlet b:current_syntax
+endif
+
+if version < 600
+ syntax clear
+elseif exists("b:current_syntax")
+ finish
+endif
+
+" don't use standard HiLink, it will not work with included syntax files
+if version < 508
+ command! -nargs=+ HtmlHiLink hi link <args>
+else
+ command! -nargs=+ HtmlHiLink hi def link <args>
+endif
+
+syn spell toplevel
+syn case ignore
+syn sync linebreaks=1
+
+"additions to HTML groups
+" syn region htmlBold start=/\\\@<!\(^\|\A\)\@=\*\@<!\*\*\*\@!/ end=/\\\@<!\*\@<!\*\*\*\@!\($\|\A\)\@=/ contains=@Spell,htmlItalic
+" syn region htmlItalic start=/\\\@<!\(^\|\A\)\@=\*\@<!\*\*\@!/ end=/\\\@<!\*\@<!\*\*\@!\($\|\A\)\@=/ contains=htmlBold,@Spell
+" syn region htmlBold start=/\\\@<!\(^\|\A\)\@=_\@<!___\@!/ end=/\\\@<!_\@<!___\@!\($\|\A\)\@=/ contains=htmlItalic,@Spell
+" syn region htmlItalic start=/\\\@<!\(^\|\A\)\@=_\@<!__\@!/ end=/\\\@<!_\@<!__\@!\($\|\A\)\@=/ contains=htmlBold,@Spell
+
+" [link](URL) | [link][id] | [link][]
+syn region mkdLink matchgroup=mkdDelimiter start="\!\?\[" end="\]\ze\s*[[(]" contains=@Spell nextgroup=mkdURL,mkdID skipwhite oneline
+syn region mkdID matchgroup=mkdDelimiter start="\[" end="\]" contained
+syn region mkdURL matchgroup=mkdDelimiter start="(" end=")" contained
+
+" Link definitions: [id]: URL (Optional Title)
+" TODO handle automatic links without colliding with htmlTag (<URL>)
+syn region mkdLinkDef matchgroup=mkdDelimiter start="^ \{,3}\zs\[" end="]:" oneline nextgroup=mkdLinkDefTarget skipwhite
+syn region mkdLinkDefTarget start="<\?\zs\S" excludenl end="\ze[>[:space:]\n]" contained nextgroup=mkdLinkTitle,mkdLinkDef skipwhite skipnl oneline
+syn region mkdLinkTitle matchgroup=mkdDelimiter start=+"+ end=+"+ contained
+syn region mkdLinkTitle matchgroup=mkdDelimiter start=+'+ end=+'+ contained
+syn region mkdLinkTitle matchgroup=mkdDelimiter start=+(+ end=+)+ contained
+
+"define Markdown groups
+syn match mkdLineContinue ".$" contained
+syn match mkdRule /^\s*\*\s\{0,1}\*\s\{0,1}\*$/
+syn match mkdRule /^\s*-\s\{0,1}-\s\{0,1}-$/
+syn match mkdRule /^\s*_\s\{0,1}_\s\{0,1}_$/
+syn match mkdRule /^\s*-\{3,}$/
+syn match mkdRule /^\s*\*\{3,5}$/
+syn match mkdListItem "^\s*[-*+]\s\+"
+syn match mkdListItem "^\s*\d\+\.\s\+"
+syn match mkdCode /^\s*\n\(\(\s\{4,}[^ ]\|\t\+[^\t]\).*\n\)\+/
+syn match mkdLineBreak / \+$/
+syn region mkdCode start=/\\\@<!`/ end=/\\\@<!`/
+syn region mkdCode start=/\s*``[^`]*/ end=/[^`]*``\s*/
+syn region mkdBlockquote start=/^\s*>/ end=/$/ contains=mkdLineBreak,mkdLineContinue,@Spell
+syn region mkdCode start="<pre[^>]*>" end="</pre>"
+syn region mkdCode start="<code[^>]*>" end="</code>"
+
+"HTML headings
+syn region htmlH1 start="^\s*#" end="\($\|#\+\)" contains=@Spell
+syn region htmlH2 start="^\s*##" end="\($\|#\+\)" contains=@Spell
+syn region htmlH3 start="^\s*###" end="\($\|#\+\)" contains=@Spell
+syn region htmlH4 start="^\s*####" end="\($\|#\+\)" contains=@Spell
+syn region htmlH5 start="^\s*#####" end="\($\|#\+\)" contains=@Spell
+syn region htmlH6 start="^\s*######" end="\($\|#\+\)" contains=@Spell
+syn match htmlH1 /^.\+\n=\+$/ contains=@Spell
+syn match htmlH2 /^.\+\n-\+$/ contains=@Spell
+
+"highlighting for Markdown groups
+HtmlHiLink mkdString String
+HtmlHiLink mkdCode String
+HtmlHiLink mkdBlockquote Comment
+HtmlHiLink mkdLineContinue Comment
+HtmlHiLink mkdListItem Identifier
+HtmlHiLink mkdRule Identifier
+HtmlHiLink mkdLineBreak Todo
+HtmlHiLink mkdLink htmlLink
+HtmlHiLink mkdURL htmlString
+HtmlHiLink mkdID Identifier
+HtmlHiLink mkdLinkDef mkdID
+HtmlHiLink mkdLinkDefTarget mkdURL
+HtmlHiLink mkdLinkTitle htmlString
+
+HtmlHiLink mkdDelimiter Delimiter
+
+let b:current_syntax = "mkd"
+
+delcommand HtmlHiLink
+" vim: ts=8
-----------------------------------------------------------------------------
SCSS Language Support
http://scss-lang.com/
http://github.com/cakebaker/scss-syntax.vim/blob/master/syntax/scss.vim
Index: vim81/runtime/syntax/scss.vim
--- vim81/runtime/syntax/scss.vim.orig 2010-07-26 01:38:18.000000000 +0200
+++ vim81/runtime/syntax/scss.vim 2010-08-29 15:44:54.000000000 +0200
@@ -1,20 +1,87 @@
" Vim syntax file
-" Language: SCSS
-" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
-" Filenames: *.scss
-" Last Change: 2010 Jul 26
+" Language: SCSS (Sassy CSS)
+" Author: Daniel Hofstetter (daniel.hofstetter@42dh.com)
+" Inspired by the syntax files for sass and css. Thanks to the authors of
+" those files!
if exists("b:current_syntax")
finish
endif
-runtime! syntax/sass.vim
+runtime! syntax/css.vim
-syn match scssComment "//.*" contains=sassTodo,@Spell
-syn region scssComment start="/\*" end="\*/" contains=sassTodo,@Spell
+syn case ignore
-hi def link scssComment sassComment
+syn region scssDefinition transparent matchgroup=cssBraces start='{' end='}' contains=css.*Attr,css.*Prop,cssComment,cssValue.*,cssColor,cssUrl,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,scssDefinition,scssComment,scssIdChar,scssClassChar,scssAmpersand,scssVariable,scssInclude,scssExtend,scssDebug,scssWarn,@scssControl,scssInterpolation,scssNestedSelector
-let b:current_syntax = "scss"
+syn region scssInterpolation start="#{" end="}" contains=scssVariable
+
+syn match scssVariable "$[[:alnum:]_-]\+" nextgroup=scssVariableAssignment
+syn match scssVariableAssignment ":" contained nextgroup=scssVariableValue
+syn match scssVariableValue ".*;"me=e-1 contained contains=scssVariable,scssOperator,scssDefault "me=e-1 means that the last char of the pattern is not highlighted
+syn match scssMixin "^@mixin" nextgroup=scssMixinName
+syn match scssMixinName " [[:alnum:]_-]\+" contained nextgroup=scssDefinition
+syn match scssInclude "@include" nextgroup=scssMixinName
+syn match scssExtend "@extend .*[;}]"me=e-1 contains=cssTagName,scssIdChar,scssClassChar
+
+syn match scssColor "#[0-9A-Fa-f]\{3\}\>" contained
+syn match scssColor "#[0-9A-Fa-f]\{6\}\>" contained
+
+syn match scssIdChar "#[[:alnum:]_-]\@=" nextgroup=scssId contains=scssColor
+syn match scssId "[[:alnum:]_-]\+" contained
+syn match scssClassChar "\.[[:alnum:]_-]\@=" nextgroup=scssClass
+syn match scssClass "[[:alnum:]_-]\+" contained
+syn match scssAmpersand "&" nextgroup=cssPseudoClass
+
+syn match scssOperator "+" contained
+syn match scssOperator "-" contained
+syn match scssOperator "/" contained
+syn match scssOperator "*" contained
+
+syn match scssNestedSelector "[^/]* {"me=e-1 contained contains=cssTagName,scssIdChar,scssClassChar,scssAmpersand,scssVariable,scssMixin,@scssControl,scssInterpolation,scssNestedProperty
+syn match scssNestedProperty "[[:alnum:]]\+:"me=e-1 contained
+
+syn match scssDebug "@debug"
+syn match scssWarn "@warn"
+syn match scssDefault "!default" contained
+
+syn match scssIf "@if"
+syn match scssElse "@else"
+syn match scssElseIf "@else if"
+syn match scssWhile "@while"
+syn match scssFor "@for" nextgroup=scssVariable
+syn match scssFrom " from "
+syn match scssTo " to "
+syn match scssThrough " through "
+syn cluster scssControl contains=scssIf,scssElse,scssElseIf,scssWhile,scssFor,scssFrom,scssTo,scssThrough
+
+syn match scssComment "//.*$" contains=@Spell
+
+hi def link scssVariable Identifier
+hi def link scssVariableValue Constant
+hi def link scssMixin PreProc
+hi def link scssMixinName Function
+hi def link scssInclude PreProc
+hi def link scssExtend PreProc
+hi def link scssComment Comment
+hi def link scssColor Constant
+hi def link scssIdChar Special
+hi def link scssClassChar Special
+hi def link scssId Identifier
+hi def link scssClass Identifier
+hi def link scssAmpersand Character
+hi def link scssNestedProperty Type
+hi def link scssDebug Debug
+hi def link scssWarn Debug
+hi def link scssDefault Special
+hi def link scssIf Conditional
+hi def link scssElse Conditional
+hi def link scssElseIf Conditional
+hi def link scssWhile Repeat
+hi def link scssFor Repeat
+hi def link scssFrom Repeat
+hi def link scssTo Repeat
+hi def link scssThrough Repeat
+hi def link scssInterpolation Delimiter
-" vim:set sw=2:
+let b:current_syntax = "scss"
-----------------------------------------------------------------------------
TypeScript Language Support
http://blogs.msdn.com/b/interoperability/archive/2012/10/01/sublime-text-vi-emacs-typescript-enabled.aspx
Index: vim81/runtime/syntax/typescript.vim
--- vim81/runtime/syntax/typescript.vim.orig 2012-12-01 12:27:01.000000000 +0100
+++ vim81/runtime/syntax/typescript.vim 2012-12-01 12:26:44.000000000 +0100
@@ -0,0 +1,321 @@
+" Vim syntax file
+" Language: TypeScript
+" Author: MicroSoft Open Technologies Inc.
+" Version: 0.1
+" Credits: Zhao Yi, Claudio Fleiner, Scott Shattuck, Jose Elera Campana
+
+if !exists("main_syntax")
+ if version < 600
+ syntax clear
+ elseif exists("b:current_syntax")
+ finish
+ endif
+ let main_syntax = "typescript"
+endif
+
+" Drop fold if it set but vim doesn't support it.
+if version < 600 && exists("typeScript_fold")
+ unlet typeScript_fold
+endif
+
+"" dollar sign is permitted anywhere in an identifier
+setlocal iskeyword+=$
+
+syntax sync fromstart
+
+"" syntax coloring for Node.js shebang line
+syn match shebang "^#!.*/bin/env\s\+node\>"
+hi link shebang Comment
+
+"" typeScript comments"{{{
+syn keyword typeScriptCommentTodo TODO FIXME XXX TBD contained
+syn match typeScriptLineComment "\/\/.*" contains=@Spell,typeScriptCommentTodo,typeScriptRef
+syn match typeScriptRef /\/\/\/<reference\s\+.*\/>$/ contains=typeScriptRefD,typeScriptRefS
+syn region typeScriptRefD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+
+syn region typeScriptRefS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+
+
+syn match typeScriptCommentSkip "^[ \t]*\*\($\|[ \t]\+\)"
+syn region typeScriptComment start="/\*" end="\*/" contains=@Spell,typeScriptCommentTodo
+"}}}
+"" JSDoc support start"{{{
+if !exists("typeScript_ignore_typeScriptdoc")
+ syntax case ignore
+
+" syntax coloring for JSDoc comments (HTML)
+"unlet b:current_syntax
+
+ syntax region typeScriptDocComment matchgroup=typeScriptComment start="/\*\*\s*$" end="\*/" contains=typeScriptDocTags,typeScriptCommentTodo,typeScriptCvsTag,@typeScriptHtml,@Spell fold
+ syntax match typeScriptDocTags contained "@\(param\|argument\|requires\|exception\|throws\|type\|class\|extends\|see\|link\|member\|module\|method\|title\|namespace\|optional\|default\|base\|file\)\>" nextgroup=typeScriptDocParam,typeScriptDocSeeTag skipwhite
+ syntax match typeScriptDocTags contained "@\(beta\|deprecated\|description\|fileoverview\|author\|license\|version\|returns\=\|constructor\|private\|protected\|final\|ignore\|addon\|exec\)\>"
+ syntax match typeScriptDocParam contained "\%(#\|\w\|\.\|:\|\/\)\+"
+ syntax region typeScriptDocSeeTag contained matchgroup=typeScriptDocSeeTag start="{" end="}" contains=typeScriptDocTags
+
+ syntax case match
+endif "" JSDoc end
+"}}}
+syntax case match
+
+"" Syntax in the typeScript code"{{{
+syn match typeScriptSpecial "\\\d\d\d\|\\."
+syn region typeScriptStringD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ contains=typeScriptSpecial,@htmlPreproc
+syn region typeScriptStringS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ contains=typeScriptSpecial,@htmlPreproc
+
+syn match typeScriptSpecialCharacter "'\\.'"
+syn match typeScriptNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
+syn region typeScriptRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gi]\{0,2\}\s*$+ end=+/[gi]\{0,2\}\s*[;.,)\]}]+me=e-1 contains=@htmlPreproc oneline
+" syntax match typeScriptSpecial "\\\d\d\d\|\\x\x\{2\}\|\\u\x\{4\}\|\\."
+" syntax region typeScriptStringD start=+"+ skip=+\\\\\|\\$"+ end=+"+ contains=typeScriptSpecial,@htmlPreproc
+" syntax region typeScriptStringS start=+'+ skip=+\\\\\|\\$'+ end=+'+ contains=typeScriptSpecial,@htmlPreproc
+" syntax region typeScriptRegexpString start=+/\(\*\|/\)\@!+ skip=+\\\\\|\\/+ end=+/[gim]\{,3}+ contains=typeScriptSpecial,@htmlPreproc oneline
+" syntax match typeScriptNumber /\<-\=\d\+L\=\>\|\<0[xX]\x\+\>/
+syntax match typeScriptFloat /\<-\=\%(\d\+\.\d\+\|\d\+\.\|\.\d\+\)\%([eE][+-]\=\d\+\)\=\>/
+" syntax match typeScriptLabel /\(?\s*\)\@<!\<\w\+\(\s*:\)\@=/
+"}}}
+"" typeScript Prototype"{{{
+syntax keyword typeScriptPrototype prototype
+"}}}
+" DOM, Browser and Ajax Support {{{
+""""""""""""""""""""""""
+syntax keyword typeScriptBrowserObjects window navigator screen history location
+
+syntax keyword typeScriptDOMObjects document event HTMLElement Anchor Area Base Body Button Form Frame Frameset Image Link Meta Option Select Style Table TableCell TableRow Textarea
+syntax keyword typeScriptDOMMethods 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
+syntax keyword typeScriptDOMProperties nodeName nodeValue nodeType parentNode childNodes firstChild lastChild previousSibling nextSibling attributes ownerDocument namespaceURI prefix localName tagName
+
+syntax keyword typeScriptAjaxObjects XMLHttpRequest
+syntax keyword typeScriptAjaxProperties readyState responseText responseXML statusText
+syntax keyword typeScriptAjaxMethods onreadystatechange abort getAllResponseHeaders getResponseHeader open send setRequestHeader
+
+syntax keyword typeScriptPropietaryObjects ActiveXObject
+syntax keyword typeScriptPropietaryMethods attachEvent detachEvent cancelBubble returnValue
+
+syntax keyword typeScriptHtmlElemProperties className clientHeight clientLeft clientTop clientWidth dir href id innerHTML lang length offsetHeight offsetLeft offsetParent offsetTop offsetWidth scrollHeight scrollLeft scrollTop scrollWidth style tabIndex target title
+
+syntax keyword typeScriptEventListenerKeywords blur click focus mouseover mouseout load item
+
+syntax keyword typeScriptEventListenerMethods scrollIntoView addEventListener dispatchEvent removeEventListener preventDefault stopPropagation
+" }}}
+"" Programm Keywords"{{{
+syntax keyword typeScriptSource import export
+syntax keyword typeScriptIdentifier arguments this let var void yield
+syntax keyword typeScriptOperator delete new instanceof typeof
+syntax keyword typeScriptBoolean true false
+syntax keyword typeScriptNull null undefined
+syntax keyword typeScriptMessage alert confirm prompt status
+syntax keyword typeScriptGlobal self top parent
+syntax keyword typeScriptDeprecated escape unescape all applets alinkColor bgColor fgColor linkColor vlinkColor xmlEncoding
+"}}}
+"" Statement Keywords"{{{
+syntax keyword typeScriptConditional if else switch
+syntax keyword typeScriptRepeat do while for in
+syntax keyword typeScriptBranch break continue
+syntax keyword typeScriptLabel case default
+syntax keyword typeScriptStatement return with
+
+syntax keyword typeScriptGlobalObjects Array Boolean Date Function Infinity Math Number NaN Object Packages RegExp String netscape
+
+syntax keyword typeScriptExceptions try catch throw finally Error EvalError RangeError ReferenceError SyntaxError TypeError URIError
+
+syntax keyword typeScriptReserved constructor declare as interface module abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public
+"}}}
+"" TypeScript/DOM/HTML/CSS specified things"{{{
+
+" TypeScript Objects"{{{
+ syn match typeScriptFunction "(super\s*|constructor\s*)" contained nextgroup=typeScriptVars
+ syn region typeScriptVars start="(" end=")" contained contains=typeScriptParameters transparent keepend
+ syn match typeScriptParameters "([a-zA-Z0-9_?.$][\w?.$]*)\s*:\s*([a-zA-Z0-9_?.$][\w?.$]*)" contained skipwhite
+"}}}
+" DOM2 Objects"{{{
+ syntax keyword typeScriptType DOMImplementation DocumentFragment Node NodeList NamedNodeMap CharacterData Attr Element Text Comment CDATASection DocumentType Notation Entity EntityReference ProcessingInstruction void any string bool number
+ syntax keyword typeScriptExceptions DOMException
+"}}}
+" DOM2 CONSTANT"{{{
+ 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
+ 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
+"}}}
+" HTML events and internal variables"{{{
+ syntax case ignore
+ syntax keyword typeScriptHtmlEvents onblur onclick oncontextmenu ondblclick onfocus onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup onresize onload onsubmit
+ syntax case match
+"}}}
+
+" Follow stuff should be highligh within a special context
+" While it can't be handled with context depended with Regex based highlight
+" So, turn it off by default
+if exists("typeScript_enable_domhtmlcss")
+
+" DOM2 things"{{{
+ syntax match typeScriptDomElemAttrs contained /\%(nodeName\|nodeValue\|nodeType\|parentNode\|childNodes\|firstChild\|lastChild\|previousSibling\|nextSibling\|attributes\|ownerDocument\|namespaceURI\|prefix\|localName\|tagName\)\>/
+ 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
+"}}}
+" HTML things"{{{
+ 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\)\>/
+ syntax match typeScriptHtmlElemFuncs contained /\%(blur\|click\|focus\|scrollIntoView\|addEventListener\|dispatchEvent\|removeEventListener\|item\)\>/ nextgroup=typeScriptParen skipwhite
+"}}}
+" CSS Styles in typeScript"{{{
+ syntax keyword typeScriptCssStyles contained color font fontFamily fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontWeight letterSpacing lineBreak lineHeight quotes rubyAlign rubyOverhang rubyPosition
+ syntax keyword typeScriptCssStyles contained textAlign textAlignLast textAutospace textDecoration textIndent textJustify textJustifyTrim textKashidaSpace textOverflowW6 textShadow textTransform textUnderlinePosition
+ syntax keyword typeScriptCssStyles contained unicodeBidi whiteSpace wordBreak wordSpacing wordWrap writingMode
+ syntax keyword typeScriptCssStyles contained bottom height left position right top width zIndex
+ 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
+ syntax keyword typeScriptCssStyles contained margin marginBottom marginLeft marginRight marginTop outline outlineColor outlineStyle outlineWidth padding paddingBottom paddingLeft paddingRight paddingTop
+ syntax keyword typeScriptCssStyles contained listStyle listStyleImage listStylePosition listStyleType
+ syntax keyword typeScriptCssStyles contained background backgroundAttachment backgroundColor backgroundImage gackgroundPosition backgroundPositionX backgroundPositionY backgroundRepeat
+ syntax keyword typeScriptCssStyles contained clear clip clipBottom clipLeft clipRight clipTop content counterIncrement counterReset cssFloat cursor direction display filter layoutGrid layoutGridChar layoutGridLine layoutGridMode layoutGridType
+ syntax keyword typeScriptCssStyles contained marks maxHeight maxWidth minHeight minWidth opacity MozOpacity overflow overflowX overflowY verticalAlign visibility zoom cssText
+ syntax keyword typeScriptCssStyles contained scrollbar3dLightColor scrollbarArrowColor scrollbarBaseColor scrollbarDarkShadowColor scrollbarFaceColor scrollbarHighlightColor scrollbarShadowColor scrollbarTrackColor
+"}}}
+" Highlight ways"{{{
+ syntax match typeScriptDotNotation "\." nextgroup=typeScriptPrototype,typeScriptDomElemAttrs,typeScriptDomElemFuncs,typeScriptHtmlElemAttrs,typeScriptHtmlElemFuncs
+ syntax match typeScriptDotNotation "\.style\." nextgroup=typeScriptCssStyles
+"}}}
+endif "DOM/HTML/CSS
+
+"" end DOM/HTML/CSS specified things""}}}
+
+
+"" Code blocks
+syntax cluster typeScriptAll contains=typeScriptComment,typeScriptLineComment,typeScriptDocComment,typeScriptStringD,typeScriptStringS,typeScriptRegexpString,typeScriptNumber,typeScriptFloat,typeScriptLabel,typeScriptSource,typeScriptType,typeScriptOperator,typeScriptBoolean,typeScriptNull,typeScriptFuncKeyword,typeScriptConditional,typeScriptGlobal,typeScriptRepeat,typeScriptBranch,typeScriptStatement,typeScriptGlobalObjects,typeScriptMessage,typeScriptIdentifier,typeScriptExceptions,typeScriptReserved,typeScriptDeprecated,typeScriptDomErrNo,typeScriptDomNodeConsts,typeScriptHtmlEvents,typeScriptDotNotation,typeScriptBrowserObjects,typeScriptDOMObjects,typeScriptAjaxObjects,typeScriptPropietaryObjects,typeScriptDOMMethods,typeScriptHtmlElemProperties,typeScriptDOMProperties,typeScriptEventListenerKeywords,typeScriptEventListenerMethods,typeScriptAjaxProperties,typeScriptAjaxMethods,typeScriptFuncArg
+
+if main_syntax == "typeScript"
+ syntax sync clear
+ syntax sync ccomment typeScriptComment minlines=200
+" syntax sync match typeScriptHighlight grouphere typeScriptBlock /{/
+endif
+
+syntax keyword typeScriptFuncKeyword function contained
+syntax region typeScriptFuncDef start="function" end="\([^)]*\)" contains=typeScriptFuncKeyword,typeScriptFuncArg keepend
+syntax match typeScriptFuncArg "\(([^()]*)\)" contains=typeScriptParens,typeScriptFuncComma contained
+syntax match typeScriptFuncComma /,/ contained
+" syntax region typeScriptFuncBlock contained matchgroup=typeScriptFuncBlock start="{" end="}" contains=@typeScriptAll,typeScriptParensErrA,typeScriptParensErrB,typeScriptParen,typeScriptBracket,typeScriptBlock fold
+
+syn match typeScriptBraces "[{}\[\]]"
+syn match typeScriptParens "[()]"
+syn match typeScriptOpSymbols "=\{1,3}\|!==\|!=\|<\|>\|>=\|<=\|++\|+=\|--\|-="
+syn match typeScriptEndColons "[;,]"
+syn match typeScriptLogicSymbols "\(&&\)\|\(||\)"
+
+" typeScriptFold Function {{{
+
+function! TypeScriptFold()
+setl foldmethod=syntax
+setl foldlevelstart=1
+syn region foldBraces start=/{/ end=/}/ transparent fold keepend extend
+
+setl foldtext=FoldText()
+endfunction
+
+au FileType typeScript call TypeScriptFold()
+
+" }}}
+
+" Define the default highlighting.
+" For version 5.7 and earlier: only when not done already
+" For version 5.8 and later: only when an item doesn't have highlighting yet
+if version >= 508 || !exists("did_typeScript_syn_inits")
+ if version < 508
+ let did_typeScript_syn_inits = 1
+ command -nargs=+ HiLink hi link <args>
+ else
+ command -nargs=+ HiLink hi def link <args>
+ endif
+
+ "Typescript highlighting
+ HiLink typeScriptParameters Operator
+ HiLink typescriptSuperBlock Operator
+
+ HiLink typeScriptEndColons Exception
+ HiLink typeScriptOpSymbols Operator
+ HiLink typeScriptLogicSymbols Boolean
+ HiLink typeScriptBraces Function
+ HiLink typeScriptParens Operator
+ HiLink typeScriptComment Comment
+ HiLink typeScriptLineComment Comment
+ HiLink typeScriptRef Include
+ HiLink typeScriptRefS String
+ HiLink typeScriptRefD String
+ HiLink typeScriptDocComment Comment
+ HiLink typeScriptCommentTodo Todo
+ HiLink typeScriptCvsTag Function
+ HiLink typeScriptDocTags Special
+ HiLink typeScriptDocSeeTag Function
+ HiLink typeScriptDocParam Function
+ HiLink typeScriptStringS String
+ HiLink typeScriptStringD String
+ HiLink typeScriptRegexpString String
+ HiLink typeScriptGlobal Constant
+ HiLink typeScriptCharacter Character
+ HiLink typeScriptPrototype Type
+ HiLink typeScriptConditional Conditional
+ HiLink typeScriptBranch Conditional
+ HiLink typeScriptIdentifier Identifier
+ HiLink typeScriptRepeat Repeat
+ HiLink typeScriptStatement Statement
+ HiLink typeScriptFuncKeyword Function
+ HiLink typeScriptMessage Keyword
+ HiLink typeScriptDeprecated Exception
+ HiLink typeScriptError Error
+ HiLink typeScriptParensError Error
+ HiLink typeScriptParensErrA Error
+ HiLink typeScriptParensErrB Error
+ HiLink typeScriptParensErrC Error
+ HiLink typeScriptReserved Keyword
+ HiLink typeScriptOperator Operator
+ HiLink typeScriptType Type
+ HiLink typeScriptNull Type
+ HiLink typeScriptNumber Number
+ HiLink typeScriptFloat Number
+ HiLink typeScriptBoolean Boolean
+ HiLink typeScriptLabel Label
+ HiLink typeScriptSpecial Special
+ HiLink typeScriptSource Special
+ HiLink typeScriptGlobalObjects Special
+ HiLink typeScriptExceptions Special
+
+ HiLink typeScriptDomErrNo Constant
+ HiLink typeScriptDomNodeConsts Constant
+ HiLink typeScriptDomElemAttrs Label
+ HiLink typeScriptDomElemFuncs PreProc
+
+ HiLink typeScriptHtmlElemAttrs Label
+ HiLink typeScriptHtmlElemFuncs PreProc
+
+ HiLink typeScriptCssStyles Label
+" Ajax Highlighting
+HiLink typeScriptBrowserObjects Constant
+
+HiLink typeScriptDOMObjects Constant
+HiLink typeScriptDOMMethods Exception
+HiLink typeScriptDOMProperties Type
+
+HiLink typeScriptAjaxObjects htmlH1
+HiLink typeScriptAjaxMethods Exception
+HiLink typeScriptAjaxProperties Type
+
+HiLink typeScriptFuncDef Title
+ HiLink typeScriptFuncArg Special
+ HiLink typeScriptFuncComma Operator
+
+HiLink typeScriptHtmlEvents Special
+HiLink typeScriptHtmlElemProperties Type
+
+HiLink typeScriptEventListenerKeywords Keyword
+
+HiLink typeScriptNumber Number
+HiLink typeScriptPropietaryObjects Constant
+
+ delcommand HiLink
+endif
+
+" Define the htmltypeScript for HTML syntax html.vim
+"syntax clear htmltypeScript
+"syntax clear typeScriptExpression
+syntax cluster htmltypeScript contains=@typeScriptAll,typeScriptBracket,typeScriptParen,typeScriptBlock,typeScriptParenError
+syntax cluster typeScriptExpression contains=@typeScriptAll,typeScriptBracket,typeScriptParen,typeScriptBlock,typeScriptParenError,@htmlPreproc
+
+let b:current_syntax = "typeScript"
+if main_syntax == 'typeScript'
+ unlet main_syntax
+endif
+
+" vim: ts=4
Index: vim81/runtime/compiler/typescript.vim
--- vim81/runtime/compiler/typescript.vim.orig 2012-12-01 12:36:49.000000000 +0100
+++ vim81/runtime/compiler/typescript.vim 2012-12-01 12:36:45.000000000 +0100
@@ -0,0 +1,10 @@
+
+if exists("current_compiler")
+ finish
+endif
+
+let current_compiler = "typescript"
+
+CompilerSet makeprg=tsc\ $*\ %
+CompilerSet errorformat=\ %#%f\ %#(%l\\\,%c):\ %m
+
Index: vim81/runtime/ftplugin/typescript.vim
--- vim81/runtime/ftplugin/typescript.vim.orig 2012-12-01 12:44:59.000000000 +0100
+++ vim81/runtime/ftplugin/typescript.vim 2012-12-01 12:44:54.000000000 +0100
@@ -0,0 +1,10 @@
+
+compiler typescript
+
+setlocal autoindent
+setlocal cindent
+setlocal smartindent
+setlocal indentexpr&
+
+setlocal commentstring=//\ %s
+
-----------------------------------------------------------------------------
JavaScript ECMAScript 2018 Language Support
Index: vim81/runtime/syntax/javascript.vim
--- vim81/runtime/syntax/javascript.vim.orig 2016-08-31 21:51:58.000000000 +0200
+++ vim81/runtime/syntax/javascript.vim 2018-03-25 18:04:56.551202000 +0200
@@ -55,6 +55,7 @@
syn keyword javaScriptMember document event location
syn keyword javaScriptDeprecated escape unescape
syn keyword javaScriptReserved abstract boolean byte char class const debugger double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile
+syn keyword javaScriptAsync async await
if exists("javaScript_fold")
syn match javaScriptFunction "\<function\>"
@@ -113,6 +114,7 @@
hi def link javaScriptReserved Keyword
hi def link javaScriptDebug Debug
hi def link javaScriptConstant Label
+hi def link javaScriptAsync Keyword
let b:current_syntax = "javascript"

2430
vim/vim.spec

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save