Skip to content

Commit d24ef06

Browse files
committed
updated for version 7.4.656
Problem: Missing changes for glob() in one file. Solution: Add the missing changes.
1 parent 4c225ca commit d24ef06

File tree

10 files changed

+422
-61
lines changed

10 files changed

+422
-61
lines changed

runtime/doc/eval.txt

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 7.4. Last change: 2015 Feb 10
1+
*eval.txt* For Vim version 7.4. Last change: 2015 Mar 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1834,9 +1834,9 @@ getwinposx() Number X coord in pixels of GUI Vim window
18341834
getwinposy() Number Y coord in pixels of GUI Vim window
18351835
getwinvar( {nr}, {varname} [, {def}])
18361836
any variable {varname} in window {nr}
1837-
glob( {expr} [, {nosuf} [, {list}]])
1837+
glob( {expr} [, {nosuf} [, {list} [, {alllinks}]]])
18381838
any expand file wildcards in {expr}
1839-
globpath( {path}, {expr} [, {nosuf} [, {list}]])
1839+
globpath( {path}, {expr} [, {nosuf} [, {list} [, {alllinks}]]])
18401840
String do glob({expr}) for all dirs in {path}
18411841
has( {feature}) Number TRUE if feature {feature} supported
18421842
has_key( {dict}, {key}) Number TRUE if {dict} has entry {key}
@@ -3638,7 +3638,7 @@ getwinvar({winnr}, {varname} [, {def}]) *getwinvar()*
36383638
:let list_is_on = getwinvar(2, '&list')
36393639
:echo "myvar = " . getwinvar(1, 'myvar')
36403640
<
3641-
glob({expr} [, {nosuf} [, {list}]]) *glob()*
3641+
glob({expr} [, {nosuf} [, {list} [, {alllinks}]]]) *glob()*
36423642
Expand the file wildcards in {expr}. See |wildcards| for the
36433643
use of special characters.
36443644

@@ -3655,8 +3655,11 @@ glob({expr} [, {nosuf} [, {list}]]) *glob()*
36553655
matches, they are separated by <NL> characters.
36563656

36573657
If the expansion fails, the result is an empty String or List.
3658+
36583659
A name for a non-existing file is not included. A symbolic
36593660
link is only included if it points to an existing file.
3661+
However, when the {alllinks} argument is present and it is
3662+
non-zero then all symbolic links are included.
36603663

36613664
For most systems backticks can be used to get files names from
36623665
any external command. Example: >
@@ -3668,7 +3671,8 @@ glob({expr} [, {nosuf} [, {list}]]) *glob()*
36683671
See |expand()| for expanding special Vim variables. See
36693672
|system()| for getting the raw output of an external command.
36703673

3671-
globpath({path}, {expr} [, {nosuf} [, {list}]]) *globpath()*
3674+
*globpath()*
3675+
globpath({path}, {expr} [, {nosuf} [, {list} [, {allinks}]]])
36723676
Perform glob() on all directories in {path} and concatenate
36733677
the results. Example: >
36743678
:echo globpath(&rtp, "syntax/c.vim")
@@ -3694,6 +3698,8 @@ globpath({path}, {expr} [, {nosuf} [, {list}]]) *globpath()*
36943698
they are separated by <NL> characters. Example: >
36953699
:echo globpath(&rtp, "syntax/c.vim", 0, 1)
36963700
<
3701+
{allinks} is used as with |glob()|.
3702+
36973703
The "**" item can be used to search in a directory tree.
36983704
For example, to find all "README.txt" files in the directories
36993705
in 'runtimepath' and below: >

runtime/doc/todo.txt

+6-37
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 7.4. Last change: 2015 Mar 02
1+
*todo.txt* For Vim version 7.4. Last change: 2015 Mar 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -78,14 +78,9 @@ https://github.com/neovim/neovim/commit/77ace65bdce379f2d9b13ee81ab3fc01951f92dc
7878
Still using freed memory after using setloclist(). (lcd, 2014 Jul 23)
7979
More info Jul 24. Not clear why.
8080

81-
Patch for c.vim and cpp.vim. (Yasuhiro Matsumoto, 2015 Feb 28)
82-
8381
Better .ico file for Windows. (Pat Suwalski, 2015 Feb 13)
8482
Waiting for response on remark from Edward Fox.
8583

86-
Patch to put -ldl in LIBs rather than LDFLAGS, so that python2 and python3 can
87-
both be used. (Oazki Kiichi, 2015 Feb 28)
88-
8984
Patch to make getregtype() return the right size for non-linux systems.
9085
(Yasuhiro Matsumoto, 2014 Jul 8)
9186
Breaks test_eval. Inefficient, can we only compute y_width when needed?
@@ -98,10 +93,10 @@ Problem using ":try" inside ":execute". (ZyX, 2013 Sep 15)
9893
":cd C:\Windows\System32\drivers\etc*" does not work, even though the
9994
directory exists. (Sergio Gallelli, 2013 Dec 29)
10095

101-
Patch to make 7.4.582 work for multi-byte. (Yasuhiro Matsumoto, 2015 Mar 1)
102-
10396
C indent: should recognize C11 raw strings. (Mark Lodato, 2015 Mar 1)
10497

98+
Intel Hex syntax file update, Markus Heidelberg 2015 Mar 2
99+
105100
Gvim: when both Tab and CTRL-I are mapped, use CTRL-I not for Tab.
106101

107102
Python: ":py raw_input('prompt')" doesn't work. (Manu Hack)
@@ -126,43 +121,17 @@ Goes away when disabling the swap file. (might1, Feb 16)
126121
MS-Windows: Crash opening very long file name starting with "\\".
127122
(Christian Brock, 2012 Jun 29)
128123

129-
Syntax files for Innovation Data processing. (Rob Owens, 2015 Feb 4)
130-
131-
Add a few features to xxd. (Vadim Vygonets, 2013 Nov 11)
132-
Patches: 2013 Nov 19
133-
1: Add -e: little endian hexdump
134-
2: Add -o: add offset to displayed position
135-
3: Change displayed file position width to 8 chars
136-
137-
Using CTRL-L while popup menu is visible behaves like CTRL-P, which is wrong.
138-
Patch by Yasuhiro Matsumoto, 2015 Jan 5.
139-
Is this right? Comment from Amadeus Demarzi.
140-
Another patch from Christian, Jan 6.
141-
Comment from Hirohito Higashi, Jan 6, update Feb 8, update Feb 17.
142-
143-
HTML indenting: adjustments for html5. (Michaelpg, 2015 Feb 23)
144-
145-
glob() omits symbolic links to non-existing files.
146-
(Charles Campbell, 2015 Feb 19)
147-
Patch by James McCoy, 2015 Feb 20.
148-
Docs change suggestion by Roland Eggner, 2015 Feb 21.
149-
Probably "to a not existing file" should be "to a non-existing file".
150-
Also fix globpath().
124+
Patch to handle directories better for --remote. (xaizek, 2015 Mar 1)
151125

152126
Cursorline background color not mixed with character highlight.
153127
Patch by Yasuhiro Matsumoto, 2014 Dec 3.
154128

155-
Patch to fix temp directories for Windows, so that it works without tweaking.
156-
Issue 28.
157-
Also see http://superuser.com/questions/364879/how-to-open-a-new-file-in-gvim-e303-unable-to-open-swap-file
129+
The argument for "-S" is not taken literally, the ":so" command expands
130+
wildcards. Add a ":nowild" command modifier? (ZyX, 2015 March 4)
158131

159132
Problem using diff syntax with cp932 encoding. Idea from Yasuhiro Matsumoto,
160133
patch from Ken Takata (2014 Nov 6)
161134

162-
text deleted by "dit" depends on indent of closing tag.
163-
(Jan Parthey, 2015 Feb 8)
164-
Patch by Christian, Feb 9. Update Feb 13.
165-
166135
ml_updatechunk() is slow when retrying for another encoding. (John Little,
167136
2014 Sep 11)
168137

runtime/indent/html.vim

+39-2
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ call s:AddITags(s:indent_tags, [
245245
\ 'header', 'group', 'keygen', 'mark', 'math', 'meter', 'nav', 'output',
246246
\ 'progress', 'ruby', 'section', 'svg', 'texture', 'time', 'video',
247247
\ 'wbr', 'text'])
248+
249+
" Tags added for web components:
250+
call s:AddITags(s:indent_tags, [
251+
\ 'content', 'shadow', 'template'])
248252
"}}}
249253

250254
" Add Block Tags: these contain alien content
@@ -287,7 +291,7 @@ func! s:CountITags(text)
287291
let s:nextrel = 0 " relative indent steps for next line [unit &sw]:
288292
let s:block = 0 " assume starting outside of a block
289293
let s:countonly = 1 " don't change state
290-
call substitute(a:text, '<\zs/\=\w\+\>\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
294+
call substitute(a:text, '<\zs/\=\w\+\(-\w\+\)*\>\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
291295
let s:countonly = 0
292296
endfunc "}}}
293297

@@ -299,7 +303,7 @@ func! s:CountTagsAndState(text)
299303
let s:nextrel = 0 " relative indent steps for next line [unit &sw]:
300304

301305
let s:block = b:hi_newstate.block
302-
let tmp = substitute(a:text, '<\zs/\=\w\+\>\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
306+
let tmp = substitute(a:text, '<\zs/\=\w\+\(-\w\+\)*\>\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
303307
if s:block == 3
304308
let b:hi_newstate.scripttype = s:GetScriptType(matchstr(tmp, '\C.*<SCRIPT\>\zs[^>]*'))
305309
endif
@@ -311,6 +315,9 @@ func! s:CheckTag(itag)
311315
"{{{
312316
" Returns an empty string or "SCRIPT".
313317
" a:itag can be "tag" or "/tag" or "<!--" or "-->"
318+
if (s:CheckCustomTag(a:itag))
319+
return ""
320+
endif
314321
let ind = s:get_tag(a:itag)
315322
if ind == -1
316323
" closing tag
@@ -365,6 +372,36 @@ func! s:CheckBlockTag(blocktag, ind)
365372
return ""
366373
endfunc "}}}
367374

375+
" Used by s:CheckTag().
376+
func! s:CheckCustomTag(ctag)
377+
"{{{
378+
" Returns 1 if ctag is the tag for a custom element, 0 otherwise.
379+
" a:ctag can be "tag" or "/tag" or "<!--" or "-->"
380+
let pattern = '\%\(\w\+-\)\+\w\+'
381+
if match(a:ctag, pattern) == -1
382+
return 0
383+
endif
384+
if matchstr(a:ctag, '\/\ze.\+') == "/"
385+
" closing tag
386+
if s:block != 0
387+
" ignore ctag within a block
388+
return 1
389+
endif
390+
if s:nextrel == 0
391+
let s:curind -= 1
392+
else
393+
let s:nextrel -= 1
394+
endif
395+
else
396+
" opening tag
397+
if s:block != 0
398+
return 1
399+
endif
400+
let s:nextrel += 1
401+
endif
402+
return 1
403+
endfunc "}}}
404+
368405
" Return the <script> type: either "javascript" or ""
369406
func! s:GetScriptType(str)
370407
"{{{

runtime/syntax/c.vim

+16-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim syntax file
22
" Language: C
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last Change: 2015 Feb 27
4+
" Last Change: 2015 Mar 05
55

66
" Quit when a (custom) syntax file was already loaded
77
if exists("b:current_syntax")
@@ -47,16 +47,17 @@ if !exists("c_no_cformat")
4747
endif
4848

4949
" cCppString: same as cString, but ends at end of line
50-
if s:ft ==# "cpp" && !exists("cpp_no_cpp11")
50+
if s:ft ==# "cpp" && !exists("cpp_no_cpp11") && !exists("c_no_cformat")
5151
" ISO C++11
5252
syn region cString start=+\(L\|u\|u8\|U\|R\|LR\|u8R\|uR\|UR\)\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
5353
syn region cCppString start=+\(L\|u\|u8\|U\|R\|LR\|u8R\|uR\|UR\)\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
54-
elseif s:ft ==# "c" && !exists("c_no_c11")
54+
elseif s:ft ==# "c" && !exists("c_no_c11") && !exists("c_no_cformat")
5555
" ISO C99
5656
syn region cString start=+\%(L\|U\|u8\)\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
5757
syn region cCppString start=+\%(L\|U\|u8\)\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
5858
else
5959
" older C or C++
60+
syn match cFormat display "%%" contained
6061
syn region cString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
6162
syn region cCppString start=+L\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
6263
endif
@@ -80,7 +81,11 @@ syn match cSpecialCharacter display "L'\\x\x\+'"
8081

8182
if (s:ft ==# "c" && !exists("c_no_c11")) || (s:ft ==# "cpp" && !exists("cpp_no_cpp11"))
8283
" ISO C11 or ISO C++ 11
83-
syn region cString start=+\%(U\|u8\=\)"+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
84+
if exists("c_no_cformat")
85+
syn region cString start=+\%(U\|u8\=\)"+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,@Spell extend
86+
else
87+
syn region cString start=+\%(U\|u8\=\)"+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
88+
endif
8489
syn match cCharacter "[Uu]'[^\\]'"
8590
syn match cCharacter "[Uu]'[^']*'" contains=cSpecial
8691
if exists("c_gnu")
@@ -389,8 +394,13 @@ endif
389394
syn cluster cLabelGroup contains=cUserLabel
390395
syn match cUserCont display "^\s*\I\i*\s*:$" contains=@cLabelGroup
391396
syn match cUserCont display ";\s*\I\i*\s*:$" contains=@cLabelGroup
392-
syn match cUserCont display "^\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
393-
syn match cUserCont display ";\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
397+
if s:ft ==# 'cpp'
398+
syn match cUserCont display "^\s*\%(class\|struct\|enum\)\@!\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
399+
syn match cUserCont display ";\s*\%(class\|struct\|enum\)\@!\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
400+
else
401+
syn match cUserCont display "^\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
402+
syn match cUserCont display ";\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
403+
endif
394404

395405
syn match cUserLabel display "\I\i*" contained
396406

runtime/syntax/cpp.vim

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
" Vim syntax file
22
" Language: C++
3-
" Current Maintainer: vim-jp (https://github.com/vim-jp/cpp-vim)
3+
" Current Maintainer: vim-jp (https://github.com/vim-jp/vim-cpp)
44
" Previous Maintainer: Ken Shan <[email protected]>
5-
" Last Change: 2014 May 14
5+
" Last Change: 2015 Mar 1
66

77
" For version 5.x: Clear all syntax items
88
" For version 6.x: Quit when a syntax file was already loaded
@@ -32,14 +32,21 @@ syn match cppCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*$"
3232
syn keyword cppStorageClass mutable
3333
syn keyword cppStructure class typename template namespace
3434
syn keyword cppBoolean true false
35+
syn keyword cppConstant __cplusplus
3536

3637
" C++ 11 extensions
3738
if !exists("cpp_no_cpp11")
3839
syn keyword cppType override final
3940
syn keyword cppExceptions noexcept
40-
syn keyword cppStorageClass constexpr decltype
41+
syn keyword cppStorageClass constexpr decltype thread_local
4142
syn keyword cppConstant nullptr
42-
syn region cppRawString matchgroup=cppRawDelimiter start=+\%(u8\|[uLU]\)\=R"\z([[:alnum:]_{}[\]#<>%:;.?*\+\-/\^&|~!=,"']\{,16}\)(+ end=+)\z1"+ contains=@Spell
43+
syn keyword cppConstant ATOMIC_FLAG_INIT ATOMIC_VAR_INIT
44+
syn keyword cppConstant ATOMIC_BOOL_LOCK_FREE ATOMIC_CHAR_LOCK_FREE
45+
syn keyword cppConstant ATOMIC_CHAR16_T_LOCK_FREE ATOMIC_CHAR32_T_LOCK_FREE
46+
syn keyword cppConstant ATOMIC_WCHAR_T_LOCK_FREE ATOMIC_SHORT_LOCK_FREE
47+
syn keyword cppConstant ATOMIC_INT_LOCK_FREE ATOMIC_LONG_LOCK_FREE
48+
syn keyword cppConstant ATOMIC_LLONG_LOCK_FREE ATOMIC_POINTER_LOCK_FREE
49+
syn region cppRawString matchgroup=cppRawDelimiter start=+\%(u8\|[uLU]\)\=R"\z([[:alnum:]_{}[\]#<>%:;.?*\+\-/\^&|~!=,"']\{,16}\)(+ end=+)\z1"+ contains=@Spell
4350
endif
4451

4552
" The minimum and maximum operators in GNU C++

runtime/syntax/upstreamdat.vim

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
" Vim syntax file
22
" Language: Innovation Data Processing upstream.dat file
33
" Maintainer: Rob Owens <[email protected]>
4-
" Latest Revision: 2013-06-17
4+
" Latest Revision: 2013-11-27
55

66
" Quit when a syntax file was already loaded
77
if exists("b:current_syntax")
88
finish
99
endif
1010

11+
" Parameters:
1112
syn keyword upstreamdat_Parameter ACCEPTPCREMOTE
1213
syn keyword upstreamdat_Parameter ACCEPTREMOTE
1314
syn keyword upstreamdat_Parameter ACTION
@@ -291,6 +292,14 @@ syn keyword upstreamdat_Parameter XFERECORDSIZE
291292
syn keyword upstreamdat_Parameter XFERRECSEP
292293
syn keyword upstreamdat_Parameter XFERRECUSECR
293294

295+
" File Specs:
296+
syn match upstreamdat_Filespec /file spec\c \d\{1,3}.*/
297+
298+
" Comments:
299+
syn match upstreamdat_Comment /^#.*/
300+
294301
hi def link upstreamdat_Parameter Type
302+
"hi def link upstreamdat_Filespec Underlined
303+
hi def link upstreamdat_Comment Comment
295304

296305
let b:current_syntax = "upstreamdat"

0 commit comments

Comments
 (0)