]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): clarify how to re-init csv syntax file
authorChristian Brabandt <cb@256bit.org>
Sun, 7 Jul 2024 17:24:36 +0000 (19:24 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 7 Jul 2024 17:24:36 +0000 (19:24 +0200)
fixes: #15161

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/syntax.txt
runtime/doc/tags

index ee8d689e959dc46909289e8028fee5951af26a42..acc4783c80c16fa5166f872a69ee21ff5db55421 100644 (file)
@@ -1,4 +1,4 @@
-*syntax.txt*   For Vim version 9.1.  Last change: 2024 Jul 03
+*syntax.txt*   For Vim version 9.1.  Last change: 2024 Jul 06
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -1221,6 +1221,21 @@ will be classified as tcsh, UNLESS the "filetype_csh" variable exists.  If the
 "filetype_csh" variable exists, the filetype will be set to the value of the
 variable.
 
+CSV                                                    *ft-csv-syntax*
+
+If you change the delimiter of the CSV file, the syntax highlighting will be
+now longer match the changed file content. You will need to unlet the
+following variable: >
+
+       :unlet b:csv_delimiter
+
+And afterwards save and reload the file: >
+
+       :w
+       :e
+
+Now the syntax engine should determine the newly changed csv delimiter.
+
 
 CYNLIB                                         *cynlib.vim* *ft-cynlib-syntax*
 
index 3e524eb0b1cb2c003500a483739e352490d12e32..e72f73927d247f93892f42089ffdb79ee9d3fee9 100644 (file)
@@ -7268,6 +7268,7 @@ ft-context-settings       ft_context.txt  /*ft-context-settings*
 ft-cpp-syntax  syntax.txt      /*ft-cpp-syntax*
 ft-csh-syntax  syntax.txt      /*ft-csh-syntax*
 ft-css-omni    insert.txt      /*ft-css-omni*
+ft-csv-syntax  syntax.txt      /*ft-csv-syntax*
 ft-cweb-syntax syntax.txt      /*ft-cweb-syntax*
 ft-cynlib-syntax       syntax.txt      /*ft-cynlib-syntax*
 ft-dart-syntax syntax.txt      /*ft-dart-syntax*