annotate runtime/ftplugin/asm.vim @ 35121:28f2e09012ac default tip

runtime(doc): Fix typos in help documents Commit: https://github.com/vim/vim/commit/53753f6a49253cdb3f98f6461d3de3b07ed67451 Author: h-east <h.east.727@gmail.com> Date: Sun May 5 18:42:31 2024 +0200 runtime(doc): Fix typos in help documents closes: https://github.com/vim/vim/issues/14720 Co-authored-by: Christian Clason <c.clason@uni-graz.at> Signed-off-by: h-east <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 05 May 2024 18:45:09 +0200
parents 900719093984
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20753
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim filetype plugin file
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: asm
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Colin Caine <cmcaine at the common googlemail domain>
34879
900719093984 ftplugin(asm): add Matchit support
Christian Brabandt <cb@256bit.org>
parents: 33051
diff changeset
4 " Last Change: 2020 May 23
33051
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 20753
diff changeset
5 " 2023 Aug 28 by Vim Project (undo_ftplugin)
34879
900719093984 ftplugin(asm): add Matchit support
Christian Brabandt <cb@256bit.org>
parents: 33051
diff changeset
6 " 2024 Apr 09 by Vim Project (add Matchit support)
20753
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 if exists("b:did_ftplugin") | finish | endif
33051
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 20753
diff changeset
9 let b:did_ftplugin = 1
20753
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
34879
900719093984 ftplugin(asm): add Matchit support
Christian Brabandt <cb@256bit.org>
parents: 33051
diff changeset
11 setl include=^\\s*%\\s*include
20753
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 setl comments=:;,s1:/*,mb:*,ex:*/,://
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 setl commentstring=;%s
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14
34879
900719093984 ftplugin(asm): add Matchit support
Christian Brabandt <cb@256bit.org>
parents: 33051
diff changeset
15 let b:undo_ftplugin = "setl commentstring< comments< include<"
900719093984 ftplugin(asm): add Matchit support
Christian Brabandt <cb@256bit.org>
parents: 33051
diff changeset
16
900719093984 ftplugin(asm): add Matchit support
Christian Brabandt <cb@256bit.org>
parents: 33051
diff changeset
17 " Matchit support
900719093984 ftplugin(asm): add Matchit support
Christian Brabandt <cb@256bit.org>
parents: 33051
diff changeset
18 if !exists('b:match_words')
900719093984 ftplugin(asm): add Matchit support
Christian Brabandt <cb@256bit.org>
parents: 33051
diff changeset
19 let b:match_skip = 's:comment\|string\|character\|special'
900719093984 ftplugin(asm): add Matchit support
Christian Brabandt <cb@256bit.org>
parents: 33051
diff changeset
20 let b:match_words = '^\s*%\s*if\%(\|num\|idn\|nidn\)\>:^\s*%\s*elif\>:^\s*%\s*else\>:^\s*%\s*endif\>,^\s*%\s*macro\>:^\s*%\s*endmacro\>,^\s*%\s*rep\>:^\s*%\s*endrep\>'
900719093984 ftplugin(asm): add Matchit support
Christian Brabandt <cb@256bit.org>
parents: 33051
diff changeset
21 let b:match_ignorecase = 1
900719093984 ftplugin(asm): add Matchit support
Christian Brabandt <cb@256bit.org>
parents: 33051
diff changeset
22 let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words b:match_skip"
900719093984 ftplugin(asm): add Matchit support
Christian Brabandt <cb@256bit.org>
parents: 33051
diff changeset
23 endif