-
-
Notifications
You must be signed in to change notification settings - Fork 265
Rework pos types, add types for mark utils #1420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bew
wants to merge
11
commits into
L3MON4D3:master
Choose a base branch
from
bew:types-for-mark-pos
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9406bba
Rework pos types, add types for mark utils
bew de8786b
Auto generate docs
bew b2656ad
Use position types
bew e2aa618
Auto generate docs
bew fca4b28
Explicit return names for multivalue returns
bew e7fb0d8
Auto generate docs
bew 0f29e82
Invalidate mark on Mark:clear()
bew ab31a25
Remove util functions unused anywhere
bew f079e72
Fix doc for pos_from_offset
bew f787a47
Merge branch 'master' into types-for-mark-pos
bew 6485dd5
Auto generate docs
bew File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,18 +1,23 @@ | ||
| ---@class LuaSnip.Pos00 A [row, col] position (e.g. in a buffer), (0,0)-indexed. | ||
| ---@field [1] integer | ||
| ---@field [2] integer | ||
|
|
||
| ---@alias LuaSnip.Cursor {[1]: number, [2]: number} | ||
|
|
||
| ---@class LuaSnip.MatchRegion 0-based region within a single line | ||
| ---@class LuaSnip.Region00InLine 0-based region within a single line | ||
| ---@field row integer 0-based row | ||
| ---@field col_range { [1]: integer, [2]: integer } 0-based column range, from-in, to-exclusive | ||
|
|
||
| --- A raw (byte) [row, col] position in a buffer, (0,0)-indexed. | ||
| --- Specifies a position in a buffer, or some other collection of lines. (0,0) is | ||
| --- the first line, first character, and the column-position is specified in | ||
| --- bytes, not visual columns (there are characters that are visually one column, | ||
| --- but occupy several bytes). | ||
| ---@class LuaSnip.BytecolBufferPosition | ||
| ---@class LuaSnip.RawPos00 | ||
| ---@field [1] integer | ||
| ---@field [2] integer | ||
|
|
||
| --- 0-based region in a buffer. | ||
| ---@class LuaSnip.BufferRegion | ||
| ---@field from LuaSnip.BytecolBufferPosition Starting position, included. | ||
| ---@field to LuaSnip.BytecolBufferPosition Ending position, excluded. | ||
| --- 0-based region (end column excluded) in a buffer. | ||
| ---@class LuaSnip.RawRegion00 | ||
| ---@field from LuaSnip.RawPos00 Starting position, included. | ||
| ---@field to LuaSnip.RawPos00 Ending position, excluded. |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.