From bd23fefb391816648ebd701096bf9973f6256750 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 2 Aug 2019 06:51:47 +0200 Subject: [PATCH] vim-patch:12ee7ff00b91 Update runtime files https://github.com/vim/vim/commit/12ee7ff00b91d852e060bb24951d1c94239863eb --- runtime/doc/editing.txt | 2 +- runtime/doc/tagsrch.txt | 19 +++++++++++-------- runtime/syntax/matlab.vim | 7 +++++-- runtime/syntax/typescript.vim | 8 +++++++- 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/runtime/doc/editing.txt b/runtime/doc/editing.txt index f1887d557d..23a65f16e4 100644 --- a/runtime/doc/editing.txt +++ b/runtime/doc/editing.txt @@ -555,7 +555,7 @@ You can use the argument list with the following commands, and with the expression functions |argc()| and |argv()|. These all work on the argument list of the current window. - *:ar* *:arg* *:args* + *:ar* *:arg* *:args* :ar[gs] Print the argument list, with the current file in square brackets. diff --git a/runtime/doc/tagsrch.txt b/runtime/doc/tagsrch.txt index f747e6a6fb..d11ec25545 100644 --- a/runtime/doc/tagsrch.txt +++ b/runtime/doc/tagsrch.txt @@ -79,18 +79,21 @@ changed, to avoid confusion when using ":tnext". It is changed when using ":tag {name}". The ignore-case matches are not found for a ":tag" command when: -- the 'ignorecase' option is off and 'tagcase' is "followic" +- 'tagcase' is "followic" and the 'ignorecase' option is off +- 'tagcase' is "followscs" and the 'ignorecase' option is off and the + 'smartcase' option is off or the pattern contains an upper case character. - 'tagcase' is "match" - 'tagcase' is "smart" and the pattern contains an upper case character. -- 'tagcase' is "followscs" and 'smartcase' option is on and the pattern - contains an upper case character. The ignore-case matches are found when: - a pattern is used (starting with a "/") - for ":tselect" -- when 'tagcase' is "followic" and 'ignorecase' is off -- when 'tagcase' is "match" -- when 'tagcase' is "followscs" and the 'smartcase' option is off +- when 'tagcase' is "followic" and 'ignorecase' is on +- when 'tagcase' is "followscs" and 'ignorecase' is on or the 'smartcase' + option is on and the pattern does not contain an upper case character +- when 'tagcase' is "ignore" +- when 'tagcase' is "smart" and the patter does not contain an upper case + character Note that using ignore-case tag searching disables binary searching in the tags file, which causes a slowdown. This can be avoided by fold-case sorting @@ -488,7 +491,7 @@ Some programs that generate tags files: ctags As found on most Unix systems. Only supports C. Only does the basic work. *Exuberant_ctags* -exuberant ctags This a very good one. It works for C, C++, Java, +exuberant ctags This is a very good one. It works for C, C++, Java, Fortran, Eiffel and others. It can generate tags for many items. See http://ctags.sourceforge.net. JTags For Java, in Java. It can be found at @@ -802,7 +805,7 @@ CTRL-W d Open a new window, with the cursor on the first (default: whole file). See |:search-args| for [/] and [!]. - *:che* *:chec* *:check* *:checkpath* + *:che* *:chec* *:check* *:checkpath* :che[ckpath] List all the included files that could not be found. :che[ckpath]! List all the included files. diff --git a/runtime/syntax/matlab.vim b/runtime/syntax/matlab.vim index 5228bb5c43..520280980a 100644 --- a/runtime/syntax/matlab.vim +++ b/runtime/syntax/matlab.vim @@ -4,9 +4,10 @@ " Credits: Preben 'Peppe' Guldberg " Maurizio Tranchero - maurizio(.)tranchero(@)gmail(.)com " Original author: Mario Eusebio -" Last Change: Mon Jan 23 2017 -" added support for cell mode +" Last Change: June 10 2019 +" added highlight rule for double-quoted string literals " Change History: +" - double-quoted string literals added " - now highlights cell-mode separator comments " - 'global' and 'persistent' keyword are now recognized @@ -40,6 +41,7 @@ syn match matlabLineContinuation "\.\{3}" " String " MT_ADDON - added 'skip' in order to deal with 'tic' escaping sequence syn region matlabString start=+'+ end=+'+ oneline skip=+''+ +syn region matlabStringArray start=+"+ end=+"+ oneline skip=+""+ " If you don't like tabs syn match matlabTab "\t" @@ -87,6 +89,7 @@ hi def link matlabExceptions Conditional hi def link matlabRepeat Repeat hi def link matlabTodo Todo hi def link matlabString String +hi def link matlabStringArray String hi def link matlabDelimiter Identifier hi def link matlabTransposeOther Identifier hi def link matlabNumber Number diff --git a/runtime/syntax/typescript.vim b/runtime/syntax/typescript.vim index 3ce30f8b6d..bc382610a9 100644 --- a/runtime/syntax/typescript.vim +++ b/runtime/syntax/typescript.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: TypeScript " Maintainer: Bram Moolenaar -" Last Change: 2019 Jun 06 +" Last Change: 2019 Jun 07 " Based On: Herrington Darkholme's yats.vim " Changes: See https:github.com/HerringtonDarkholme/yats.vim " Credits: See yats.vim @@ -791,6 +791,12 @@ if get(g:, 'yats_host_keyword', 1) syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName clearInterval hi def link typescriptNodeGlobal Structure + syntax keyword typescriptGlobal containedin=typescriptIdentifierName describe it test + syntax keyword typescriptGlobal containedin=typescriptIdentifierName before after + syntax keyword typescriptGlobal containedin=typescriptIdentifierName beforeEach afterEach + syntax keyword typescriptGlobal containedin=typescriptIdentifierName beforeAll afterAll + syntax keyword typescriptGlobal containedin=typescriptIdentifierName expect assert + "runtime syntax/yats/web.vim syntax keyword typescriptBOM containedin=typescriptIdentifierName AbortController syntax keyword typescriptBOM containedin=typescriptIdentifierName AbstractWorker AnalyserNode