]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
Runtime file updates.
authorBram Moolenaar <Bram@vim.org>
Sun, 8 Dec 2019 14:07:48 +0000 (15:07 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 8 Dec 2019 14:07:48 +0000 (15:07 +0100)
runtime/doc/indent.txt
runtime/doc/tags
runtime/doc/version8.txt
runtime/indent/matlab.vim
runtime/indent/testdir/matlab.in
runtime/indent/testdir/matlab.ok
runtime/indent/testdir/runtest.vim

index a282b3de0d0d926288d7f095a35aa5db9d3573a5..eeebb5de178d9e09a0b219d3b3436bc2ff71347c 100644 (file)
@@ -812,6 +812,16 @@ Detail:
       <!-- --> : -1
 
 
+MATLAB                 *ft-matlab-indent* *matlab-indent* *matlab-indenting*
+
+The setting Function indenting format in MATLAB Editor/Debugger Language
+Preferences corresponds to: >
+    :let g:MATLAB_function_indent = {0, 1 or 2 (default)}
+
+Where 0 is for Classic, 1 for Indent nested functions and 2 for Indent all
+functions.
+
+
 PHP                            *ft-php-indent* *php-indent* *php-indenting*
 
 NOTE:  PHP files will be indented correctly only if PHP |syntax| is active.
index f63ee1b607494f5185925fffeee37be0aa9288d3..fbf3c05a5e445143f0cc0867f1d9c4e44f4a27df 100644 (file)
@@ -6465,6 +6465,7 @@ ft-man-plugin     filetype.txt    /*ft-man-plugin*
 ft-maple-syntax        syntax.txt      /*ft-maple-syntax*
 ft-masm-syntax syntax.txt      /*ft-masm-syntax*
 ft-mathematica-syntax  syntax.txt      /*ft-mathematica-syntax*
+ft-matlab-indent       indent.txt      /*ft-matlab-indent*
 ft-mma-syntax  syntax.txt      /*ft-mma-syntax*
 ft-moo-syntax  syntax.txt      /*ft-moo-syntax*
 ft-msql-syntax syntax.txt      /*ft-msql-syntax*
@@ -7675,6 +7676,8 @@ matchlist()       eval.txt        /*matchlist()*
 matchparen     pi_paren.txt    /*matchparen*
 matchstr()     eval.txt        /*matchstr()*
 matchstrpos()  eval.txt        /*matchstrpos()*
+matlab-indent  indent.txt      /*matlab-indent*
+matlab-indenting       indent.txt      /*matlab-indenting*
 max()  eval.txt        /*max()*
 mbyte-IME      mbyte.txt       /*mbyte-IME*
 mbyte-XIM      mbyte.txt       /*mbyte-XIM*
index dacb52d697ad8decf1b6bfdc6fcd89046781137b..7aeada537c7cc09543254a4043806b893cbd9d78 100644 (file)
@@ -1,4 +1,4 @@
-*version8.txt*  For Vim version 8.1.  Last change: 2019 Dec 07
+*version8.txt*  For Vim version 8.1.  Last change: 2019 Dec 08
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -25817,12 +25817,12 @@ Popup windows                                 *new-popup-window*
 Popup windows can be used to display text on top of other windows.  This can
 be for a simple message such as "Build finished successfully", showing a
 function prototype while editing a function call, a flexible popup menu and
-many other purposes.
+many other purposes.  See |popup-window|.
 
 Popup windows are very flexible: they can be positioned relative to text, an
 absolute position or just in the middle of the screen.  The size can be fixed
-or adjust to the text.  A "zindex" value specifies what popup window goes on
-top of others.
+or adjusts to fit the text.  A "zindex" value specifies what popup window goes
+on top of others.
 
 The new 'wincolor' option allows for setting the color for the whole popup
 window.  This also works for normal windows.
@@ -25831,13 +25831,15 @@ window.  This also works for normal windows.
 Text properties                                        *new-text-properties*
 ---------------
 
-Highlighting of text was done previously with syntax rules or matches.  Text
-properties give a plugin author more flexibility what to highlight.  This can
+Text properties give a plugin author flexibility what to highlight.  This can
 be used with an external asynchronous parser to do syntax highlighting.  Or
-just to highlight text in a popup window.
+to highlight text in a popup window.  The text properties stick with the text
+when characters are deleted or inserted, which makes them also useful as text
+markers. See |text-properties|.
 
-The listener functions have been added so exchange text changes with a server
-to dynamically update highligting, mark errors and the like.
+The listener functions have been added to report text changes to a server so
+that it can dynamically update highligting, mark syntax errors and the like.
+See |listener_add()|.
 
 
 Vim script improvements                                *new-vimscript-8.2*
@@ -25866,7 +25868,7 @@ The |Blob| type was added. This makes it easy to deal with binary data.
 The /= and %= assignment operators were added.
 
 A Dictionary can be defined with literal keys using #{}.  This avoids having
-to use quotes:  >
+to use a lot of quotes:  >
        let options = #{width: 30, height: 24}
 
 
@@ -25876,8 +25878,8 @@ Other improvements                                      *new-other-8.2*
 - When 'incsearch' is set it also applies to `:substitute`.
 - |modifyOtherKeys| was added to allow mapping more key combinations.
 - ConPTY support was added for Windows 10, supports full color in the terminal.
-- The windows installer supports translations, silent install and looks
-  better.
+- The MS-Windows installer supports translations, silent install and looks
+  much better.
 
 
 Changed                                                        *changed-8.2*
@@ -25890,7 +25892,11 @@ The code is using a few more modern C features, such as // comments.
 
 Support for old compilers has been dropped: Borland C++, MSVC 2008.
 
-Hangul input support was removed, it actually didn't work.
+Hangul input support was removed, it actually didn't work anymore.
+
+Makefiles for old Amiga compilers were removed: Dice, Manx and SAS.
+
+If a swap file is found without any changes it is automatically deleted.
 
 The FEAT_TAG_OLDSTATIC code was removed, it slowed down tag searches.
 The FEAT_TAG_ANYWHITE code was removed, is was not enabled in any build.
@@ -41001,6 +41007,60 @@ Files:     src/Makefile, src/testdir/Make_all.mak, src/testdir/Make_vms.mms,
             src/testdir/test39.in, src/testdir/test39.ok,
             src/testdir/test_blockedit.vim, src/testdir/test_visual.vim
 
+Patch 8.1.2401
+Problem:    :cexpr does not handle | in expression.
+Solution:   Remove EX_TRLBAR and set nextcmd pointer.
+Files:     src/testdir/test_quickfix.vim, src/ex_cmds.h, src/quickfix.c
+
+Patch 8.1.2402
+Problem:    Typos and other small things.
+Solution:   Small fixes.
+Files:     .gitignore, src/testdir/shared.vim, src/testdir/test49.vim,
+            src/message.c, src/Makefile
+
+Patch 8.1.2403
+Problem:    Autocmd test fails under valgrind.
+Solution:   Wait a bit longer.
+Files:     src/testdir/test_autocmd.vim
+
+Patch 8.1.2404
+Problem:    Channel test fails under valgrind.
+Solution:   Sleep a bit longer.
+Files:     src/testdir/test_channel.vim
+
+Patch 8.1.2405
+Problem:    matchadd_conceal test fails under valgrind.
+Solution:   Use WaitForAssert() and wait a bit longer.
+Files:     src/testdir/test_matchadd_conceal.vim
+
+Patch 8.1.2406
+Problem:    Leaking memory in test_paste and test_registers.
+Solution:   Free the old title.  Don't copy expr_line.
+Files:     src/term.c, src/os_unix.c, src/register.c
+
+Patch 8.1.2407
+Problem:    proto file and dependenciess outdated.
+Solution:   Update proto files and dependencies.
+Files:     src/Makefile, src/proto/bufwrite.pro, src/proto/cmdhist.pro,
+            src/proto/optionstr.pro, src/proto/popupwin.pro,
+            src/proto/viminfo.pro, src/proto/if_cscope.pro
+
+Patch 8.1.2408
+Problem:    Syntax menu and build instructions outdated.
+Solution:   Update build instructions and syntax menu.
+Files:     Makefile, runtime/makemenu.vim, runtime/synmenu.vim
+
+Patch 8.1.2409
+Problem:    Creating the distribution doesn't work as documented.
+Solution:   Adjust name of uninstall binary. Create src/auto directory if
+            needed.
+Files:     tools/rename.bat, src/Make_mvc.mak
+
+Patch 8.1.2410
+Problem:    MS-Windows: test_iminsert fails without IME support.
+Solution:   Skip the test when imgetstatus() doesn't work.
+Files:     src/testdir/test_iminsert.vim
+
 
 
  vim:tw=78:ts=8:noet:ft=help:norl:
index d2818a18ea86c30c4cfbd5dc515b7efdff9bb7b8..6390445c60b555541a7f86b0cc9dd2a46e35824e 100644 (file)
@@ -29,7 +29,7 @@ if exists("*GetMatlabIndent") | finish | endif
 let s:keepcpo = &cpo
 set cpo&vim
 
-let s:end = '\<end\>\%([^(]*)\)\@!' " Array indexing heuristic
+let s:end = '\<end\>\%([^({]*[)}]\)\@!' " Array indexing heuristic
 let s:open_pat = 'for\|if\|parfor\|spmd\|switch\|try\|while\|classdef\|properties\|methods\|events\|enumeration'
 let s:dedent_pat = '\C^\s*\zs\<\%(end\|else\|elseif\|catch\|\(case\|otherwise\|function\)\)\>'
 let s:start_pat = '\C\<\%(function\|' . s:open_pat . '\)\>'
@@ -38,7 +38,7 @@ let s:zflag = has('patch-7.4.984') ? 'z' : ''
 
 " Returns whether a comment or string envelops the specified column.
 function! s:IsCommentOrString(lnum, col)
-       return synIDattr(synID(a:lnum, a:col, 1), "name") =~# 'matlabComment\|matlabMultilineComment\|matlabString'
+       return synIDattr(synID(a:lnum, a:col, 1), "name") =~# 'matlabComment\|matlabMultilineComment\|matlabCellComment\|matlabString'
 endfunction
 
 " Returns whether the specified line continues on the next line.
@@ -105,7 +105,7 @@ function! GetMatlabIndent()
        else
                " Count how many blocks the previous line opens/closes
                " Line continuations/brackets indent once per statement
-               let result = indent(prevlnum) + shiftwidth() * (open - close
+               let result = (prevlnum > 0) * indent(prevlnum) + shiftwidth() * (open - close
                                        \ + (b:MATLAB_bracketlevel ? -!curbracketlevel : !!curbracketlevel)
                                        \ + (curbracketlevel <= 0) * (above_lc - b:MATLAB_waslc))
        endif
index 5bba1a56ddfd1471d9a83f2dc6a2108c32f3d828..b997ec8d5709a690c772a65010249366fe8a0a78 100644 (file)
@@ -37,6 +37,7 @@ end
 % START_INDENT
 if true
 A(1:end - 1)
+C{1:end - 1}
 disp foo
 end
 % END_INDENT
@@ -49,6 +50,14 @@ disp foo
 disp bar
 % END_INDENT
 
+% START_INDENT
+if true
+% end
+%% end
+disp foo
+end
+% END_INDENT
+
 % START_INDENT
 % INDENT_EXE let b:MATLAB_function_indent = 0
 function foo
index b1112263b20677b5b724c77441263763e995ffac..df4e7b2e3397115495eddfa2ec245ec5b4ea0cc8 100644 (file)
@@ -37,6 +37,7 @@ end
 % START_INDENT
 if true
     A(1:end - 1)
+    C{1:end - 1}
     disp foo
 end
 % END_INDENT
@@ -49,6 +50,14 @@ A = [{
 disp bar
 % END_INDENT
 
+% START_INDENT
+if true
+    % end
+    %% end
+    disp foo
+end
+% END_INDENT
+
 % START_INDENT
 % INDENT_EXE let b:MATLAB_function_indent = 0
 function foo
index 9502c42f3e8287a60eb6b3a1ee8030cbbccb661a..b234a1ad94cb9eaa5045ae8efca03c40fe8986ae 100644 (file)
@@ -116,6 +116,7 @@ for fname in glob('testdir/*.in', 1, 1)
       echoerr 'Test ' . fname . ' FAILED!'
     else
       exe 'write ' . root . '.out'
+      echo "Test " . fname . " OK\n"
     endif
 
     quit!  " close the indented file