Skip to content

Commit

Permalink
Clarify that $0 should not use any other snippet syntax (#2087)
Browse files Browse the repository at this point in the history
Co-authored-by: Dirk Bäumer <[email protected]>
  • Loading branch information
the-mikedavis and dbaeumer authored Feb 10, 2025
1 parent 7c79d23 commit cbfbc6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _specifications/lsp/3.18/language/completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,9 @@ The `body` of a snippet can use special constructs to control cursors and the te

##### Tab stops

With tab stops, you can make the editor cursor move inside a snippet. Use `$1`, `$2`, and so on to specify cursor locations. The number is the order in which tab stops will be visited, whereas `$0` denotes the final cursor position. Multiple tab stops are linked and updated in sync.
With tab stops, you can make the editor cursor move inside a snippet. Use `$1`, `$2`, and so on to specify cursor locations. The number is the order in which tab stops will be visited. Multiple tab stops are linked and updated in sync.

The `$0` tab stop denotes the final cursor position. This tab stop should not be combined with other snippet syntax - placeholders, choices, variables or transforms - it should only take the form `$0`.

##### Placeholders

Expand Down

0 comments on commit cbfbc6d

Please sign in to comment.