view runtime/indent/testdir/tcl.ok @ 17356:4fe44a3b732f v8.1.1677

patch 8.1.1677: tests get stuck when running into an existing swapfile commit https://github.com/vim/vim/commit/b073da8929ae0c03c403197197ed6b57f0f3d3be Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 13 14:47:26 2019 +0200 patch 8.1.1677: tests get stuck when running into an existing swapfile Problem: Tests get stuck when running into an existing swapfile. Solution: Set v:swapchoice to "q" and report an error. (Daniel Hahler, closes #4644)
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Jul 2019 15:00:05 +0200
parents 8b334e4cb97f
children
line wrap: on
line source

# vim: set filetype=tcl shiftwidth=4 tabstop=8 expandtab :

# START_INDENT
proc abc {} {
    set a 5
    if {[some_cmd]==1} {
        foreach i [list {1 2 3}] {
            # Does this comment affect anything?
            puts $i
        }
    }
}

command_with_a_long_time -arg1 "First" \
    -arg2 "Second" \
    -arg3 "Third"

puts "Move indent back after line continuation is complete"
# END_INDENT