diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-01-03 19:58:46 +0100 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-04 12:13:49 +0100 |
commit | 9b90657376754a492d19f1daaffb257bf87d09cf (patch) | |
tree | 9bbb9bf0245ed459e0a7390ba18abd1a014cf4ad /runtime/doc/syntax.txt | |
parent | 166b4284c83a6be993be6b185d5ecd168570c7ff (diff) | |
download | rneovim-9b90657376754a492d19f1daaffb257bf87d09cf.tar.gz rneovim-9b90657376754a492d19f1daaffb257bf87d09cf.tar.bz2 rneovim-9b90657376754a492d19f1daaffb257bf87d09cf.zip |
vim-patch:d94ca966ca6d
runtime(fortran): syntax and documentation updates (vim/vim#13811)
closes: vim/vim#13802
https://github.com/vim/vim/commit/d94ca966ca6d85d3dd03c8b68ff6a4cbae4da1af
Co-authored-by: Ajit-Thakkar <142174202+Ajit-Thakkar@users.noreply.github.com>
Diffstat (limited to 'runtime/doc/syntax.txt')
-rw-r--r-- | runtime/doc/syntax.txt | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 36ce0297f3..84121be4d6 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1636,27 +1636,19 @@ Unfortunately, the use of tabs will mean that the syntax file will not be able to detect incorrect margins. Syntax folding of Fortran files ~ -If you wish to use foldmethod=syntax, then you must first set the variable -fortran_fold with a command such as > +Vim will fold your file using foldmethod=syntax, if you set the variable +fortran_fold in your .vimrc with a command such as > :let fortran_fold=1 to instruct the syntax script to define fold regions for program units, that is main programs starting with a program statement, subroutines, function -subprograms, modules, submodules, and block data units. Block, interface, -associate, critical, type definition, and change team constructs will also be -folded. If you also set the variable fortran_fold_conditionals with a command -such as > +subprograms, modules, submodules, blocks of comment lines, and block data +units. Block, interface, associate, critical, type definition, and change team +constructs will also be folded. If you also set the variable +fortran_fold_conditionals with a command such as > :let fortran_fold_conditionals=1 then fold regions will also be defined for do loops, if blocks, select case, -select type, and select rank constructs. If you also set the variable -fortran_fold_multilinecomments with a command such as > - :let fortran_fold_multilinecomments=1 -then fold regions will also be defined for three or more consecutive comment -lines. Note that defining fold regions can be slow for large files. - -If fortran_fold, and possibly fortran_fold_conditionals and/or -fortran_fold_multilinecomments, have been set, then vim will fold your file. -Comments or blank lines placed between two program units are not folded -because they are seen as not belonging to any program unit. +select type, and select rank constructs. Note that defining fold regions can +be slow for large files. The syntax/fortran.vim script contains embedded comments that tell you how to comment and/or uncomment some lines to (a) activate recognition of some |