annotate runtime/indent/testdir/tcl.in @ 20255:aac52c32a91f v8.2.0683

patch 8.2.0683: Vim9: parsing type does not always work Commit: https://github.com/vim/vim/commit/5adc55cb746893c6ddf7865ff654582902dee2e3 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 2 23:12:58 2020 +0200 patch 8.2.0683: Vim9: parsing type does not always work Problem: Vim9: parsing type does not always work. Solution: Handle func type without return value. Test more closures. Fix type check offset. Fix garbage collection.
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 May 2020 23:15:03 +0200
parents 8b334e4cb97f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15194
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
1 # vim: set filetype=tcl shiftwidth=4 tabstop=8 expandtab :
15131
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 # START_INDENT
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 proc abc {} {
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 set a 5
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 if {[some_cmd]==1} {
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 foreach i [list {1 2 3}] {
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 # Does this comment affect anything?
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 puts $i
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 }
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 }
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 }
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 command_with_a_long_time -arg1 "First" \
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 -arg2 "Second" \
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 -arg3 "Third"
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 puts "Move indent back after line continuation is complete"
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 # END_INDENT