Mercurial > vim
comparison src/structs.h @ 1326:22886f3d882d v7.1.040
updated for version 7.1-040
author | vimboss |
---|---|
date | Thu, 26 Jul 2007 20:58:42 +0000 |
parents | 35a1d7bd6191 |
children | c544a3507e83 |
comparison
equal
deleted
inserted
replaced
1325:f26d0c74a329 | 1326:22886f3d882d |
---|---|
1692 #define FR_LEAF 0 /* frame is a leaf */ | 1692 #define FR_LEAF 0 /* frame is a leaf */ |
1693 #define FR_ROW 1 /* frame with a row of windows */ | 1693 #define FR_ROW 1 /* frame with a row of windows */ |
1694 #define FR_COL 2 /* frame with a column of windows */ | 1694 #define FR_COL 2 /* frame with a column of windows */ |
1695 | 1695 |
1696 /* | 1696 /* |
1697 * Struct used for highlighting 'hlsearch' matches, matches defined by | |
1698 * ":match" and matches defined by match functions. | |
1699 * For 'hlsearch' there is one pattern for all windows. For ":match" and the | |
1700 * match functions there is a different pattern for each window. | |
1701 */ | |
1702 typedef struct | |
1703 { | |
1704 regmmatch_T rm; /* points to the regexp program; contains last found | |
1705 match (may continue in next line) */ | |
1706 buf_T *buf; /* the buffer to search for a match */ | |
1707 linenr_T lnum; /* the line to search for a match */ | |
1708 int attr; /* attributes to be used for a match */ | |
1709 int attr_cur; /* attributes currently active in win_line() */ | |
1710 linenr_T first_lnum; /* first lnum to search for multi-line pat */ | |
1711 colnr_T startcol; /* in win_line() points to char where HL starts */ | |
1712 colnr_T endcol; /* in win_line() points to char where HL ends */ | |
1713 } match_T; | |
1714 | |
1715 /* | |
1716 * matchitem_T provides a linked list for storing match items for ":match" and | |
1717 * the match functions. | |
1718 */ | |
1719 typedef struct matchitem matchitem_T; | |
1720 struct matchitem | |
1721 { | |
1722 matchitem_T *next; | |
1723 int id; /* match ID */ | |
1724 int priority; /* match priority */ | |
1725 char_u *pattern; /* pattern to highlight */ | |
1726 int hlg_id; /* highlight group ID */ | |
1727 regmmatch_T match; /* regexp program for pattern */ | |
1728 match_T hl; /* struct for doing the actual highlighting */ | |
1729 }; | |
1730 | |
1731 /* | |
1697 * Structure which contains all information that belongs to a window | 1732 * Structure which contains all information that belongs to a window |
1698 * | 1733 * |
1699 * All row numbers are relative to the start of the window, except w_winrow. | 1734 * All row numbers are relative to the start of the window, except w_winrow. |
1700 */ | 1735 */ |
1701 struct window_S | 1736 struct window_S |
1932 | 1967 |
1933 int w_changelistidx; /* current position in b_changelist */ | 1968 int w_changelistidx; /* current position in b_changelist */ |
1934 #endif | 1969 #endif |
1935 | 1970 |
1936 #ifdef FEAT_SEARCH_EXTRA | 1971 #ifdef FEAT_SEARCH_EXTRA |
1937 regmmatch_T w_match[3]; /* regexp programs for ":match" */ | 1972 matchitem_T *w_match_head; /* head of match list */ |
1938 char_u *(w_match_pat[3]); /* patterns for ":match" */ | 1973 int w_next_match_id; /* next match ID */ |
1939 int w_match_id[3]; /* highlight IDs for ":match" */ | |
1940 #endif | 1974 #endif |
1941 | 1975 |
1942 /* | 1976 /* |
1943 * the tagstack grows from 0 upwards: | 1977 * the tagstack grows from 0 upwards: |
1944 * entry 0: older | 1978 * entry 0: older |