mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge #8799 from janlazo/nvim-8.0.1541
This commit is contained in:
commit
a4c9447623
@ -94,6 +94,7 @@ typedef struct {
|
||||
typedef struct window_S win_T;
|
||||
typedef struct wininfo_S wininfo_T;
|
||||
typedef struct frame_S frame_T;
|
||||
typedef uint16_t disptick_T; // display tick type
|
||||
|
||||
// for struct memline (it needs memfile_T)
|
||||
#include "nvim/memline_defs.h"
|
||||
@ -425,7 +426,7 @@ typedef struct {
|
||||
synstate_T *b_sst_firstfree;
|
||||
int b_sst_freecount;
|
||||
linenr_T b_sst_check_lnum;
|
||||
uint16_t b_sst_lasttick; /* last display tick */
|
||||
disptick_T b_sst_lasttick; // last display tick
|
||||
|
||||
// for spell checking
|
||||
garray_T b_langp; // list of pointers to slang_T, see spell.c
|
||||
|
@ -3294,8 +3294,7 @@ win_line (
|
||||
did_emsg = FALSE;
|
||||
|
||||
syntax_attr = get_syntax_attr((colnr_T)v - 1,
|
||||
has_spell ? &can_spell :
|
||||
NULL, FALSE);
|
||||
has_spell ? &can_spell : NULL, false);
|
||||
|
||||
if (did_emsg) {
|
||||
wp->w_s->b_syn_error = TRUE;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -14,13 +14,11 @@ typedef struct syn_state synstate_T;
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/regexp_defs.h"
|
||||
|
||||
typedef unsigned short disptick_T; /* display tick type */
|
||||
|
||||
/* struct passed to in_id_list() */
|
||||
struct sp_syn {
|
||||
int inc_tag; /* ":syn include" unique tag */
|
||||
short id; /* highlight group ID of item */
|
||||
short *cont_in_list; /* cont.in group IDs, if non-zero */
|
||||
int inc_tag; // ":syn include" unique tag
|
||||
int16_t id; // highlight group ID of item
|
||||
int16_t *cont_in_list; // cont.in group IDs, if non-zero
|
||||
};
|
||||
|
||||
/*
|
||||
@ -29,12 +27,12 @@ struct sp_syn {
|
||||
typedef struct keyentry keyentry_T;
|
||||
|
||||
struct keyentry {
|
||||
keyentry_T *ke_next; /* next entry with identical "keyword[]" */
|
||||
struct sp_syn k_syn; /* struct passed to in_id_list() */
|
||||
short *next_list; /* ID list for next match (if non-zero) */
|
||||
keyentry_T *ke_next; // next entry with identical "keyword[]"
|
||||
struct sp_syn k_syn; // struct passed to in_id_list()
|
||||
int16_t *next_list; // ID list for next match (if non-zero)
|
||||
int flags;
|
||||
int k_char; /* conceal substitute character */
|
||||
char_u keyword[1]; /* actually longer */
|
||||
int k_char; // conceal substitute character
|
||||
char_u keyword[1]; // actually longer
|
||||
};
|
||||
|
||||
/*
|
||||
@ -59,13 +57,13 @@ struct syn_state {
|
||||
bufstate_T sst_stack[SST_FIX_STATES]; /* short state stack */
|
||||
garray_T sst_ga; /* growarray for long state stack */
|
||||
} sst_union;
|
||||
int sst_next_flags; /* flags for sst_next_list */
|
||||
int sst_stacksize; /* number of states on the stack */
|
||||
short *sst_next_list; /* "nextgroup" list in this state
|
||||
* (this is a copy, don't free it! */
|
||||
disptick_T sst_tick; /* tick when last displayed */
|
||||
linenr_T sst_change_lnum; /* when non-zero, change in this line
|
||||
* may have made the state invalid */
|
||||
int sst_next_flags; // flags for sst_next_list
|
||||
int sst_stacksize; // number of states on the stack
|
||||
int16_t *sst_next_list; // "nextgroup" list in this state
|
||||
// (this is a copy, don't free it!
|
||||
disptick_T sst_tick; // tick when last displayed
|
||||
linenr_T sst_change_lnum; // when non-zero, change in this line
|
||||
// may have made the state invalid
|
||||
};
|
||||
|
||||
#endif // NVIM_SYNTAX_DEFS_H
|
||||
|
Loading…
Reference in New Issue
Block a user