From 0368bee1cecaf3c58d436524234baad4c0e0b8cb Mon Sep 17 00:00:00 2001 From: Urmish Shah <33273194+surmish@users.noreply.github.com> Date: Fri, 29 Sep 2023 17:19:33 -0700 Subject: [PATCH] Update tcl.json (#372) add missing $ for positional arguments --- snippets/tcl.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snippets/tcl.json b/snippets/tcl.json index b9d3bdc7..fb81e3d7 100644 --- a/snippets/tcl.json +++ b/snippets/tcl.json @@ -331,17 +331,17 @@ }, "Search a list for an element": { "prefix": "lsearch", - "body": "lsearch {1:?options?} \"${2:list}\" {${0:pattern}}", + "body": "lsearch ${1:?options?} \"${2:list}\" {${0:pattern}}", "description": "This command searches the elements of list to see if one of them matches pattern. If so, the command returns the index of the first matching element (unless the options -all or -inline are specified.) If not, the command returns -1 or (if options -all or -inline are specified) the empty string." }, "Change an element in a list": { "prefix": "lset", - "body": ["lset {1:varName} ${2:?index ...?} {${3:newValue}}", "$0"], + "body": ["lset ${1:varName} ${2:?index ...?} {${3:newValue}}", "$0"], "description": "The lset command accepts a parameter, varName, which it interprets as the name of a variable containing a Tcl list. It also accepts zero or more indices into the list. The indices may be presented either consecutively on the command line, or grouped in a Tcl list and presented as a single argument. Finally, it accepts a new value for an element of varName." }, "Sort the elements of a list": { "prefix": "lsort", - "body": "lsort {1:?options?} \"${0:list}\"", + "body": "lsort ${1:?options?} \"${0:list}\"", "description": "This command sorts the elements of list, returning a new list in sorted order." }, "Open a file-based or command pipeline channel": {