mirror of
https://github.com/vim/vim
synced 2025-05-02 22:37:47 +02:00
Some checks are pending
GitHub CI / linux (arm64, gcc, [nogui], tiny) (push) Waiting to run
GitHub CI / linux (arm64, gcc, true, [unittests], huge) (push) Waiting to run
GitHub CI / linux (clang, [asan], huge, 5.1) (push) Waiting to run
GitHub CI / linux (clang, [nogui], tiny) (push) Waiting to run
GitHub CI / linux (gcc, [nogui], tiny) (push) Waiting to run
GitHub CI / linux (gcc, [vimtags], normal) (push) Waiting to run
GitHub CI / linux (gcc, true, [uchar testgui], huge, dynamic) (push) Waiting to run
GitHub CI / linux (gcc, true, [unittests], huge) (push) Waiting to run
GitHub CI / linux (i386, gcc, normal, ./src/shadow) (push) Waiting to run
GitHub CI / linux (native, clang, [], normal) (push) Waiting to run
GitHub CI / linux (native, clang, [], tiny) (push) Waiting to run
GitHub CI / linux (native, clang, true, [], huge, dynamic, stable-abi) (push) Waiting to run
GitHub CI / linux (native, gcc, [], normal) (push) Waiting to run
GitHub CI / linux (native, gcc, [], tiny) (push) Waiting to run
GitHub CI / linux (native, gcc, true, [], huge) (push) Waiting to run
GitHub CI / macos (huge, macos-13) (push) Waiting to run
GitHub CI / macos (huge, macos-15) (push) Waiting to run
GitHub CI / macos (normal, macos-13) (push) Waiting to run
GitHub CI / macos (normal, macos-15) (push) Waiting to run
GitHub CI / macos (tiny, macos-13) (push) Waiting to run
GitHub CI / macos (tiny, macos-15) (push) Waiting to run
GitHub CI / windows (no, no, x64, HUGE, stable, msvc) (push) Waiting to run
GitHub CI / windows (no, no, x86, TINY, mingw) (push) Waiting to run
GitHub CI / windows (no, yes, x64, yes, HUGE, mingw) (push) Waiting to run
GitHub CI / windows (no, yes, x86, NORMAL, msvc) (push) Waiting to run
GitHub CI / windows (yes, no, x64, NORMAL, mingw) (push) Waiting to run
GitHub CI / windows (yes, no, x86, HUGE, msvc) (push) Waiting to run
GitHub CI / windows (yes, yes, x64, TINY, msvc) (push) Waiting to run
GitHub CI / windows (yes, yes, x86, yes, HUGE, stable, mingw) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Continued strings are currently only matched after operators, in parenthesised expressions and in function call argument lists. closes: #14975 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
143 lines
2.4 KiB
VimL
143 lines
2.4 KiB
VimL
substitute/foo/bar/&
|
|
substitute/foo/bar/cegiInp#lr
|
|
|
|
snomagic/foo/bar/&
|
|
snomagic/foo/bar/cegiInp#lr
|
|
|
|
smagic/foo/bar/&
|
|
smagic/foo/bar/cegiInp#lr
|
|
|
|
:substitute/foo/bar/&
|
|
:substitute/foo/bar/cegiInp#lr
|
|
|
|
:snomagic/foo/bar/&
|
|
:snomagic/foo/bar/cegiInp#lr
|
|
|
|
:smagic/foo/bar/&
|
|
:smagic/foo/bar/cegiInp#lr
|
|
|
|
call Foo() | substitute/foo/bar/&
|
|
call Foo() | substitute/foo/bar/cegiInp#lr
|
|
|
|
call Foo() | snomagic/foo/bar/&
|
|
call Foo() | snomagic/foo/bar/cegiInp#lr
|
|
|
|
call Foo() | smagic/foo/bar/&
|
|
call Foo() | smagic/foo/bar/cegiInp#lr
|
|
|
|
let foo = str->substitute(str, pat, sub, flags)
|
|
|
|
function Foo()
|
|
substitute/foo/bar/
|
|
let bar = str->substitute(str, pat, sub, flags)
|
|
endfunction
|
|
|
|
def Foo()
|
|
substitute/foo/bar/
|
|
let bar = str->substitute(str, pat, sub, flags)
|
|
enddef
|
|
|
|
" various delimiters
|
|
|
|
s!/!//! " comment
|
|
" s"/"//" " comment (works but disallowed)
|
|
s#/#//# " comment
|
|
s$/$//$ " comment
|
|
s%/%//% " comment
|
|
s&/&//& " comment
|
|
s'/'//' " comment
|
|
" FIXME - matches vimUserFunc
|
|
" s(/(//( " comment
|
|
s)/)//) " comment
|
|
s*/*//* " comment
|
|
s+/+//+ " comment
|
|
s,/,//, " comment
|
|
s-/-//- " comment
|
|
s././/. " comment
|
|
s/X/XX/ " comment
|
|
s:/://: " comment
|
|
s;/;//; " comment
|
|
s</<//< " comment
|
|
s=/=//= " comment
|
|
s>/>//> " comment
|
|
s?/?//? " comment
|
|
s@/@//@ " comment
|
|
s[/[//[ " comment
|
|
" s\/\//\ " comment (disallowed)
|
|
s]/]//] " comment
|
|
s^/^//^ " comment
|
|
s_/_//_ " comment
|
|
s`/`//` " comment
|
|
s{/{//{ " comment
|
|
" s|/|//| " comment (disallowed)
|
|
s}/}//} " comment
|
|
s~/~//~ " comment
|
|
|
|
s !/!//! " comment
|
|
" s "/"//" " comment (works but disallowed)
|
|
s #/#//# " comment
|
|
s $/$//$ " comment
|
|
s %/%//% " comment
|
|
s &/&//& " comment
|
|
s '/'//' " comment
|
|
" FIXME - matches vimUserFunc
|
|
" s (/(//( " comment
|
|
s )/)//) " comment
|
|
s */*//* " comment
|
|
s +/+//+ " comment
|
|
s ,/,//, " comment
|
|
s -/-//- " comment
|
|
s ././/. " comment
|
|
s /X/XX/ " comment
|
|
s :/://: " comment
|
|
s ;/;//; " comment
|
|
s </<//< " comment
|
|
s =/=//= " comment
|
|
s >/>//> " comment
|
|
s ?/?//? " comment
|
|
s @/@//@ " comment
|
|
s [/[//[ " comment
|
|
" s \/\//\ " comment (disallowed)
|
|
s ]/]//] " comment
|
|
s ^/^//^ " comment
|
|
s _/_//_ " comment
|
|
s `/`//` " comment
|
|
s {/{//{ " comment
|
|
" s |/|//| " comment (disallowed)
|
|
s }/}//} " comment
|
|
s ~/~//~ " comment
|
|
|
|
s//{string}/
|
|
s //{string}/
|
|
|
|
|
|
" Vi compatibility
|
|
|
|
s\/{string}/
|
|
s\?{string}?
|
|
s\&{string}&
|
|
|
|
s \/{string}/
|
|
s \?{string}?
|
|
s \&{string}&
|
|
|
|
|
|
" Trailing comment and bar
|
|
|
|
s" comment
|
|
s| echo "Foo"
|
|
|
|
s " comment
|
|
s | echo "Foo"
|
|
|
|
|
|
" Issue #13883
|
|
|
|
str[s]
|
|
str(s)
|
|
|
|
def Test()
|
|
str[s]
|
|
str(s)
|
|
enddef
|
|
|