HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //home/ubuntu/neovim/src/nvim/syntax_defs.h
#pragma once

#include "nvim/buffer_defs.h"

#define SST_MIN_ENTRIES 150    // minimal size for state stack array
#define SST_MAX_ENTRIES 1000   // maximal size for state stack array
#define SST_FIX_STATES  7      // size of sst_stack[].
#define SST_DIST        16     // normal distance between entries
#define SST_INVALID    ((synstate_T *)-1)      // invalid syn_state pointer

// struct passed to in_id_list()
struct sp_syn {
  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
};

// Each keyword has one keyentry, which is linked in a hash list.
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()
  int16_t *next_list;           // ID list for next match (if non-zero)
  int flags;
  int k_char;                   // conceal substitute character
  char keyword[];
};

// Struct used to store one state of the state stack.
typedef struct {
  int bs_idx;                    // index of pattern
  int bs_flags;                  // flags for pattern
  int bs_seqnr;                  // stores si_seqnr
  int bs_cchar;                  // stores si_cchar
  reg_extmatch_T *bs_extmatch;   // external matches from start pattern
} bufstate_T;

// syn_state contains the syntax state stack for the start of one line.
// Used by b_sst_array[].
struct syn_state {
  synstate_T *sst_next;        // next entry in used or free list
  linenr_T sst_lnum;            // line number for this state
  union {
    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
  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
};