Home
last modified time | relevance | path

Searched refs:submatch (Results 1 – 25 of 47) sorted by relevance

12

/vim-8.2.3635/src/testdir/
H A Dtest_substitute.vim361 \ '\=submatch(0) . submatch(9) . submatch(8) . ' .
362 \ 'submatch(7) . submatch(6) . submatch(5) . ' .
363 \ 'submatch(4) . submatch(3) . submatch(2) . submatch(1)',
369 \ '\=string([submatch(0, 1), submatch(9, 1), ' .
370 \ 'submatch(8, 1), 7->submatch(1), submatch(6, 1), ' .
371 \ 'submatch(5, 1), submatch(4, 1), submatch(3, 1), ' .
372 \ 'submatch(2, 1), submatch(1, 1)])',
603 …)\(.\)/\=submatch(0) . submatch(9) . submatch(8) . submatch(7) . submatch(6) . submatch(5) . subma…
604submatch(0, 1), submatch(9, 1), submatch(8, 1), submatch(7, 1), submatch(6, 1), submatch(5, 1), su…
871 \ {-> submatch(2) . submatch(3) . submatch(1)}, ''))
[all …]
H A Dsummarize.vim32 silent %s/Executed\s\+\zs\d\+\ze\s\+tests\?/\=Count(submatch(0),'executed')/egn
33 silent %s/^SKIPPED \zs.*/\=Count(submatch(0), 'skipped')/egn
34 silent %s/^\(\d\+\)\s\+FAILED:/\=Count(submatch(1), 'failed')/egn
H A Dtest_regexp_utf8.vim228 " expected submatch 1 (optional)
229 " expected submatch 2 (optional)
337 \ '\", text: \"' . text . '\", submatch ' . i .
H A Dtest_regexp_latin.vim158 " expected submatch 1 (optional)
159 " expected submatch 2 (optional)
588 " TODO: BT engine does not restore submatch after failure
652 \ . '\", text: \"' . text . '\", submatch ' . i . ': \"'
H A Dtest_vim9_builtin.vim3562 var Rep = () => range(10)->mapnew((_, v) => submatch(v, true))->string()
3566 …CheckDefAndScriptFailure2(['submatch("x")'], 'E1013: Argument 1: type mismatch, expected number bu…
3567 …CheckDefAndScriptFailure2(['submatch(1, "a")'], 'E1013: Argument 2: type mismatch, expected bool b…
/vim-8.2.3635/runtime/indent/
H A Dmatlab.vim60 let [lnum, c, submatch] = searchpos(a:pattern, 'cpe' . s:zflag, a:lnum)
61 if !submatch || c >= endcol | break | endif
62 if !s:IsCommentOrString(lnum, c) | let x[submatch - 2] += 1 | endif
102 let submatch = search(s:dedent_pat, 'cp' . s:zflag, v:lnum)
103 if submatch && !s:IsCommentOrString(v:lnum, col('.'))
106 …lnum ? indent(lnum) + shiftwidth() * (s:GetOpenCloseCount(lnum, pair_pat, col) + submatch == 2) : 0
H A Dhtml.vim287 …t, '<\zs/\=' . s:tagname . '\>\|<!--\[\|\[endif\]-->\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
299 …t, '<\zs/\=' . s:tagname . '\>\|<!--\[\|\[endif\]-->\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
/vim-8.2.3635/runtime/doc/
H A Dtest_urls.vim29 " do not use submatch(1)!
55 %s/.*/\=TestURL(submatch(0))/
H A Dchange.txt937 The |submatch()| function can be used to obtain matched text. The whole
938 matched text can be accessed with "submatch(0)". The text matched with the
939 first pair of () with "submatch(1)". Likewise for further sub-matches in ().
H A Deval.txt3040 submatch({nr} [, {list}]) String or List
8042 in |:substitute|. When an optional submatch didn't match an
9723 < In this example "submatch" is 2 when a lowercase letter is
11055 submatch({nr} [, {list}]) *submatch()* *E935*
11058 Returns the {nr}'th submatch of the matched text. When {nr}
11064 If {list} is present and non-zero then submatch() returns
11076 :s/\d\+/\=submatch(0) + 1/
11077 :echo substitute(text, '\d\+', '\=submatch(0) + 1', '')
11082 GetNr()->submatch()
11115 \ '\=nr2char("0x" . submatch(1))', 'g')
[all …]
H A Dusr_41.txt628 submatch() get a specific match in ":s" and substitute()
/vim-8.2.3635/runtime/ftplugin/
H A Dgitrebase.vim22 …^\(\w\+\>\)\=\(\s*\)\ze\x\{4,40\}\>/\=(strlen(submatch(1)) == 1 ? a:word[0] : a:word) . substitute…
H A Dpython.vim21 let b:grandparent_sub = '\=submatch(1)."/".repeat("../",strlen(submatch(2)))'
/vim-8.2.3635/src/
H A Dsearch.c634 int submatch = 0; in searchit() local
771 submatch = first_submatch(&regmatch); in searchit()
863 submatch = first_submatch(&regmatch); in searchit()
910 submatch = first_submatch(&regmatch); in searchit()
1148 return submatch + 1; in searchit()
1171 int submatch; in first_submatch() local
1173 for (submatch = 1; ; ++submatch) in first_submatch()
1175 if (rp->startpos[submatch].lnum >= 0) in first_submatch()
1177 if (submatch == 9) in first_submatch()
1179 submatch = 0; in first_submatch()
[all …]
H A Dregexp_nfa.c5275 static int nfa_regmatch(nfa_regprog_T *prog, nfa_state_T *start, regsubs_T *submatch, regsubs_T *m);
5287 regsubs_T *submatch, in recursive_regmatch() argument
5418 result = nfa_regmatch(prog, state->out, submatch, m); in recursive_regmatch()
5730 regsubs_T *submatch, in nfa_regmatch() argument
5966 copy_sub(&submatch->norm, &t->subs.norm); in nfa_regmatch()
5969 copy_sub(&submatch->synt, &t->subs.synt); in nfa_regmatch()
6077 submatch, m, &listids, &listids_len); in nfa_regmatch()
6199 submatch, m, &listids, &listids_len); in nfa_regmatch()
6969 prog, submatch, m, &listids, &listids_len); in nfa_regmatch()
/vim-8.2.3635/runtime/autoload/
H A DRstFold.vim28 …%(%(([=`:.''"~^_*+#-])\3{2,}\n)?.{3,}\n([=`:.''"~^_*+#-])\4{2,})$/\=closure.Process(submatch(0))/gn
H A DnetrwFileHandlers.vim54 let exten= substitute(a:exten,'[@:,$!=\-+%?;~]','\=specials[submatch(0)]','ge')
H A Dsyntaxcomplete.vim650 \ , '\=substitute(submatch(1), "\\W\\+", " ", "g")'
H A Dsqlcomplete.vim735 \ '\=strpart(submatch(0), 0, 1)',
/vim-8.2.3635/src/po/
H A Den_GB.po124 msgid "E935: invalid submatch number: %d"
125 msgstr "E935: Invalid submatch number: %d"
H A Dko.UTF-8.po802 msgid "E935: invalid submatch number: %d"
803 msgstr "E935: 비정상적인 submatch number: %d"
H A Dko.po802 msgid "E935: invalid submatch number: %d"
803 msgstr "E935: ���������� submatch number: %d"
H A Deo.po836 msgid "E935: invalid submatch number: %d"
837 msgstr "E935: nevalida indekso de \"submatch\": %d"
H A Dfr.po869 msgid "E935: invalid submatch number: %d"
870 msgstr "E935: num�ro de submatch invalide : %d"
/vim-8.2.3635/runtime/syntax/
H A Dvim.vim84 …etplaced sign_unplace slice sound_playfile sqrt str2nr strftime strpart submatch synID systemlist …

12