annotate runtime/ftplugin/typescriptreact.vim @ 29816:bbe62ea78aac v9.0.0247

patch 9.0.0247: cannot add padding to virtual text without highlight Commit: https://github.com/vim/vim/commit/f396ce83eebf6c61596184231d39ce4d41eeac04 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 23 18:39:37 2022 +0100 patch 9.0.0247: cannot add padding to virtual text without highlight Problem: Cannot add padding to virtual text without highlight. Solution: Add the "text_padding_left" argument. (issue https://github.com/vim/vim/issues/10906)
author Bram Moolenaar <Bram@vim.org>
date Tue, 23 Aug 2022 19:45:05 +0200
parents 0db0640e16e0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21825
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim filetype plugin file
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: TypeScript React
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 2020 Aug 09
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 let s:match_words = ""
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 let s:undo_ftplugin = ""
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 runtime! ftplugin/typescript.vim
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 let s:cpo_save = &cpo
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 set cpo-=C
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 if exists("b:match_words")
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 let s:match_words = b:match_words
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 endif
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 if exists("b:undo_ftplugin")
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 let s:undo_ftplugin = b:undo_ftplugin
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 endif
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 " Matchit configuration
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 if exists("loaded_matchit")
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 let b:match_ignorecase = 0
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 let b:match_words = s:match_words .
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 \ '<:>,' .
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 \ '<\@<=\([^ \t>/]\+\)\%(\s\+[^>]*\%([^/]>\|$\)\|>\|$\):<\@<=/\1>,' .
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 \ '<\@<=\%([^ \t>/]\+\)\%(\s\+[^/>]*\|$\):/>'
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 endif
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30 let b:undo_ftplugin = "unlet! b:match_words b:match_ignorecase | " . s:undo_ftplugin
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 let &cpo = s:cpo_save
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33 unlet s:cpo_save