aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/bufhl_defs.h
blob: e47bb2a2388ea27ec4f0faf3138d80f95cb5d0ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef NVIM_BUFHL_DEFS_H
#define NVIM_BUFHL_DEFS_H

#include "nvim/pos.h"
#include "nvim/lib/kvec.h"
// bufhl: buffer specific highlighting

struct bufhl_hl_item
{
  int src_id;
  int hl_id;  // highlight group
  colnr_T start;  // first column to highlight
  colnr_T stop;  // last column to highlight
};
typedef struct bufhl_hl_item bufhl_hl_item_T;

typedef kvec_t(struct bufhl_hl_item) bufhl_vec_T;

typedef struct {
  bufhl_vec_T entries;
  int current;
  colnr_T valid_to;
} bufhl_lineinfo_T;

#endif  // NVIM_BUFHL_DEFS_H