]> granicus.if.org Git - vim/commitdiff
Update runtime files
authorBram Moolenaar <Bram@vim.org>
Sun, 5 Dec 2021 21:54:04 +0000 (21:54 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 5 Dec 2021 21:54:04 +0000 (21:54 +0000)
27 files changed:
runtime/autoload/dist/ft.vim
runtime/doc/channel.txt
runtime/doc/cmdline.txt
runtime/doc/filetype.txt
runtime/doc/motion.txt
runtime/doc/options.txt
runtime/doc/popup.txt
runtime/doc/quickfix.txt
runtime/doc/sign.txt
runtime/doc/syntax.txt
runtime/doc/tags
runtime/doc/term.txt
runtime/doc/todo.txt
runtime/doc/various.txt
runtime/doc/vim9.txt
runtime/doc/windows.txt
runtime/doc/xxd-fr.1
runtime/doc/xxd-fr.UTF-8.1
runtime/filetype.vim
runtime/indent/vim.vim
runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
runtime/syntax/django.vim
runtime/syntax/squirrel.vim [new file with mode: 0644]
runtime/syntax/vb.vim
runtime/syntax/vim.vim
runtime/tools/demoserver.py
src/xdiff/README.txt

index 74df871544a3087ad0bc58f7bf0053fbb6361b83..a3db4ae87a895b6f431495ef715c65577e1dc3a4 100644 (file)
@@ -1,7 +1,7 @@
 " Vim functions for file type detection
 "
 " Maintainer:  Bram Moolenaar <Bram@vim.org>
-" Last Change: 2020 Aug 17
+" Last Change: 2021 Nov 27
 
 " These functions are moved here from runtime/filetype.vim to make startup
 " faster.
index 39cb43c004758f987cdbd801f894fa18d4adf07b..6124a89458e68d12aa8f9cbeb93446a3750884ed 100644 (file)
@@ -1,4 +1,4 @@
-*channel.txt*      For Vim version 8.2.  Last change: 2020 Oct 17
+*channel.txt*      For Vim version 8.2.  Last change: 2021 Nov 28
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -101,7 +101,7 @@ Instead of giving a callback with every send call, it can also be specified
 when opening the channel: >
        call ch_close(channel)
        let channel = ch_open('localhost:8765', {'callback': "MyHandler"})
-       call ch_sendexpr(channel, 'hello!')
+       call ch_sendexpr(channel, 'hello channel!')
 
 When trying out channels it's useful to see what is going on.  You can tell
 Vim to write lines in log file: >
@@ -132,8 +132,9 @@ When using an IPv6 address, enclose it within square brackets.  E.g.,
        "raw"  - Use raw messages
                                                *channel-callback* *E921*
 "callback"     A function that is called when a message is received that is
-               not handled otherwise.  It gets two arguments: the channel
-               and the received message. Example: >
+               not handled otherwise (e.g. a JSON message with ID zero).  It
+               gets two arguments: the channel and the received message.
+               Example: >
        func Handle(channel, msg)
          echo 'Received: ' . a:msg
        endfunc
index eca741f753d39f3b44507f63e0d11d9c09460292..1dc3ebe5d48820fba00f4eaaa2f9836a06084b0b 100644 (file)
@@ -1,4 +1,4 @@
-*cmdline.txt*   For Vim version 8.2.  Last change: 2021 Nov 22
+*cmdline.txt*   For Vim version 8.2.  Last change: 2021 Dec 04
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -919,9 +919,11 @@ Note: these are typed literally, they are not special keys!
                                                        *:<amatch>* *<amatch>*
        <amatch>   When executing autocommands, is replaced with the match for
                   which this autocommand was executed.  *E497*
-                  It differs from <afile> only when the file name isn't used
-                  to match with (for FileType, Syntax and SpellFileMissing
+                  It differs from <afile> when the file name isn't used to
+                  match with (for FileType, Syntax and SpellFileMissing
                   events).
+                  When the match is with a file name, it is expanded to the
+                  full path.
                                                        *:<sfile>* *<sfile>*
        <sfile>    When executing a ":source" command, is replaced with the
                   file name of the sourced file.  *E498*
index 8cb2e118ad169003548b4e837d25006c936ddb7c..d832e9b1133a55f81fd897ce689d184999d26212 100644 (file)
@@ -539,14 +539,6 @@ Options:
 For further discussion of fortran_have_tabs and the method used for the
 detection of source format see |ft-fortran-syntax|.
 
-GPROF                                                  *ft-gprof-plugin*
-
-The gprof filetype plugin defines a mapping <C-]> to jump from a function
-entry in the gprof flat profile or from a function entry in the call graph
-to the details of that function in the call graph.
-
-The mapping can be disabled with: >
-       let g:no_gprof_maps = 1
 
 GIT COMMIT                                              *ft-gitcommit-plugin*
 
index b50bd65c5ed7ac1fd3b006d43b089f01123121d2..6e243fda949adc4a9b81babd47a92c25e6f303cd 100644 (file)
@@ -1,4 +1,4 @@
-*motion.txt*    For Vim version 8.2.  Last change: 2021 Jun 13
+*motion.txt*    For Vim version 8.2.  Last change: 2021 Dec 04
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -386,6 +386,8 @@ w                   [count] words forward.  |exclusive| motion.
 
 <C-Right>      or                                      *<C-Right>* *W*
 W                      [count] WORDS forward.  |exclusive| motion.
+                       If <C-Right> does not work, check out
+                       |arrow_modifiers|.
 
                                                        *e*
 e                      Forward to the end of word [count] |inclusive|.
@@ -400,6 +402,8 @@ b                   [count] words backward.  |exclusive| motion.
 
 <C-Left>       or                                      *<C-Left>* *B*
 B                      [count] WORDS backward.  |exclusive| motion.
+                       If <C-Left> does not work, check out
+                       |arrow_modifiers|.
 
                                                        *ge*
 ge                     Backward to the end of word [count] |inclusive|.
index 73c92122f97ca1ebd39daf4da6ae3c9190a665af..ee03570ba86d821782b1198a3e2dcb7d981c51dc 100644 (file)
@@ -1,4 +1,4 @@
-*options.txt*  For Vim version 8.2.  Last change: 2021 Nov 24
+*options.txt*  For Vim version 8.2.  Last change: 2021 Dec 03
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -35,6 +35,8 @@ achieve special effects.  These options come in three forms:
                        internally and can't be changed.  Changing the terminal
                        codes in the GUI is not useful either...
 
+:se[t]! termcap                Idem, but don't use multiple columns.
+
                                                                *E518* *E519*
 :se[t] {option}?       Show value of {option}.
 
@@ -869,9 +871,12 @@ A jump table for the options with a short description can be found at |Q_op|.
 'autowrite' 'aw'       boolean (default off)
                        global
        Write the contents of the file, if it has been modified, on each
-       :next, :rewind, :last, :first, :previous, :stop, :suspend, :tag, :!,
-       :make, CTRL-] and CTRL-^ command; and when a :buffer, CTRL-O, CTRL-I,
-       '{A-Z0-9}, or `{A-Z0-9} command takes one to another file.
+       `:next`, `:rewind`, `:last`, `:first`, `:previous`, `:stop`,
+       `:suspend`, `:tag, `:!`, ``:make`, CTRL-] and CTRL-^ command; and when
+       a :buffer, CTRL-O, CTRL-I, '{A-Z0-9}, or `{A-Z0-9} command takes one
+       to another file.
+       A buffer is not written if it becomes hidden, e.g. when 'bufhidden' is
+       set to "hide" and `:next` is used
        Note that for some commands the 'autowrite' option is not used, see
        'autowriteall' for that.
        Some buffers will not be written, specifically when 'buftype' is
index 904abe73b104ea28bc389067aae13a13c6170b53..b4d770245f1f57373e73771b0478b1115ffd44f1 100644 (file)
@@ -1,4 +1,4 @@
-*popup.txt*  For Vim version 8.2.  Last change: 2021 Aug 15
+*popup.txt*  For Vim version 8.2.  Last change: 2021 Nov 29
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
index 9ebefa956dddd26e1d063b2f00626ed83aec2666..47ead217f979887a18628ab57a142c19e2003869 100644 (file)
@@ -1,4 +1,4 @@
-*quickfix.txt*  For Vim version 8.2.  Last change: 2021 May 22
+*quickfix.txt*  For Vim version 8.2.  Last change: 2021 Dec 03
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -856,9 +856,9 @@ lists.  They set one of the existing error lists as the current one.
                                                *:chistory* *:chi*
 :[count]chi[story]     Show the list of error lists.  The current list is
                        marked with ">".  The output looks like:
-                                 error list 1 of 3; 43 errors ~
-                               > error list 2 of 3; 0 errors ~
-                                 error list 3 of 3; 15 errors ~
+                         error list 1 of 3; 43 errors   :make  ~
+                       > error list 2 of 3; 0 errors    :helpgrep tag  ~
+                         error list 3 of 3; 15 errors   :grep ex_help *.c ~
 
                        When [count] is given, then the count'th quickfix
                        list is made the current list. Example: >
index 489f3d8b520ec51258279598406c50560f9a128a..7976cecca839cf8a4da2d9bb3a01fb2a350a93f7 100644 (file)
@@ -1,4 +1,4 @@
-*sign.txt*      For Vim version 8.2.  Last change: 2021 Mar 07
+*sign.txt*      For Vim version 8.2.  Last change: 2021 Dec 05
 
 
                  VIM REFERENCE MANUAL    by Gordon Prieur
@@ -441,14 +441,16 @@ sign_getdefined([{name}])                         *sign_getdefined()*
                following entries:
                   icon         full path to the bitmap file of the sign
                   linehl       highlight group used for the whole line the
-                               sign is placed in.
+                               sign is placed in; not present if not set
                   name         name of the sign
                   text         text that is displayed when there is no icon
                                or the GUI is not being used.
-                  texthl       highlight group used for the text item
+                  texthl       highlight group used for the text item; not
+                               present if not set
                   culhl        highlight group used for the text item when
                                the cursor is on the same line as the sign and
-                               'cursorline' is enabled.
+                               'cursorline' is enabled; not present if not
+                               set
 
                Returns an empty List if there are no signs and when {name} is
                not found.
index 3bc5cf4b0a1df6e61a299ff65a9ed29bcee14657..0101b51b6451001322a95f9fb07384efd7be3815 100644 (file)
@@ -3196,6 +3196,14 @@ buffer by buffer basis.
 For more detailed instructions see |ft_sql.txt|.
 
 
+SQUIRREL                               *squirrel.vim* *ft-squirrel-syntax*
+
+Squirrel is a high level imperative, object-oriented programming language,
+designed to be a light-weight scripting language that fits in the size, memory
+bandwidth, and real-time requirements of applications like video games.  Files
+with the following extensions are recognized as squirrel files: .nut.
+
+
 TCSH                                           *tcsh.vim* *ft-tcsh-syntax*
 
 This covers the shell named "tcsh".  It is a superset of csh.  See |csh.vim|
index 768b98c6e433104469b62c3154be9f4349af1f0f..f694ba2bc598e2b9c42930a4400cb483a0088456 100644 (file)
@@ -3951,7 +3951,6 @@ E107      eval.txt        /*E107*
 E108   eval.txt        /*E108*
 E109   eval.txt        /*E109*
 E1091  vim9.txt        /*E1091*
-E1092  vim9.txt        /*E1092*
 E1094  vim9.txt        /*E1094*
 E11    cmdline.txt     /*E11*
 E110   eval.txt        /*E110*
@@ -5463,6 +5462,7 @@ arglistid()       eval.txt        /*arglistid()*
 argument-list  editing.txt     /*argument-list*
 argv() eval.txt        /*argv()*
 argv-variable  eval.txt        /*argv-variable*
+arrow_modifiers        term.txt        /*arrow_modifiers*
 as     motion.txt      /*as*
 asin() eval.txt        /*asin()*
 asm.vim        syntax.txt      /*asm.vim*
@@ -6562,6 +6562,7 @@ format-bullet-list        tips.txt        /*format-bullet-list*
 format-comments        change.txt      /*format-comments*
 format-formatexpr      change.txt      /*format-formatexpr*
 formatting     change.txt      /*formatting*
+forth.vim      syntax.txt      /*forth.vim*
 fortran.vim    syntax.txt      /*fortran.vim*
 friendship     intro.txt       /*friendship*
 frombook       usr_01.txt      /*frombook*
@@ -6615,6 +6616,7 @@ ft-erlang-syntax  syntax.txt      /*ft-erlang-syntax*
 ft-euphoria-syntax     syntax.txt      /*ft-euphoria-syntax*
 ft-flexwiki-syntax     syntax.txt      /*ft-flexwiki-syntax*
 ft-form-syntax syntax.txt      /*ft-form-syntax*
+ft-forth-syntax        syntax.txt      /*ft-forth-syntax*
 ft-fortran-indent      indent.txt      /*ft-fortran-indent*
 ft-fortran-plugin      filetype.txt    /*ft-fortran-plugin*
 ft-fortran-syntax      syntax.txt      /*ft-fortran-syntax*
@@ -6706,6 +6708,7 @@ ft-sql-omni       insert.txt      /*ft-sql-omni*
 ft-sql-syntax  syntax.txt      /*ft-sql-syntax*
 ft-sqlanywhere-syntax  syntax.txt      /*ft-sqlanywhere-syntax*
 ft-sqlinformix-syntax  syntax.txt      /*ft-sqlinformix-syntax*
+ft-squirrel-syntax     syntax.txt      /*ft-squirrel-syntax*
 ft-syntax-omni insert.txt      /*ft-syntax-omni*
 ft-tcsh-syntax syntax.txt      /*ft-tcsh-syntax*
 ft-termcap-syntax      syntax.txt      /*ft-termcap-syntax*
@@ -9242,6 +9245,7 @@ sqlj      ft_sql.txt      /*sqlj*
 sqlserver      ft_sql.txt      /*sqlserver*
 sqlsettype     ft_sql.txt      /*sqlsettype*
 sqrt() eval.txt        /*sqrt()*
+squirrel.vim   syntax.txt      /*squirrel.vim*
 srand()        eval.txt        /*srand()*
 sscanf eval.txt        /*sscanf*
 standard-plugin        usr_05.txt      /*standard-plugin*
index d6f31d379c569d531652f277ea67a2574eb76748..3333a3ab6fece68c529d316b3e0ec45170d56b60 100644 (file)
@@ -1,4 +1,4 @@
-*term.txt*      For Vim version 8.2.  Last change: 2021 Aug 29
+*term.txt*      For Vim version 8.2.  Last change: 2021 Dec 04
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -151,7 +151,7 @@ terminal that tmux is running in): >
         let &t_fe = "\<Esc>[?1004h"
         let &t_fd = "\<Esc>[?1004l"
 
-        " Enable modified arrow keys, see  :help xterm-modifier-keys
+        " Enable modified arrow keys, see  :help arrow_modifiers
         execute "silent! set <xUp>=\<Esc>[@;*A"
         execute "silent! set <xDown>=\<Esc>[@;*B"
         execute "silent! set <xRight>=\<Esc>[@;*C"
@@ -252,7 +252,19 @@ another code.  That is to avoid that the codes obtained from xterm directly
 Another special value is a termcap entry ending in "@;*X".  This is for cursor
 keys, which either use "CSI X" or "CSI 1 ; modifier X".  Thus the "@"
 stands for either "1" if a modifier follows, or nothing.
-                                                       *xterm-scroll-region*
+                                                       *arrow_modifiers*
+Several terminal emulators (alacritty, gnome, konsole, etc.) send special
+codes for keys with modifiers, but these do not have an entry in the
+termcap/terminfo database.  You can make them work by adding a few lines in
+your vimrc.  For example, to make the Control modifier work with arrow keys
+for the gnome terminal: >
+       if &term =~ 'gnome'
+          execute "set <xUp>=\<Esc>[@;*A"
+          execute "set <xDown>=\<Esc>[@;*B"
+          execute "set <xRight>=\<Esc>[@;*C"
+          execute "set <xLeft>=\<Esc>[@;*D"
+       endif
+<                                                      *xterm-scroll-region*
 The default termcap entry for xterm on Sun and other platforms does not
 contain the entry for scroll regions.  Add ":cs=\E[%i%d;%dr:" to the xterm
 entry in /etc/termcap and everything should work.
index 4793abd8321d48fb5473a0d21421249f33b6ac12..1772aa1e92b58c3809f4944066a24419ca6eb581 100644 (file)
@@ -1,4 +1,4 @@
-*todo.txt*      For Vim version 8.2.  Last change: 2021 Nov 26
+*todo.txt*      For Vim version 8.2.  Last change: 2021 Dec 05
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -38,13 +38,7 @@ browser use: https://github.com/vim/vim/issues/1234
                                                        *known-bugs*
 -------------------- Known bugs and current work -----------------------
 
-refactor ex_let_one() to subfunctions.
-
 Vim9 - Make everything work:
-- "filter #pat# ls" should work, #pat# is not a comment
-    vim9script
-    edit foobar
-    filter #foobar# ls
 - Check TODO items in vim9compile.c and vim9execute.c
 - use CheckLegacyAndVim9Success(lines) in many more places
 - For builtin functions using tv_get_string*() use check_for_string() to be
@@ -263,6 +257,10 @@ test_arglist func Test_all_not_allowed_from_cmdwin() hangs on MS-Windows.
 
 Mapping with partial match not executed properly in GTK. (Ingo Karkat, #7082)
 
+Information for a specific terminal (e.g. gnome, tmux, konsole, alacritty) is
+spread out.  Make a section with copy/paste examples of script and pointers to
+more information.
+
 Problem that a previous silent ":throw" causes a following try/catch not to
 work. (ZyX, 2013 Sep 28) With examples: (Malcolm Rowe, 2015 Dec 24)
 Also see #8487 for an example.
@@ -1470,10 +1468,6 @@ When the CursorMovedI event triggers, and CTRL-X was typed, a script cannot
 restore the mode properly. (Andrew Stewart, 2016 Apr 20)
 Do not trigger the event?
 
-Patch to fix display of listchars on the cursorline. (Nayuri Aohime, 2013)
-Update suggested by Yasuhiro Matsumoto, 2014 Nov 25:
-https://gist.github.com/presuku/d3d6b230b9b6dcfc0477
-
 Patch to make the behavior of "w" more straightforward, but not Vi compatible.
 With a 'cpo' flag.  (Christian Brabandt, 2016 Feb 8)
 
index 290eb4f1cff389fb650070ed79e73a19bdcf1fa0..3f750cd87419ea0f74e65d737966b2efc13cf4b3 100644 (file)
@@ -1,4 +1,4 @@
-*various.txt*   For Vim version 8.2.  Last change: 2021 Sep 06
+*various.txt*   For Vim version 8.2.  Last change: 2021 Nov 30
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -369,7 +369,7 @@ N  *+digraphs*              |digraphs| *E196*
    *+dnd*              Support for DnD into the "~ register |quote_~|.
 B  *+emacs_tags*       |emacs-tags| files
 N  *+eval*             expression evaluation |eval.txt|
-N  *+ex_extra*         always on now, used to be for Vim's extra Ex commands
+T  *+ex_extra*         always on now, used to be for Vim's extra Ex commands
 N  *+extra_search*     |'hlsearch'| and |'incsearch'| options.
 -  *+farsi*            Removed: |farsi| language
 N  *+file_in_path*     |gf|, |CTRL-W_f| and |<cfile>|
@@ -423,7 +423,7 @@ N  *+multi_lang*    non-English language support |multi-lang|
 m  *+mzscheme*         Mzscheme interface |mzscheme|
 m  *+mzscheme/dyn*     Mzscheme interface |mzscheme-dynamic| |/dyn|
 m  *+netbeans_intg*    |netbeans|
-   *+num64*            64-bit Number support |Number|
+T  *+num64*            64-bit Number support |Number|
                        Always enabled since 8.2.0271, use v:numbersize to
                        check the actual size of a Number.
 m  *+ole*              Win32 GUI only: |ole-interface|
@@ -471,15 +471,15 @@ N  *+textobjects* |text-objects| selection
 N  *+textprop*         |text-properties|
    *+tgetent*          non-Unix only: able to use external termcap
 N  *+timers*           the |timer_start()| function
-N  *+title*            Setting the window 'title' and 'icon'; Always enabled
+T  *+title*            Setting the window 'title' and 'icon'; Always enabled
 N  *+toolbar*          |gui-toolbar|
 T  *+user_commands*    User-defined commands. |user-commands|
                        Always enabled since 8.1.1210.
 B  *+vartabs*          Variable-width tabstops. |'vartabstop'|
 N  *+viminfo*          |'viminfo'|
-   *+vertsplit*                Vertically split windows |:vsplit|; Always enabled
+T  *+vertsplit*                Vertically split windows |:vsplit|; Always enabled
                        since 8.0.1118.
-N  *+virtualedit*      |'virtualedit'| Always enabled since 8.1.826.
+T  *+virtualedit*      |'virtualedit'| Always enabled since 8.1.826.
 T  *+visual*           Visual mode |Visual-mode| Always enabled since 7.4.200.
 T  *+visualextra*      extra Visual mode commands |blockwise-operators|
 T  *+vreplace*         |gR| and |gr|
index 9329aa9c7ca9f7cd025d9ec5c54f70c78b29017e..856ec2f118b2362acaae06e2947d718979be019d 100644 (file)
@@ -1,4 +1,4 @@
-*vim9.txt*     For Vim version 8.2.  Last change: 2021 Nov 22
+*vim9.txt*     For Vim version 8.2.  Last change: 2021 Dec 01
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -234,9 +234,10 @@ the "name#" prefix is sufficient. >
        def scriptname#function()   # autoload
 
 When using `:function` or `:def` to specify a nested function inside a `:def`
-function, this nested function is local to the code block it is defined in.
-In a `:def` function it is not possible to define a script-local function.  It
-is possible to define a global function by using the "g:" prefix.
+function and no namespace was given, this nested function is local to the code
+block it is defined in.  In a `:def` function it is not possible to define a
+script-local function.  It is possible to define a global function by using
+the "g:" prefix.
 
 When referring to a function and no "s:" or "g:" prefix is used, Vim will
 search for the function:
@@ -820,10 +821,16 @@ error.  Example: >
 
 For loop ~
 
-The loop variable must not exist yet: >
+The loop variable must not be declared yet: >
        var i = 1
        for i in [1, 2, 3]   # Error!
 
+It is possible to use a global variable though: >
+       g:i = 1
+       for g:i in [1, 2, 3]
+         echo g:i
+       endfor
+
 Legacy Vim script has some tricks to make a for loop over a list handle
 deleting items at the current or previous item.  In Vim9 script it just uses
 the index, if items are deleted then items in the list will be skipped.
index c288377caa95fca02e0461dd5c8adb044a121184..2f608352db73efdfe9e789022e5de7845602170d 100644 (file)
@@ -1,4 +1,4 @@
-*windows.txt*   For Vim version 8.2.  Last change: 2021 Sep 09
+*windows.txt*   For Vim version 8.2.  Last change: 2021 Nov 29
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -1203,6 +1203,8 @@ list of buffers. |unlisted-buffer|
                the current buffer remains being edited.  See |:buffer-!| for
                [!].  This will also edit a buffer that is not in the buffer
                list, without setting the 'buflisted' flag.
+               The notation with single quotes does not work here,
+               `:buf 12'345'` uses 12'345 as a buffer name.
                Also see |+cmd|.
 
 :[N]b[uffer][!] [+cmd] {bufname}                               *{bufname}*
index a50336e17cb873f056b6b1f8c906ad0c73a09137..e170df5d7700960e055851063bb7d5fedb2e4e60 100644 (file)
@@ -111,7 +111,7 @@ octets.
 .TP
 .IR \-p " | " \-ps " | " \-postscript " | " \-plain
 Produit une conversion continue dans le style Postscript (postscript continuous
-hexdumd style).
+hexdump style).
 Également connu sous le nom de « conversion brute » (plain hexdump style).
 .TP
 .IR \-r " | " \-revert
index c00eff88c1c8092f6fe7783df8fa615c82549fcc..47773a136329531234caa80e37bfe7e400394638 100644 (file)
@@ -111,7 +111,7 @@ octets.
 .TP
 .IR \-p " | " \-ps " | " \-postscript " | " \-plain
 Produit une conversion continue dans le style Postscript (postscript continuous
-hexdumd style).
+hexdump style).
 Également connu sous le nom de « conversion brute » (plain hexdump style).
 .TP
 .IR \-r " | " \-revert
index 705c2dce4ad7228086b966baf2ab9dc0bc23c8b3..87d1f48f75afa15b30135e88c39c22958491dae1 100644 (file)
@@ -1,7 +1,7 @@
 " Vim support file to detect file types
 "
 " Maintainer:  Bram Moolenaar <Bram@vim.org>
-" Last Change: 2021 Nov 16
+" Last Change: 2021 Dec 03
 
 " Listen very carefully, I will say this only once
 if exists("did_load_filetypes")
index d5d0d94b52b205c8683c63bbbcfdd6099f23e6a1..733584a67d42ca440d34687cca3ec0045e8c5152 100644 (file)
@@ -1,7 +1,7 @@
 " Vim indent file
 " Language:    Vim script
 " Maintainer:  Bram Moolenaar <Bram@vim.org>
-" Last Change: 2021 Nov 03
+" Last Change: 2021 Nov 27
 
 " Only load this indent file when no other was loaded.
 if exists("b:did_indent")
@@ -12,6 +12,7 @@ let b:did_indent = 1
 setlocal indentexpr=GetVimIndent()
 setlocal indentkeys+==end,=},=else,=cat,=finall,=END,0\\,0=\"\\\ 
 setlocal indentkeys-=0#
+setlocal indentkeys-=:
 
 let b:undo_indent = "setl indentkeys< indentexpr<"
 
index 24161d5231ac2d71f90d28127ab6a65e69de5db8..e2d23475eb5b86db44de9880529f476696bbc9ab 100644 (file)
@@ -2,7 +2,7 @@
 "
 " Author: Bram Moolenaar
 " Copyright: Vim license applies, see ":help license"
-" Last Change: 2021 Nov 27
+" Last Change: 2021 Nov 29
 "
 " WORK IN PROGRESS - Only the basics work
 " Note: On MS-Windows you need a recent version of gdb.  The one included with
@@ -479,7 +479,7 @@ func s:StartDebugCommon(dict)
   " Run the command if the bang attribute was given and got to the debug
   " window.
   if get(a:dict, 'bang', 0)
-    call s:SendCommand('-exec-run')
+    call s:SendResumingCommand('-exec-run')
     call win_gotoid(s:ptywin)
   endif
 endfunc
@@ -512,9 +512,14 @@ func TermDebugSendCommand(cmd)
   endif
 endfunc
 
-" Send a command only when stopped.  Used for :Next and :Step.
-func s:SendCommandIfStopped(cmd)
+" Send a command that resumes the program.  If the program isn't stopped the
+" command is not sent (to avoid a repeated command to cause trouble).
+" If the command is sent then reset s:stopped.
+func s:SendResumingCommand(cmd)
   if s:stopped
+    " reset s:stopped here, it may take a bit of time before we get a response
+    let s:stopped = 0
+    call ch_log('assume that program is running after this command')
     call s:SendCommand(a:cmd)
   else
     call ch_log('dropping command, program is running: ' . a:cmd)
@@ -808,11 +813,11 @@ func s:InstallCommands()
 
   command -nargs=? Break call s:SetBreakpoint(<q-args>)
   command Clear call s:ClearBreakpoint()
-  command Step call s:SendCommandIfStopped('-exec-step')
-  command Over call s:SendCommandIfStopped('-exec-next')
-  command Finish call s:SendCommandIfStopped('-exec-finish')
+  command Step call s:SendResumingCommand('-exec-step')
+  command Over call s:SendResumingCommand('-exec-next')
+  command Finish call s:SendResumingCommand('-exec-finish')
   command -nargs=* Run call s:Run(<q-args>)
-  command -nargs=* Arguments call s:SendCommand('-exec-arguments ' . <q-args>)
+  command -nargs=* Arguments call s:SendResumingCommand('-exec-arguments ' . <q-args>)
 
   if s:way == 'prompt'
     command Stop call s:PromptInterrupt()
@@ -995,9 +1000,9 @@ endfunc
 
 func s:Run(args)
   if a:args != ''
-    call s:SendCommand('-exec-arguments ' . a:args)
+    call s:SendResumingCommand('-exec-arguments ' . a:args)
   endif
-  call s:SendCommand('-exec-run')
+  call s:SendResumingCommand('-exec-run')
 endfunc
 
 func s:SendEval(expr)
index d3ca4de0e232b0fa8b486f13052fd351ca6d7d80..76b47d2e597751574750f88388bff5f112b48b91 100644 (file)
@@ -1,7 +1,7 @@
 " Vim syntax file
 " Language:    Django template
 " Maintainer:  Dave Hodder <dmh@dmh.org.uk>
-" Last Change: 2014 Jul 13
+" Last Change: 2021 Nov 29
 
 " quit when a syntax file was already loaded
 if exists("b:current_syntax")
@@ -31,6 +31,7 @@ syn keyword djangoStatement contained closecomment widthratio url with endwith
 syn keyword djangoStatement contained get_current_language trans noop blocktrans
 syn keyword djangoStatement contained endblocktrans get_available_languages
 syn keyword djangoStatement contained get_current_language_bidi plural
+syn keyword djangoStatement contained translate blocktranslate endblocktranslate
 
 " Django templete built-in filters
 syn keyword djangoFilter contained add addslashes capfirst center cut date
diff --git a/runtime/syntax/squirrel.vim b/runtime/syntax/squirrel.vim
new file mode 100644 (file)
index 0000000..81d59cc
--- /dev/null
@@ -0,0 +1,50 @@
+" Vim syntax file
+" Language: squirrel
+" Current Maintainer: Matt Dunford (zenmatic@gmail.com)
+" URL: https://github.com/zenmatic/vim-syntax-squirrel
+" Last Change: 2021 Nov 28
+
+" http://squirrel-lang.org/
+
+" quit when a syntax file was already loaded
+if exists("b:current_syntax")
+  finish
+endif
+
+" inform C syntax that the file was included from cpp.vim
+let b:filetype_in_cpp_family = 1
+
+" Read the C syntax to start with
+runtime! syntax/c.vim
+unlet b:current_syntax
+
+" squirrel extensions
+syn keyword squirrelStatement  delete this in yield resume base clone
+syn keyword squirrelAccess     local
+syn keyword cConstant           null
+syn keyword squirrelModifier   static
+syn keyword squirrelType       bool instanceof typeof
+syn keyword squirrelExceptions throw try catch
+syn keyword squirrelStructure  class function extends constructor
+syn keyword squirrelBoolean    true false
+syn keyword squirrelRepeat     foreach
+
+syn region squirrelMultiString start='@"' end='"$' end='";$'me=e-1
+
+syn match squirrelShComment "^\s*#.*$"
+
+" Default highlighting
+hi def link squirrelAccess             squirrelStatement
+hi def link squirrelExceptions         Exception
+hi def link squirrelStatement          Statement
+hi def link squirrelModifier           Type
+hi def link squirrelType               Type
+hi def link squirrelStructure          Structure
+hi def link squirrelBoolean            Boolean
+hi def link squirrelMultiString                String
+hi def link squirrelRepeat             cRepeat
+hi def link squirrelShComment          Comment
+
+let b:current_syntax = "squirrel"
+
+" vim: ts=8
index 8ddb1efac39a653ab62b3c589d146ef5d83b105a..607f6130ba3c89ff4583a61fddd73bd40ef8d40d 100644 (file)
@@ -1,9 +1,11 @@
 " Vim syntax file
-" Language:    Visual Basic
-" Maintainer:  Tim Chase <vb.vim@tim.thechases.com>
-" Former Maintainer:   Robert M. Cortopassi <cortopar@mindspring.com>
-"      (tried multiple times to contact, but email bounced)
+" Language:     Visual Basic
+" Maintainer:   Doug Kearns <dougkearns@gmail.com>
+" Former Maintainer:    Tim Chase <vb.vim@tim.thechases.com>
+" Former Maintainer:    Robert M. Cortopassi <cortopar@mindspring.com>
+"       (tried multiple times to contact, but email bounced)
 " Last Change:
+"   2021 Nov 26  Incorporated additions from Doug Kearns
 "   2005 May 25  Synched with work by Thomas Barthel
 "   2004 May 30  Added a few keywords
 
@@ -13,7 +15,7 @@
 
 " quit when a syntax file was already loaded
 if exists("b:current_syntax")
-       finish
+        finish
 endif
 
 " VB is case insensitive
@@ -233,7 +235,7 @@ syn keyword vbKeyword Public PublicNotCreateable OnNewProcessSingleUse
 syn keyword vbKeyword InSameProcessMultiUse GlobalMultiUse Resume Seek
 syn keyword vbKeyword Set Static Step String Time WithEvents
 
-syn keyword vbTodo contained   TODO
+syn keyword vbTodo contained    TODO
 
 "Datatypes
 syn keyword vbTypes Boolean Byte Currency Date Decimal Double Empty
@@ -319,46 +321,54 @@ syn match vbNumber "\<\d\+\>"
 syn match vbNumber "\<\d\+\.\d*\>"
 "floating point number, starting with a dot
 syn match vbNumber "\.\d\+\>"
-"syn match  vbNumber           "{[[:xdigit:]-]\+}\|&[hH][[:xdigit:]]\+&"
-"syn match  vbNumber           ":[[:xdigit:]]\+"
-"syn match  vbNumber           "[-+]\=\<\d\+\>"
-syn match  vbFloat             "[-+]\=\<\d\+[eE][\-+]\=\d\+"
-syn match  vbFloat             "[-+]\=\<\d\+\.\d*\([eE][\-+]\=\d\+\)\="
-syn match  vbFloat             "[-+]\=\<\.\d\+\([eE][\-+]\=\d\+\)\="
+"syn match  vbNumber            "{[[:xdigit:]-]\+}\|&[hH][[:xdigit:]]\+&"
+"syn match  vbNumber            ":[[:xdigit:]]\+"
+"syn match  vbNumber            "[-+]\=\<\d\+\>"
+syn match  vbFloat              "[-+]\=\<\d\+[eE][\-+]\=\d\+"
+syn match  vbFloat              "[-+]\=\<\d\+\.\d*\([eE][\-+]\=\d\+\)\="
+syn match  vbFloat              "[-+]\=\<\.\d\+\([eE][\-+]\=\d\+\)\="
 
-" String and Character contstants
+" String and Character constants
 syn region  vbString           start=+"+  end=+"\|$+
 syn region  vbComment          start="\(^\|\s\)REM\s" end="$" contains=vbTodo
 syn region  vbComment          start="\(^\|\s\)\'"   end="$" contains=vbTodo
-syn match   vbLineNumber       "^\d\+\(\s\|$\)"
-syn match   vbTypeSpecifier  "[a-zA-Z0-9][\$%&!#]"ms=s+1
+syn match   vbLineLabel                "^\h\w\+:"
+syn match   vbLineNumber       "^\d\+\(:\|\s\|$\)"
+syn match   vbTypeSpecifier  "\<\a\w*[@\$%&!#]"ms=s+1
 syn match   vbTypeSpecifier  "#[a-zA-Z0-9]"me=e-1
+" Conditional Compilation
+syn match  vbPreProc "^#const\>"
+syn region vbPreProc matchgroup=PreProc start="^#if\>"     end="\<then\>" transparent contains=TOP
+syn region vbPreProc matchgroup=PreProc start="^#elseif\>" end="\<then\>" transparent contains=TOP
+syn match  vbPreProc "^#else\>"
+syn match  vbPreProc "^#end\s*if\>"
 
 " Define the default highlighting.
 " Only when an item doesn't have highlighting yet
 
-hi def link vbBoolean          Boolean
-hi def link vbLineNumber               Comment
-hi def link vbComment          Comment
-hi def link vbConditional      Conditional
-hi def link vbConst                    Constant
-hi def link vbDefine                   Constant
-hi def link vbError                    Error
-hi def link vbFunction         Identifier
-hi def link vbIdentifier               Identifier
-hi def link vbNumber                   Number
-hi def link vbFloat                    Float
-hi def link vbMethods          PreProc
-hi def link vbOperator         Operator
-hi def link vbRepeat                   Repeat
-hi def link vbString                   String
-hi def link vbStatement                Statement
-hi def link vbKeyword          Statement
-hi def link vbEvents                   Special
-hi def link vbTodo                     Todo
-hi def link vbTypes                    Type
-hi def link vbTypeSpecifier    Type
-
+hi def link vbBoolean           Boolean
+hi def link vbLineNumber        Comment
+hi def link vbLineLabel         Comment
+hi def link vbComment           Comment
+hi def link vbConditional       Conditional
+hi def link vbConst             Constant
+hi def link vbDefine            Constant
+hi def link vbError             Error
+hi def link vbFunction          Identifier
+hi def link vbIdentifier        Identifier
+hi def link vbNumber            Number
+hi def link vbFloat             Float
+hi def link vbMethods           PreProc
+hi def link vbOperator          Operator
+hi def link vbRepeat            Repeat
+hi def link vbString            String
+hi def link vbStatement         Statement
+hi def link vbKeyword           Statement
+hi def link vbEvents            Special
+hi def link vbTodo              Todo
+hi def link vbTypes             Type
+hi def link vbTypeSpecifier     Type
+hi def link vbPreProc           PreProc
 
 let b:current_syntax = "vb"
 
index ab948d90acb4fa1b77325e926ed69f9794cc9332..40e131ef9729c1026b0b4b0a9be1847cbe1f3952 100644 (file)
@@ -1,8 +1,8 @@
 " Vim syntax file
 " Language:    Vim 8.2 script
 " Maintainer:  Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
-" Last Change: Nov 25, 2021
-" Version:     8.2-17
+" Last Change: December 02, 2021
+" Version:     8.2-18
 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_VIM
 " Automatically generated keyword lists: {{{1
 
@@ -73,7 +73,7 @@ syn keyword vimAutoEvent contained    BufCreate BufEnter BufFilePre BufLeave BufNew
 syn keyword vimGroup contained Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo
 
 " Default highlighting groups {{{2
-syn keyword vimHLGroup contained       ColorColumn Cursor CursorColumn CursorIM CursorLine CursorLineNr DiffAdd DiffChange DiffDelete DiffText Directory EndOfBuffer ErrorMsg FoldColumn Folded IncSearch LineNr LineNrAbove LineNrBelow MatchParen Menu ModeMsg MoreMsg NonText Normal Pmenu PmenuSbar PmenuSel PmenuThumb Question QuickFixLine Scrollbar Search SignColumn SpecialKey SpellBad SpellCap SpellLocal SpellRare StatusLine StatusLineNC StatusLineTerm TabLine TabLineFill TabLineSel Terminal Title Tooltip VertSplit Visual VisualNOS WarningMsg WildMenu
+syn keyword vimHLGroup contained       ColorColumn Cursor CursorColumn CursorIM CursorLine CursorLineFold CursorLineNr CursorLineSign DiffAdd DiffChange DiffDelete DiffText Directory EndOfBuffer ErrorMsg FoldColumn Folded IncSearch LineNr LineNrAbove LineNrBelow MatchParen Menu ModeMsg MoreMsg NonText Normal Pmenu PmenuSbar PmenuSel PmenuThumb Question QuickFixLine Scrollbar Search SignColumn SpecialKey SpellBad SpellCap SpellLocal SpellRare StatusLine StatusLineNC StatusLineTerm TabLine TabLineFill TabLineSel Terminal Title Tooltip VertSplit Visual VisualNOS WarningMsg WildMenu
 syn match vimHLGroup contained "Conceal"
 syn case match
 
index 00fe8bfbca4f02e906716ce094df1cc47bc92520..150ddbee7c3f909ea1d5e6e9efd1bcf31d20b98a 100644 (file)
@@ -62,9 +62,16 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
             if decoded[0] >= 0:
                 if decoded[1] == 'hello!':
                     response = "got it"
+                    id = decoded[0]
+                elif decoded[1] == 'hello channel!':
+                    response = "got that"
+                    # response is not to a specific message callback but to the
+                    # channel callback, need to use ID zero
+                    id = 0
                 else:
                     response = "what?"
-                encoded = json.dumps([decoded[0], response])
+                    id = decoded[0]
+                encoded = json.dumps([id, response])
                 print("sending {0}".format(encoded))
                 self.request.sendall(encoded.encode('utf-8'))
         thesocket = None
index 95b2242b877db805ed163c11d6990af6ae687b49..9e01a3c679fb9334503b951b8f97f804b4ba26f5 100644 (file)
@@ -13,4 +13,7 @@ COPYING file.
 
 Changes in these files were made to avoid compiler warnings.
 
+The /* */ comments are kept to make syncing to a newer version easier, do not
+change them to // comments!
+
 The first work for including xdiff in Vim was done by Christian Brabandt.