view runtime/indent/testdir/tcl.ok @ 17403:9b6c0ef29c20 v8.1.1700

patch 8.1.1700: listener callback called for the wrong buffer commit https://github.com/vim/vim/commit/250e3112c6dc4c4ceded308d5b94392ec02bc03f Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 15 23:02:14 2019 +0200 patch 8.1.1700: listener callback called for the wrong buffer Problem: Listener callback called for the wrong buffer. Solution: Invoke listeners before calling ml_append_int().
author Bram Moolenaar <Bram@vim.org>
date Mon, 15 Jul 2019 23:15:07 +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