Mercurial > vim
view src/testdir/test_ex_equal.vim @ 34351:d5f9c5aacad3 v9.1.0108
patch 9.1.0108: filetype: no support for dtso files
Commit: https://github.com/vim/vim/commit/b1700fb33fe02838d679b9215e501455cf4c1156
Author: Markus Schneider-Pargmann <msp@baylibre.com>
Date: Wed Feb 14 20:44:28 2024 +0100
patch 9.1.0108: filetype: no support for dtso files
Problem: filetype: no support for dtso files
Solution: Add detection for *.dtso files as dts file type
(Markus Schneider-Pargmann)
*.dtso files are devicetree overlay files which have the same syntax as dts or dtsi files.
closes: #14026
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 14 Feb 2024 21:00:03 +0100 |
parents | 08940efa6b4e |
children |
line wrap: on
line source
" Test Ex := command. func Test_ex_equal() new call setline(1, ["foo\tbar", "bar\tfoo"]) let a = execute('=') call assert_equal("\n2", a) let a = execute('=#') call assert_equal("\n2\n 1 foo bar", a) let a = execute('=l') call assert_equal("\n2\nfoo^Ibar$", a) let a = execute('=p') call assert_equal("\n2\nfoo bar", a) let a = execute('=l#') call assert_equal("\n2\n 1 foo^Ibar$", a) let a = execute('=p#') call assert_equal("\n2\n 1 foo bar", a) let a = execute('.=') call assert_equal("\n1", a) call assert_fails('3=', 'E16:') call assert_fails('=x', 'E488:') bwipe! endfunc " vim: shiftwidth=2 sts=2 expandtab