From: Bram Moolenaar Date: Thu, 10 May 2007 16:44:05 +0000 (+0000) Subject: updated for version 7.1b X-Git-Tag: v7.1b~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6799acd2d50b65eecfd3d691573628e3e8aa474;p=vim updated for version 7.1b --- diff --git a/runtime/doc/os_os2.txt b/runtime/doc/os_os2.txt index 5200a2683..5b5ed6f1a 100644 --- a/runtime/doc/os_os2.txt +++ b/runtime/doc/os_os2.txt @@ -1,4 +1,4 @@ -*os_os2.txt* For Vim version 7.1a. Last change: 2007 Apr 22 +*os_os2.txt* For Vim version 7.1b. Last change: 2007 Apr 22 VIM REFERENCE MANUAL by Paul Slootman diff --git a/runtime/doc/usr_22.txt b/runtime/doc/usr_22.txt index dfb6de486..c97a5ed7f 100644 --- a/runtime/doc/usr_22.txt +++ b/runtime/doc/usr_22.txt @@ -1,4 +1,4 @@ -*usr_22.txt* For Vim version 7.1a. Last change: 2006 Apr 24 +*usr_22.txt* For Vim version 7.1b. Last change: 2006 Apr 24 VIM USER MANUAL - by Bram Moolenaar diff --git a/runtime/syntax/autohotkey.vim b/runtime/syntax/autohotkey.vim new file mode 100644 index 000000000..78cb9e79b --- /dev/null +++ b/runtime/syntax/autohotkey.vim @@ -0,0 +1,278 @@ +" Vim syntax file +" Language: AutoHotkey script file +" Maintainer: Nikolai Weibull +" Latest Revision: 2007-05-09 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn case ignore + +syn keyword autohotkeyTodo + \ contained + \ TODO FIXME XXX NOTE + +syn cluster autohotkeyCommentGroup + \ contains= + \ autohotkeyTodo, + \ @Spell + +syn match autohotkeyComment + \ display + \ contains=@autohotkeyCommentGroup + \ '`\@' + +syn match autohotkeyInteger + \ contained + \ display + \ '0x\x\+\>' + +syn match autohotkeyFloat + \ contained + \ display + \ '\d\+\.\d*\|\.\d\+\>' + +syn keyword autohotkeyType + \ local + \ global + +hi def link autohotkeyTodo Todo +hi def link autohotkeyComment Comment +hi def link autohotkeyCommentStart autohotkeyComment +hi def link autohotkeyEscape Special +hi def link autohotkeyHotkey Type +hi def link autohotkeyKey Type +hi def link autohotkeyDelimiter Delimiter +hi def link autohotkeyHotstringDefinition Type +hi def link autohotkeyHotstring Type +hi def link autohotkeyHotstringDelimiter autohotkeyDelimiter +hi def link autohotkeyHotstringOptions Special +hi def link autohotkeyString String +hi def link autohotkeyStringDelimiter autohotkeyString +hi def link autohotkeyVariable Identifier +hi def link autohotkeyVariableDelimiter autohotkeyVariable +hi def link autohotkeyBuiltinVariable Macro +hi def link autohotkeyCommand Keyword +hi def link autohotkeyFunction Function +hi def link autohotkeyStatement autohotkeyCommand +hi def link autohotkeyRepeat Repeat +hi def link autohotkeyConditional Conditional +hi def link autohotkeyPreProcStart PreProc +hi def link autohotkeyInclude Include +hi def link autohotkeyPreProc PreProc +hi def link autohotkeyMatchClass Typedef +hi def link autohotkeyNumber Number +hi def link autohotkeyInteger autohotkeyNumber +hi def link autohotkeyFloat autohotkeyNumber +hi def link autohotkeyType Type + +let b:current_syntax = "autohotkey" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/src/buffer.c b/src/buffer.c index 5df085769..14b64c8ee 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -550,6 +550,24 @@ buf_freeall(buf, del_buf, wipe_buf) #ifdef FEAT_DIFF diff_buf_delete(buf); /* Can't use 'diff' for unloaded buffer. */ #endif + +#ifdef FEAT_FOLDING + /* No folds in an empty buffer. */ +# ifdef FEAT_WINDOWS + { + win_T *win; + tabpage_T *tp; + + FOR_ALL_TAB_WINDOWS(tp, win) + if (win->w_buffer == buf) + clearFolding(win); + } +# else + if (curwin->w_buffer == buf) + clearFolding(curwin); +# endif +#endif + #ifdef FEAT_TCL tcl_buffer_free(buf); #endif @@ -2023,7 +2041,7 @@ buflist_findpat(pattern, pattern_end, unlisted, diffmode) /* * Try four ways of matching a listed buffer: * attempt == 0: without '^' or '$' (at any position) - * attempt == 1: with '^' at start (only at postion 0) + * attempt == 1: with '^' at start (only at position 0) * attempt == 2: with '$' at end (only match at end) * attempt == 3: with '^' at start and '$' at end (only full match) * Repeat this for finding an unlisted buffer if there was no matching diff --git a/src/getchar.c b/src/getchar.c index c265a6f00..23611a118 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -3427,7 +3427,7 @@ do_map(maptype, arg, mode, abbrev) showmap(mp, map_table != maphash); did_it = TRUE; } - else if (n != len) /* new entry is ambigious */ + else if (n != len) /* new entry is ambiguous */ { mpp = &(mp->m_next); continue; diff --git a/src/window.c b/src/window.c index 0ee1ad40a..4083f8187 100644 --- a/src/window.c +++ b/src/window.c @@ -81,7 +81,7 @@ static void win_new_height __ARGS((win_T *, int)); #define URL_SLASH 1 /* path_is_url() has found "://" */ #define URL_BACKSLASH 2 /* path_is_url() has found ":\\" */ -#define NOWIN (win_T *)-1 /* non-exisiting window */ +#define NOWIN (win_T *)-1 /* non-existing window */ #ifdef FEAT_WINDOWS # define ROWS_AVAIL (Rows - p_ch - tabline_height()) @@ -536,7 +536,7 @@ wingotofile: #endif #ifdef FEAT_FIND_ID -/* Go to the first occurence of the identifier under cursor along path in a +/* Go to the first occurrence of the identifier under cursor along path in a * new window -- webb */ case 'i': /* Go to any match */