fix(ansi): annotate highlights too
This commit is contained in:
parent
1974addbd2
commit
db98153b11
4 changed files with 10 additions and 4 deletions
|
|
@ -1,6 +1,12 @@
|
|||
---@class AnsiParseResult
|
||||
---@field lines string[]
|
||||
---@field highlights any[]
|
||||
---@field highlights Highlight[]
|
||||
|
||||
---@class Highlight
|
||||
---@field line number
|
||||
---@field col_start number
|
||||
---@field col_end number
|
||||
---@field highlight_group string
|
||||
|
||||
local M = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---@class DiffResult
|
||||
---@field content string[]
|
||||
---@field highlights any[]?
|
||||
---@field highlights Highlight[]?
|
||||
---@field raw_diff string?
|
||||
|
||||
---@class DiffBackend
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue