mirror of
https://github.com/vim/vim
synced 2025-05-02 22:37:47 +02:00
Improve :menu and :menutranslate highlighting. - Match args to :menutranslation and :popup. - Only highlight special notation in {rhs} of :menu, like :map. - Allow line continuations in {rhs} of :menu and between {english} and {mylang} of :menutranslation, matching common usage. - Bug fixes. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
51 lines
875 B
VimL
51 lines
875 B
VimL
" Vim :menutranslate command
|
|
|
|
menutranslate clear
|
|
menutranslate clear | echo "Foo"
|
|
menutranslate clear " comment
|
|
|
|
menutranslate &Foo\ bar &FuBar | echo "Foo"
|
|
|
|
menutranslate &Foo\ bar &FuBar " comment
|
|
menutranslate \"&Foo"\ bar \"&FuBar
|
|
menutranslate &Foo\ "bar" &FuBar
|
|
|
|
menutranslate &Foo\ bar
|
|
\ &Fubar | echo "Foo"
|
|
|
|
menutranslate
|
|
\ &Foo\ bar
|
|
\ &Fubar | echo "Foo"
|
|
|
|
menutranslate
|
|
\ &Foo\ bar
|
|
\ &Fubar| echo "Foo"
|
|
|
|
menutranslate
|
|
\ &Foo\ bar
|
|
\ &Fubar
|
|
\ | echo "Foo"
|
|
|
|
menutranslate &Foo\ bar
|
|
"\ comment
|
|
\ &Fubar | echo "Foo"
|
|
|
|
menutranslate
|
|
"\ comment
|
|
\ &Foo\ bar
|
|
"\ comment
|
|
\ &Fubar | echo "Foo"
|
|
|
|
menutranslate
|
|
\ &Foo\ bar
|
|
"\ comment
|
|
\ &Fubar| echo "Foo"
|
|
"\ comment
|
|
|
|
menutranslate
|
|
"\ comment
|
|
\ &Foo\ bar
|
|
"\ comment
|
|
\ &Fubar
|
|
\ | echo "Foo"
|
|
|