Skip to content

Commit

Permalink
fixed compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Mar 23, 2024
1 parent 692547b commit 17565c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/text/snippet.nim
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ func `$`*(t: Token): string =
of Choice:
return "$" & $t.tabStopIndex & "(" & t.tokens.join(" | ") & ")"

# LSP snippet parser
# See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#snippet_syntax
let snippetParser = peg("snippet", state: Snippet):
## LSP snippet parser
## See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#snippet_syntax

snippet <- *(escaped | (unescaped - '$') | pattern) * snippetEnd

Expand Down

0 comments on commit 17565c4

Please sign in to comment.