Mercurial > hg > xemacs-beta
comparison src/syntax.h @ 359:8e84bee8ddd0 r21-1-9
Import from CVS: tag r21-1-9
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:57:55 +0200 |
parents | c5d627a313b1 |
children | a4f53d9b3154 |
comparison
equal
deleted
inserted
replaced
358:fed6e0f6a03a | 359:8e84bee8ddd0 |
---|---|
169 #define SYNTAX_FIRST_CHAR 0xcc | 169 #define SYNTAX_FIRST_CHAR 0xcc |
170 #define SYNTAX_SECOND_CHAR_START 0x30 | 170 #define SYNTAX_SECOND_CHAR_START 0x30 |
171 #define SYNTAX_SECOND_CHAR_END 0x03 | 171 #define SYNTAX_SECOND_CHAR_END 0x03 |
172 #define SYNTAX_SECOND_CHAR 0x33 | 172 #define SYNTAX_SECOND_CHAR 0x33 |
173 | 173 |
174 #define SYNTAX_START_P(table, a, b) \ | 174 |
175 ((SYNTAX_COMMENT_BITS (table, a) & SYNTAX_FIRST_CHAR_START) \ | 175 /* #### These are now more or less equivalent to |
176 && (SYNTAX_COMMENT_BITS (table, b) & SYNTAX_SECOND_CHAR_START)) | 176 SYNTAX_COMMENT_MATCH_START ...*/ |
177 | 177 /* a and b must be first and second start chars for a common type */ |
178 #define SYNTAX_END_P(table, a, b) \ | 178 #define SYNTAX_START_P(table, a, b) \ |
179 ((SYNTAX_COMMENT_BITS (table, a) & SYNTAX_FIRST_CHAR_END) \ | 179 (((SYNTAX_COMMENT_BITS (table, a) & SYNTAX_FIRST_CHAR_START) >> 2) \ |
180 && (SYNTAX_COMMENT_BITS (table, b) & SYNTAX_SECOND_CHAR_END)) | 180 & (SYNTAX_COMMENT_BITS (table, b) & SYNTAX_SECOND_CHAR_START)) |
181 | |
182 /* ... and SYNTAX_COMMENT_MATCH_END */ | |
183 /* a and b must be first and second end chars for a common type */ | |
184 #define SYNTAX_END_P(table, a, b) \ | |
185 (((SYNTAX_COMMENT_BITS (table, a) & SYNTAX_FIRST_CHAR_END) >> 2) \ | |
186 & (SYNTAX_COMMENT_BITS (table, b) & SYNTAX_SECOND_CHAR_END)) | |
181 | 187 |
182 #define SYNTAX_STYLES_MATCH_START_P(table, a, b, mask) \ | 188 #define SYNTAX_STYLES_MATCH_START_P(table, a, b, mask) \ |
183 ((SYNTAX_COMMENT_BITS (table, a) & SYNTAX_FIRST_CHAR_START & (mask)) \ | 189 ((SYNTAX_COMMENT_BITS (table, a) & SYNTAX_FIRST_CHAR_START & (mask)) \ |
184 && (SYNTAX_COMMENT_BITS (table, b) & SYNTAX_SECOND_CHAR_START & (mask))) | 190 && (SYNTAX_COMMENT_BITS (table, b) & SYNTAX_SECOND_CHAR_START & (mask))) |
185 | 191 |