diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-07-27 06:31:09 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2026-07-27 06:31:33 +0800 |
| commit | ef93e939586300d7cd348724d16f3c507a4f13fa (patch) | |
| tree | 2b7d483dd79d20cea7f7d4f52d72b6b0ef33bff7 /runtime/indent/javascript.vim | |
| parent | c57818bb43903aeb2cbdf2f3604d0c333d4e5641 (diff) | |
| download | rneovim-ef93e939586300d7cd348724d16f3c507a4f13fa.tar.gz rneovim-ef93e939586300d7cd348724d16f3c507a4f13fa.tar.bz2 rneovim-ef93e939586300d7cd348724d16f3c507a4f13fa.zip | |
vim-patch:4e3df44: runtime(indent-tests): Annotate timed "search*()"es for tracing
related: vim/vim#17116
https://github.com/vim/vim/commit/4e3df44aa2a4f99c3c35e11371f7f1b2b6207558
Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Diffstat (limited to 'runtime/indent/javascript.vim')
| -rw-r--r-- | runtime/indent/javascript.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/indent/javascript.vim b/runtime/indent/javascript.vim index 8077442ed0..6537d3f2fd 100644 --- a/runtime/indent/javascript.vim +++ b/runtime/indent/javascript.vim @@ -2,7 +2,7 @@ " Language: Javascript " Maintainer: Chris Paul ( https://github.com/bounceme ) " URL: https://github.com/pangloss/vim-javascript -" Last Change: December 4, 2017 +" Last Change: 2025 Apr 13 " Only load this indent file when no other was loaded. if exists('b:did_indent') @@ -69,7 +69,9 @@ let s:rel = has('reltime') " searchpair() wrapper if s:rel function s:GetPair(start,end,flags,skip) + " VIM_INDENT_TEST_TRACE_START return searchpair('\m'.a:start,'','\m'.a:end,a:flags,a:skip,s:l1,a:skip ==# 's:SkipFunc()' ? 2000 : 200) + " VIM_INDENT_TEST_TRACE_END s:GetPair endfunction else function s:GetPair(start,end,flags,skip) |