You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Location metadata here means row and column values for the current text input of the buffer. It will be based on the offset value currently stored in the buffer and newline character counts (i.e. characters \r and \n).
Text buffer would need to do some book keeping based on the parameters specified above for properties row and previous newline byte offset. It needs to add access methods row() and column() where the row will just render the property row, whereas column will be based on current offset value and previous newline byte offset.
To implement this feature here are the list of changes required:
Modify winnow parser methods for getting newline count
match_whitespace0
match_whitespace1
match_text_until_unescaped
Write unit tests to verify buffer properties row and column results into correct numbers
Location metadata here means row and column values for the current text input of the buffer. It will be based on the
offset
value currently stored in the buffer and newline character counts (i.e. characters\r
and\n
).Text buffer would need to do some book keeping based on the parameters specified above for properties row and previous newline byte offset. It needs to add access methods
row()
andcolumn()
where the row will just render the property row, whereas column will be based on current offset value and previous newline byte offset.To implement this feature here are the list of changes required:
Reference WIP: 2af4d3c
The text was updated successfully, but these errors were encountered: