-
-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
195 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
---@alias LuaSnip.Cursor {[1]: number, [2]: number} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
---@class LuaSnip.extra.MatchTSNodeOpts | ||
---@field query string|{[1]: string, [2]: string?} | ||
---@field select LuaSnip.extra.SelectTSNodeOpts|LuaSnip.extra.SelectTSNodeFunc|nil | ||
|
||
---@class LuaSnip.extra.MatchedTSNodeInfo | ||
---@field capture_name string | ||
---@field node TSNode | ||
|
||
---@class LuaSnip.extra.MatchTSNodeResult | ||
---@field best_match TSNode | ||
---@field matches LuaSnip.extra.MatchedTSNodeInfo[] | ||
|
||
---@alias LuaSnip.extra.BuiltinCaptureSelector | ||
---| '"any"' # The default selector | ||
---| '"shortest"' | ||
---| '"longest"' | ||
|
||
---@class LuaSnip.extra.SelectTSNodeOpts | ||
---@field captures string|string[]|nil | ||
---@field select_capture LuaSnip.extra.BuiltinCaptureSelector? | ||
|
||
---@alias LuaSnip.extra.SelectTSNodeFunc fun(nodes: LuaSnip.extra.MatchedTSNodeInfo[]):TSNode? | ||
---@alias LuaSnip.extra.MatchTSNodeFunc fun(parser: LuaSnip.extra.TSParser, cursor: LuaSnip.Cursor):LuaSnip.extra.MatchTSNodeResult? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.