Update HACKING for changed doc generation instructions
[geany-mirror.git] / src / highlightingmappings.h
blobd0042b2047e753a9b25642ea186a9ac2addcdbc1
1 /*
2 * highlightingmappings.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-2012 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
6 * Copyright 2011-2012 Colomban Wendling <ban(at)herbesfolles(dot)org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef GEANY_HIGHLIGHTING_MAPPINGS_H
25 #define GEANY_HIGHLIGHTING_MAPPINGS_H 1
27 #include "Scintilla.h"
28 #include "SciLexer.h"
30 #include <glib.h>
33 G_BEGIN_DECLS
35 /* contains all filtypes informations in the form of:
36 * - highlighting_lexer_LANG: the SCI lexer
37 * - highlighting_styles_LANG: SCI style/named style mappings. The first
38 * item is also used for the default style.
39 * - highlighting_keywords_LANG: keywords ID/name mappings
40 * - highlighting_properties_LANG: default SCI properties and their value
41 * where LANG is the lang part from GEANY_FILETYPE_LANG
43 * Using this scheme makes possible to automate style setup by simply listing LANG
44 * and let [init_]styleset_case() macros (in highlighting.c) prepare the correct
45 * calls.
49 typedef struct
51 guint style; /* SCI style */
52 const gchar *name; /* style name in the filetypes.* file */
53 gboolean fill_eol; /* whether to set EOLFILLED flag to this style */
54 } HLStyle;
56 typedef struct
58 guint id; /* SCI keyword ID */
59 const gchar *key; /* keywords entry name in the filetypes.* file */
60 gboolean merge; /* whether to merge with session types */
61 } HLKeyword;
63 typedef struct
65 const gchar *property;
66 const gchar *value;
67 } HLProperty;
70 #define EMPTY_KEYWORDS ((HLKeyword *) NULL)
71 #define EMPTY_PROPERTIES ((HLProperty *) NULL)
73 /* like G_N_ELEMENTS() but supports @array being NULL (for empty entries) */
74 #define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
77 /* Abaqus */
78 #define highlighting_lexer_ABAQUS SCLEX_ABAQUS
79 static const HLStyle highlighting_styles_ABAQUS[] =
81 { SCE_ABAQUS_DEFAULT, "default", FALSE },
82 { SCE_ABAQUS_COMMENT, "comment", FALSE },
83 { SCE_ABAQUS_NUMBER, "number", FALSE },
84 { SCE_ABAQUS_STRING, "string", FALSE },
85 { SCE_ABAQUS_OPERATOR, "operator", FALSE },
86 { SCE_ABAQUS_PROCESSOR, "processor", FALSE },
87 { SCE_ABAQUS_STARCOMMAND, "starcommand", FALSE },
88 { SCE_ABAQUS_ARGUMENT, "argument", FALSE }
90 static const HLKeyword highlighting_keywords_ABAQUS[] =
92 { 0, "processors", FALSE },
93 { 1, "commands", FALSE },
94 { 2, "slashommands", FALSE },
95 { 3, "starcommands", FALSE },
96 { 4, "arguments", FALSE },
97 { 5, "functions", FALSE }
99 #define highlighting_properties_ABAQUS EMPTY_PROPERTIES
102 /* Ada */
103 #define highlighting_lexer_ADA SCLEX_ADA
104 static const HLStyle highlighting_styles_ADA[] =
106 { SCE_ADA_DEFAULT, "default", FALSE },
107 { SCE_ADA_WORD, "word", FALSE },
108 { SCE_ADA_IDENTIFIER, "identifier", FALSE },
109 { SCE_ADA_NUMBER, "number", FALSE },
110 { SCE_ADA_DELIMITER, "delimiter", FALSE },
111 { SCE_ADA_CHARACTER, "character", FALSE },
112 { SCE_ADA_CHARACTEREOL, "charactereol", FALSE },
113 { SCE_ADA_STRING, "string", FALSE },
114 { SCE_ADA_STRINGEOL, "stringeol", FALSE },
115 { SCE_ADA_LABEL, "label", FALSE },
116 { SCE_ADA_COMMENTLINE, "commentline", FALSE },
117 { SCE_ADA_ILLEGAL, "illegal", FALSE }
119 static const HLKeyword highlighting_keywords_ADA[] =
121 { 0, "primary", FALSE }
123 #define highlighting_properties_ADA EMPTY_PROPERTIES
126 /* ActionScript */
127 #define highlighting_lexer_AS SCLEX_CPP
128 #define highlighting_styles_AS highlighting_styles_C
129 static const HLKeyword highlighting_keywords_AS[] =
131 { 0, "primary", FALSE },
132 { 1, "secondary", FALSE },
133 { 3, "classes", FALSE }
135 #define highlighting_properties_AS highlighting_properties_C
138 /* ASM */
139 #define highlighting_lexer_ASM SCLEX_ASM
140 static const HLStyle highlighting_styles_ASM[] =
142 { SCE_ASM_DEFAULT, "default", FALSE },
143 { SCE_ASM_COMMENT, "comment", FALSE },
144 { SCE_ASM_NUMBER, "number", FALSE },
145 { SCE_ASM_STRING, "string", FALSE },
146 { SCE_ASM_OPERATOR, "operator", FALSE },
147 { SCE_ASM_IDENTIFIER, "identifier", FALSE },
148 { SCE_ASM_CPUINSTRUCTION, "cpuinstruction", FALSE },
149 { SCE_ASM_MATHINSTRUCTION, "mathinstruction", FALSE },
150 { SCE_ASM_REGISTER, "register", FALSE },
151 { SCE_ASM_DIRECTIVE, "directive", FALSE },
152 { SCE_ASM_DIRECTIVEOPERAND, "directiveoperand", FALSE },
153 { SCE_ASM_COMMENTBLOCK, "commentblock", FALSE },
154 { SCE_ASM_CHARACTER, "character", FALSE },
155 { SCE_ASM_STRINGEOL, "stringeol", FALSE },
156 { SCE_ASM_EXTINSTRUCTION, "extinstruction", FALSE },
157 { SCE_ASM_COMMENTDIRECTIVE, "commentdirective", FALSE }
159 static const HLKeyword highlighting_keywords_ASM[] =
161 { 0, "instructions", FALSE },
162 /*{ 1, "instructions", FALSE },*/
163 { 2, "registers", FALSE },
164 { 3, "directives", FALSE }
165 /*{ 5, "instructions", FALSE }*/
167 #define highlighting_properties_ASM EMPTY_PROPERTIES
170 /* BASIC */
171 #define highlighting_lexer_BASIC SCLEX_FREEBASIC
172 static const HLStyle highlighting_styles_BASIC[] =
174 { SCE_B_DEFAULT, "default", FALSE },
175 { SCE_B_COMMENT, "comment", FALSE },
176 { SCE_B_COMMENTBLOCK, "commentblock", FALSE },
177 { SCE_B_DOCLINE, "docline", FALSE },
178 { SCE_B_DOCBLOCK, "docblock", FALSE },
179 { SCE_B_DOCKEYWORD, "dockeyword", FALSE },
180 { SCE_B_NUMBER, "number", FALSE },
181 { SCE_B_KEYWORD, "word", FALSE },
182 { SCE_B_STRING, "string", FALSE },
183 { SCE_B_PREPROCESSOR, "preprocessor", FALSE },
184 { SCE_B_OPERATOR, "operator", FALSE },
185 { SCE_B_IDENTIFIER, "identifier", FALSE },
186 { SCE_B_DATE, "date", FALSE },
187 { SCE_B_STRINGEOL, "stringeol", FALSE },
188 { SCE_B_KEYWORD2, "word2", FALSE },
189 { SCE_B_KEYWORD3, "word3", FALSE },
190 { SCE_B_KEYWORD4, "word4", FALSE },
191 { SCE_B_CONSTANT, "constant", FALSE },
192 { SCE_B_ASM, "asm", FALSE },
193 { SCE_B_LABEL, "label", FALSE },
194 { SCE_B_ERROR, "error", FALSE },
195 { SCE_B_HEXNUMBER, "hexnumber", FALSE },
196 { SCE_B_BINNUMBER, "binnumber", FALSE }
198 static const HLKeyword highlighting_keywords_BASIC[] =
200 { 0, "keywords", FALSE },
201 { 1, "preprocessor", FALSE },
202 { 2, "user1", FALSE },
203 { 3, "user2", FALSE }
205 #define highlighting_properties_BASIC EMPTY_PROPERTIES
208 /* BATCH */
209 #define highlighting_lexer_BATCH SCLEX_BATCH
210 static const HLStyle highlighting_styles_BATCH[] =
212 { SCE_BAT_DEFAULT, "default", FALSE },
213 { SCE_BAT_COMMENT, "comment", FALSE },
214 { SCE_BAT_LABEL, "label", FALSE },
215 { SCE_BAT_WORD, "word", FALSE },
216 { SCE_BAT_HIDE, "hide", FALSE },
217 { SCE_BAT_COMMAND, "command", FALSE },
218 { SCE_BAT_IDENTIFIER, "identifier", FALSE },
219 { SCE_BAT_OPERATOR, "operator", FALSE }
221 static const HLKeyword highlighting_keywords_BATCH[] =
223 { 0, "keywords", FALSE },
224 { 1, "keywords_optional", FALSE }
226 #define highlighting_properties_BATCH EMPTY_PROPERTIES
229 /* C */
230 /* Also used by some other SCLEX_CPP-based filetypes */
231 #define highlighting_lexer_C SCLEX_CPP
232 static const HLStyle highlighting_styles_C[] =
234 { SCE_C_DEFAULT, "default", FALSE },
235 { SCE_C_COMMENT, "comment", FALSE },
236 { SCE_C_COMMENTLINE, "commentline", FALSE },
237 { SCE_C_COMMENTDOC, "commentdoc", FALSE },
238 { SCE_C_PREPROCESSORCOMMENT, "preprocessorcomment", FALSE },
239 { SCE_C_PREPROCESSORCOMMENTDOC, "preprocessorcommentdoc", FALSE },
240 { SCE_C_NUMBER, "number", FALSE },
241 { SCE_C_WORD, "word", FALSE },
242 { SCE_C_WORD2, "word2", FALSE },
243 { SCE_C_STRING, "string", FALSE },
244 { SCE_C_STRINGRAW, "stringraw", FALSE },
245 { SCE_C_CHARACTER, "character", FALSE },
246 { SCE_C_USERLITERAL, "userliteral", FALSE },
247 { SCE_C_UUID, "uuid", FALSE },
248 { SCE_C_PREPROCESSOR, "preprocessor", FALSE },
249 { SCE_C_OPERATOR, "operator", FALSE },
250 { SCE_C_IDENTIFIER, "identifier", FALSE },
251 { SCE_C_STRINGEOL, "stringeol", FALSE },
252 { SCE_C_VERBATIM, "verbatim", FALSE },
253 /* triple verbatims use the same style */
254 { SCE_C_TRIPLEVERBATIM, "verbatim", FALSE },
255 { SCE_C_REGEX, "regex", FALSE },
256 { SCE_C_HASHQUOTEDSTRING, "hashquotedstring", FALSE },
257 { SCE_C_COMMENTLINEDOC, "commentlinedoc", FALSE },
258 { SCE_C_COMMENTDOCKEYWORD, "commentdockeyword", FALSE },
259 { SCE_C_COMMENTDOCKEYWORDERROR, "commentdockeyworderror", FALSE },
260 /* used for local structs and typedefs */
261 { SCE_C_GLOBALCLASS, "globalclass", FALSE },
262 { SCE_C_TASKMARKER, "taskmarker", FALSE },
263 { SCE_C_ESCAPESEQUENCE, "escapesequence", FALSE }
265 static const HLKeyword highlighting_keywords_C[] =
267 { 0, "primary", FALSE },
268 /* SCI_SETKEYWORDS = 1 - secondary + global tags file types, see below */
269 { 1, "secondary", TRUE },
270 { 2, "docComment", FALSE }
271 /* SCI_SETKEYWORDS = 3 is for current session types - see editor_lexer_get_type_keyword_idx() */
273 static const HLProperty highlighting_properties_C[] =
275 { "fold.cpp.comment.explicit", "0" }
279 /* Caml */
280 #define highlighting_lexer_CAML SCLEX_CAML
281 static const HLStyle highlighting_styles_CAML[] =
283 { SCE_CAML_DEFAULT, "default", FALSE },
284 { SCE_CAML_COMMENT, "comment", FALSE },
285 { SCE_CAML_COMMENT1, "comment1", FALSE },
286 { SCE_CAML_COMMENT2, "comment2", FALSE },
287 { SCE_CAML_COMMENT3, "comment3", FALSE },
288 { SCE_CAML_NUMBER, "number", FALSE },
289 { SCE_CAML_KEYWORD, "keyword", FALSE },
290 { SCE_CAML_KEYWORD2, "keyword2", FALSE },
291 { SCE_CAML_KEYWORD3, "keyword3", FALSE },
292 { SCE_CAML_STRING, "string", FALSE },
293 { SCE_CAML_CHAR, "char", FALSE },
294 { SCE_CAML_OPERATOR, "operator", FALSE },
295 { SCE_CAML_IDENTIFIER, "identifier", FALSE },
296 { SCE_CAML_TAGNAME, "tagname", FALSE },
297 { SCE_CAML_LINENUM, "linenum", FALSE },
298 { SCE_CAML_WHITE, "white", FALSE }
300 static const HLKeyword highlighting_keywords_CAML[] =
302 { 0, "keywords", FALSE },
303 { 1, "keywords_optional", FALSE }
305 #define highlighting_properties_CAML EMPTY_PROPERTIES
308 /* CMake */
309 #define highlighting_lexer_CMAKE SCLEX_CMAKE
310 static const HLStyle highlighting_styles_CMAKE[] =
312 { SCE_CMAKE_DEFAULT, "default", FALSE },
313 { SCE_CMAKE_COMMENT, "comment", FALSE },
314 { SCE_CMAKE_STRINGDQ, "stringdq", FALSE },
315 { SCE_CMAKE_STRINGLQ, "stringlq", FALSE },
316 { SCE_CMAKE_STRINGRQ, "stringrq", FALSE },
317 { SCE_CMAKE_COMMANDS, "command", FALSE },
318 { SCE_CMAKE_PARAMETERS, "parameters", FALSE },
319 { SCE_CMAKE_VARIABLE, "variable", FALSE },
320 { SCE_CMAKE_USERDEFINED, "userdefined", FALSE },
321 { SCE_CMAKE_WHILEDEF, "whiledef", FALSE },
322 { SCE_CMAKE_FOREACHDEF, "foreachdef", FALSE },
323 { SCE_CMAKE_IFDEFINEDEF, "ifdefinedef", FALSE },
324 { SCE_CMAKE_MACRODEF, "macrodef", FALSE },
325 { SCE_CMAKE_STRINGVAR, "stringvar", FALSE },
326 { SCE_CMAKE_NUMBER, "number", FALSE }
328 static const HLKeyword highlighting_keywords_CMAKE[] =
330 { 0, "commands", FALSE },
331 { 1, "parameters", FALSE },
332 { 2, "userdefined", FALSE }
334 #define highlighting_properties_CMAKE EMPTY_PROPERTIES
337 /* CSS */
338 #define highlighting_lexer_CSS SCLEX_CSS
339 static const HLStyle highlighting_styles_CSS[] =
341 { SCE_CSS_DEFAULT, "default", FALSE },
342 { SCE_CSS_COMMENT, "comment", FALSE },
343 { SCE_CSS_TAG, "tag", FALSE },
344 { SCE_CSS_CLASS, "class", FALSE },
345 { SCE_CSS_PSEUDOCLASS, "pseudoclass", FALSE },
346 { SCE_CSS_UNKNOWN_PSEUDOCLASS, "unknown_pseudoclass", FALSE },
347 { SCE_CSS_UNKNOWN_IDENTIFIER, "unknown_identifier", FALSE },
348 { SCE_CSS_OPERATOR, "operator", FALSE },
349 { SCE_CSS_IDENTIFIER, "identifier", FALSE },
350 { SCE_CSS_DOUBLESTRING, "doublestring", FALSE },
351 { SCE_CSS_SINGLESTRING, "singlestring", FALSE },
352 { SCE_CSS_ATTRIBUTE, "attribute", FALSE },
353 { SCE_CSS_VALUE, "value", FALSE },
354 { SCE_CSS_ID, "id", FALSE },
355 { SCE_CSS_IDENTIFIER2, "identifier2", FALSE },
356 { SCE_CSS_VARIABLE, "variable", FALSE },
357 { SCE_CSS_IMPORTANT, "important", FALSE },
358 { SCE_CSS_DIRECTIVE, "directive", FALSE },
359 { SCE_CSS_IDENTIFIER3, "identifier3", FALSE },
360 { SCE_CSS_PSEUDOELEMENT, "pseudoelement", FALSE },
361 { SCE_CSS_EXTENDED_IDENTIFIER, "extended_identifier", FALSE },
362 { SCE_CSS_EXTENDED_PSEUDOCLASS, "extended_pseudoclass", FALSE },
363 { SCE_CSS_EXTENDED_PSEUDOELEMENT, "extended_pseudoelement", FALSE },
364 { SCE_CSS_MEDIA, "media", FALSE }
366 static const HLKeyword highlighting_keywords_CSS[] =
368 { 0, "primary", FALSE },
369 { 1, "pseudoclasses", FALSE },
370 { 2, "secondary", FALSE },
371 { 3, "css3_properties", FALSE },
372 { 4, "pseudo_elements", FALSE },
373 { 5, "browser_css_properties", FALSE },
374 { 6, "browser_pseudo_classes", FALSE },
375 { 7, "browser_pseudo_elements", FALSE }
377 #define highlighting_properties_CSS EMPTY_PROPERTIES
380 /* Cobol */
381 #define highlighting_lexer_COBOL SCLEX_COBOL
382 #define highlighting_styles_COBOL highlighting_styles_C
383 static const HLKeyword highlighting_keywords_COBOL[] =
385 { 0, "primary", FALSE },
386 { 1, "secondary", FALSE },
387 { 2, "extended_keywords", FALSE }
389 #define highlighting_properties_COBOL highlighting_properties_C
392 /* Conf */
393 #define highlighting_lexer_CONF SCLEX_PROPERTIES
394 static const HLStyle highlighting_styles_CONF[] =
396 { SCE_PROPS_DEFAULT, "default", FALSE },
397 { SCE_PROPS_COMMENT, "comment", FALSE },
398 { SCE_PROPS_SECTION, "section", FALSE },
399 { SCE_PROPS_KEY, "key", FALSE },
400 { SCE_PROPS_ASSIGNMENT, "assignment", FALSE },
401 { SCE_PROPS_DEFVAL, "defval", FALSE }
403 #define highlighting_keywords_CONF EMPTY_KEYWORDS
404 #define highlighting_properties_CONF EMPTY_PROPERTIES
407 /* D */
408 #define highlighting_lexer_D SCLEX_D
409 static const HLStyle highlighting_styles_D[] =
411 { SCE_D_DEFAULT, "default", FALSE },
412 { SCE_D_COMMENT, "comment", FALSE },
413 { SCE_D_COMMENTLINE, "commentline", FALSE },
414 { SCE_D_COMMENTDOC, "commentdoc", FALSE },
415 { SCE_D_COMMENTNESTED, "commentnested", FALSE },
416 { SCE_D_NUMBER, "number", FALSE },
417 { SCE_D_WORD, "word", FALSE },
418 { SCE_D_WORD2, "word2", FALSE },
419 { SCE_D_WORD3, "word3", FALSE },
420 { SCE_D_TYPEDEF, "typedef", FALSE }, /* FIXME: don't remap here */
421 { SCE_D_WORD5, "typedef", FALSE },
422 { SCE_D_STRING, "string", FALSE },
423 { SCE_D_STRINGB, "string", FALSE },
424 { SCE_D_STRINGR, "string", FALSE },
425 { SCE_D_STRINGEOL, "stringeol", FALSE },
426 { SCE_D_CHARACTER, "character", FALSE },
427 { SCE_D_OPERATOR, "operator", FALSE },
428 { SCE_D_IDENTIFIER, "identifier", FALSE },
429 { SCE_D_COMMENTLINEDOC, "commentlinedoc", FALSE },
430 { SCE_D_COMMENTDOCKEYWORD, "commentdockeyword", FALSE },
431 { SCE_D_COMMENTDOCKEYWORDERROR, "commentdockeyworderror", FALSE }
432 /* these are for user-defined keywords we don't set yet */
433 /*{ SCE_D_WORD6, "word6", FALSE },
434 { SCE_D_WORD7, "word7", FALSE }*/
436 static const HLKeyword highlighting_keywords_D[] =
438 { 0, "primary", FALSE },
439 /* SCI_SETKEYWORDS = 1 - secondary + global tags file types */
440 { 1, "secondary", TRUE },
441 { 2, "docComment", FALSE },
442 /* SCI_SETKEYWORDS = 3 is for current session types - see editor_lexer_get_type_keyword_idx() */
443 { 4, "types", FALSE },
445 #define highlighting_properties_D EMPTY_PROPERTIES
448 /* Diff */
449 #define highlighting_lexer_DIFF SCLEX_DIFF
450 static const HLStyle highlighting_styles_DIFF[] =
452 { SCE_DIFF_DEFAULT, "default", FALSE },
453 { SCE_DIFF_COMMENT, "comment", FALSE },
454 { SCE_DIFF_COMMAND, "command", FALSE },
455 { SCE_DIFF_HEADER, "header", FALSE },
456 { SCE_DIFF_POSITION, "position", FALSE },
457 { SCE_DIFF_DELETED, "deleted", FALSE },
458 { SCE_DIFF_ADDED, "added", FALSE },
459 { SCE_DIFF_CHANGED, "changed", FALSE }
461 #define highlighting_keywords_DIFF EMPTY_KEYWORDS
462 #define highlighting_properties_DIFF EMPTY_PROPERTIES
465 #define highlighting_lexer_DOCBOOK SCLEX_XML
466 static const HLStyle highlighting_styles_DOCBOOK[] =
468 { SCE_H_DEFAULT, "default", FALSE },
469 { SCE_H_TAG, "tag", FALSE },
470 { SCE_H_TAGUNKNOWN, "tagunknown", FALSE },
471 { SCE_H_ATTRIBUTE, "attribute", FALSE },
472 { SCE_H_ATTRIBUTEUNKNOWN, "attributeunknown", FALSE },
473 { SCE_H_NUMBER, "number", FALSE },
474 { SCE_H_DOUBLESTRING, "doublestring", FALSE },
475 { SCE_H_SINGLESTRING, "singlestring", FALSE },
476 { SCE_H_OTHER, "other", FALSE },
477 { SCE_H_COMMENT, "comment", FALSE },
478 { SCE_H_ENTITY, "entity", FALSE },
479 { SCE_H_TAGEND, "tagend", FALSE },
480 { SCE_H_XMLSTART, "xmlstart", TRUE },
481 { SCE_H_XMLEND, "xmlend", FALSE },
482 { SCE_H_CDATA, "cdata", FALSE },
483 { SCE_H_QUESTION, "question", FALSE },
484 { SCE_H_VALUE, "value", FALSE },
485 { SCE_H_XCCOMMENT, "xccomment", FALSE },
486 { SCE_H_SGML_DEFAULT, "sgml_default", FALSE },
487 { SCE_H_SGML_COMMENT, "sgml_comment", FALSE },
488 { SCE_H_SGML_SPECIAL, "sgml_special", FALSE },
489 { SCE_H_SGML_COMMAND, "sgml_command", FALSE },
490 { SCE_H_SGML_DOUBLESTRING, "sgml_doublestring", FALSE },
491 { SCE_H_SGML_SIMPLESTRING, "sgml_simplestring", FALSE },
492 { SCE_H_SGML_1ST_PARAM, "sgml_1st_param", FALSE },
493 { SCE_H_SGML_ENTITY, "sgml_entity", FALSE },
494 { SCE_H_SGML_BLOCK_DEFAULT, "sgml_block_default", FALSE },
495 { SCE_H_SGML_1ST_PARAM_COMMENT, "sgml_1st_param_comment", FALSE },
496 { SCE_H_SGML_ERROR, "sgml_error", FALSE }
498 static const HLKeyword highlighting_keywords_DOCBOOK[] =
500 { 0, "elements", FALSE },
501 { 5, "dtd", FALSE }
503 #define highlighting_properties_DOCBOOK EMPTY_PROPERTIES
506 /* Erlang */
507 #define highlighting_lexer_ERLANG SCLEX_ERLANG
508 static const HLStyle highlighting_styles_ERLANG[] =
510 { SCE_ERLANG_DEFAULT, "default", FALSE },
511 { SCE_ERLANG_COMMENT, "comment", FALSE },
512 { SCE_ERLANG_VARIABLE, "variable", FALSE },
513 { SCE_ERLANG_NUMBER, "number", FALSE },
514 { SCE_ERLANG_KEYWORD, "keyword", FALSE },
515 { SCE_ERLANG_STRING, "string", FALSE },
516 { SCE_ERLANG_OPERATOR, "operator", FALSE },
517 { SCE_ERLANG_ATOM, "atom", FALSE },
518 { SCE_ERLANG_FUNCTION_NAME, "function_name", FALSE },
519 { SCE_ERLANG_CHARACTER, "character", FALSE },
520 { SCE_ERLANG_MACRO, "macro", FALSE },
521 { SCE_ERLANG_RECORD, "record", FALSE },
522 { SCE_ERLANG_PREPROC, "preproc", FALSE },
523 { SCE_ERLANG_NODE_NAME, "node_name", FALSE },
524 { SCE_ERLANG_COMMENT_FUNCTION, "comment_function", FALSE },
525 { SCE_ERLANG_COMMENT_MODULE, "comment_module", FALSE },
526 { SCE_ERLANG_COMMENT_DOC, "comment_doc", FALSE },
527 { SCE_ERLANG_COMMENT_DOC_MACRO, "comment_doc_macro", FALSE },
528 { SCE_ERLANG_ATOM_QUOTED, "atom_quoted", FALSE },
529 { SCE_ERLANG_MACRO_QUOTED, "macro_quoted", FALSE },
530 { SCE_ERLANG_RECORD_QUOTED, "record_quoted", FALSE },
531 { SCE_ERLANG_NODE_NAME_QUOTED, "node_name_quoted", FALSE },
532 { SCE_ERLANG_BIFS, "bifs", FALSE },
533 { SCE_ERLANG_MODULES, "modules", FALSE },
534 { SCE_ERLANG_MODULES_ATT, "modules_att", FALSE },
535 { SCE_ERLANG_UNKNOWN, "unknown", FALSE }
537 static const HLKeyword highlighting_keywords_ERLANG[] =
539 { 0, "keywords", FALSE },
540 { 1, "bifs", FALSE },
541 { 2, "preproc", FALSE },
542 { 3, "module", FALSE },
543 { 4, "doc", FALSE },
544 { 5, "doc_macro", FALSE }
546 #define highlighting_properties_ERLANG EMPTY_PROPERTIES
549 /* F77 */
550 #define highlighting_lexer_F77 SCLEX_F77
551 static const HLStyle highlighting_styles_F77[] =
553 { SCE_F_DEFAULT, "default", FALSE },
554 { SCE_F_COMMENT, "comment", FALSE },
555 { SCE_F_NUMBER, "number", FALSE },
556 { SCE_F_STRING1, "string", FALSE },
557 { SCE_F_OPERATOR, "operator", FALSE },
558 { SCE_F_IDENTIFIER, "identifier", FALSE },
559 { SCE_F_STRING2, "string2", FALSE },
560 { SCE_F_WORD, "word", FALSE },
561 { SCE_F_WORD2, "word2", FALSE },
562 { SCE_F_WORD3, "word3", FALSE },
563 { SCE_F_PREPROCESSOR, "preprocessor", FALSE },
564 { SCE_F_OPERATOR2, "operator2", FALSE },
565 { SCE_F_CONTINUATION, "continuation", FALSE },
566 { SCE_F_STRINGEOL, "stringeol", FALSE },
567 { SCE_F_LABEL, "label", FALSE }
569 static const HLKeyword highlighting_keywords_F77[] =
571 { 0, "primary", FALSE },
572 { 1, "intrinsic_functions", FALSE },
573 { 2, "user_functions", FALSE }
575 #define highlighting_properties_F77 EMPTY_PROPERTIES
578 /* Ferite */
579 #define highlighting_lexer_FERITE SCLEX_CPP
580 #define highlighting_styles_FERITE highlighting_styles_C
581 static const HLKeyword highlighting_keywords_FERITE[] =
583 { 0, "primary", FALSE },
584 { 1, "types", FALSE },
585 { 2, "docComment", FALSE }
587 #define highlighting_properties_FERITE highlighting_properties_C
590 /* Forth */
591 #define highlighting_lexer_FORTH SCLEX_FORTH
592 static const HLStyle highlighting_styles_FORTH[] =
594 { SCE_FORTH_DEFAULT, "default", FALSE },
595 { SCE_FORTH_COMMENT, "comment", FALSE },
596 { SCE_FORTH_COMMENT_ML, "commentml", FALSE },
597 { SCE_FORTH_IDENTIFIER, "identifier", FALSE },
598 { SCE_FORTH_CONTROL, "control", FALSE },
599 { SCE_FORTH_KEYWORD, "keyword", FALSE },
600 { SCE_FORTH_DEFWORD, "defword", FALSE },
601 { SCE_FORTH_PREWORD1, "preword1", FALSE },
602 { SCE_FORTH_PREWORD2, "preword2", FALSE },
603 { SCE_FORTH_NUMBER, "number", FALSE },
604 { SCE_FORTH_STRING, "string", FALSE },
605 { SCE_FORTH_LOCALE, "locale", FALSE }
607 static const HLKeyword highlighting_keywords_FORTH[] =
609 { 0, "primary", FALSE },
610 { 1, "keyword", FALSE },
611 { 2, "defword", FALSE },
612 { 3, "preword1", FALSE },
613 { 4, "preword2", FALSE },
614 { 5, "string", FALSE }
616 #define highlighting_properties_FORTH EMPTY_PROPERTIES
619 /* Fortran */
620 /* F77 and Fortran (F9x) uses different lexers but shares styles and keywords */
621 #define highlighting_lexer_FORTRAN SCLEX_FORTRAN
622 #define highlighting_styles_FORTRAN highlighting_styles_F77
623 #define highlighting_keywords_FORTRAN highlighting_keywords_F77
624 #define highlighting_properties_FORTRAN highlighting_properties_F77
627 /* Haskell */
628 #define highlighting_lexer_HASKELL SCLEX_HASKELL
629 static const HLStyle highlighting_styles_HASKELL[] =
631 { SCE_HA_DEFAULT, "default", FALSE },
632 { SCE_HA_COMMENTLINE, "commentline", FALSE },
633 { SCE_HA_COMMENTBLOCK, "commentblock", FALSE },
634 { SCE_HA_COMMENTBLOCK2, "commentblock2", FALSE },
635 { SCE_HA_COMMENTBLOCK3, "commentblock3", FALSE },
636 { SCE_HA_NUMBER, "number", FALSE },
637 { SCE_HA_KEYWORD, "keyword", FALSE },
638 { SCE_HA_IMPORT, "import", FALSE },
639 { SCE_HA_STRING, "string", FALSE },
640 { SCE_HA_CHARACTER, "character", FALSE },
641 { SCE_HA_CLASS, "class", FALSE },
642 { SCE_HA_OPERATOR, "operator", FALSE },
643 { SCE_HA_IDENTIFIER, "identifier", FALSE },
644 { SCE_HA_INSTANCE, "instance", FALSE },
645 { SCE_HA_CAPITAL, "capital", FALSE },
646 { SCE_HA_MODULE, "module", FALSE },
647 { SCE_HA_DATA, "data", FALSE },
648 { SCE_HA_PRAGMA, "pragma", FALSE },
649 { SCE_HA_PREPROCESSOR, "preprocessor", FALSE },
650 { SCE_HA_STRINGEOL, "stringeol", FALSE },
651 { SCE_HA_RESERVED_OPERATOR, "reserved_operator", FALSE },
652 { SCE_HA_LITERATE_COMMENT, "literate_comment", FALSE },
653 { SCE_HA_LITERATE_CODEDELIM, "literate_codedelim", FALSE }
655 static const HLKeyword highlighting_keywords_HASKELL[] =
657 { 0, "keywords", FALSE },
658 { 1, "ffi", FALSE },
659 { 2, "reserved_operators", FALSE }
661 #define highlighting_properties_HASKELL EMPTY_PROPERTIES
664 /* HAXE */
665 #define highlighting_lexer_HAXE SCLEX_CPP
666 #define highlighting_styles_HAXE highlighting_styles_C
667 static const HLKeyword highlighting_keywords_HAXE[] =
669 { 0, "primary", FALSE },
670 { 1, "secondary", FALSE },
671 { 3, "classes", FALSE }
673 #define highlighting_properties_HAXE highlighting_properties_C
676 /* HTML */
677 #define highlighting_lexer_HTML SCLEX_HTML
678 static const HLStyle highlighting_styles_HTML[] =
680 { SCE_H_DEFAULT, "html_default", FALSE },
681 { SCE_H_TAG, "html_tag", FALSE },
682 { SCE_H_TAGUNKNOWN, "html_tagunknown", FALSE },
683 { SCE_H_ATTRIBUTE, "html_attribute", FALSE },
684 { SCE_H_ATTRIBUTEUNKNOWN, "html_attributeunknown", FALSE },
685 { SCE_H_NUMBER, "html_number", FALSE },
686 { SCE_H_DOUBLESTRING, "html_doublestring", FALSE },
687 { SCE_H_SINGLESTRING, "html_singlestring", FALSE },
688 { SCE_H_OTHER, "html_other", FALSE },
689 { SCE_H_COMMENT, "html_comment", FALSE },
690 { SCE_H_ENTITY, "html_entity", FALSE },
691 { SCE_H_TAGEND, "html_tagend", FALSE },
692 { SCE_H_XMLSTART, "html_xmlstart", TRUE },
693 { SCE_H_XMLEND, "html_xmlend", FALSE },
694 { SCE_H_SCRIPT, "html_script", FALSE },
695 { SCE_H_ASP, "html_asp", TRUE },
696 { SCE_H_ASPAT, "html_aspat", TRUE },
697 { SCE_H_CDATA, "html_cdata", FALSE },
698 { SCE_H_QUESTION, "html_question", FALSE },
699 { SCE_H_VALUE, "html_value", FALSE },
700 { SCE_H_XCCOMMENT, "html_xccomment", FALSE },
702 { SCE_H_SGML_DEFAULT, "sgml_default", FALSE },
703 { SCE_H_SGML_COMMENT, "sgml_comment", FALSE },
704 { SCE_H_SGML_SPECIAL, "sgml_special", FALSE },
705 { SCE_H_SGML_COMMAND, "sgml_command", FALSE },
706 { SCE_H_SGML_DOUBLESTRING, "sgml_doublestring", FALSE },
707 { SCE_H_SGML_SIMPLESTRING, "sgml_simplestring", FALSE },
708 { SCE_H_SGML_1ST_PARAM, "sgml_1st_param", FALSE },
709 { SCE_H_SGML_ENTITY, "sgml_entity", FALSE },
710 { SCE_H_SGML_BLOCK_DEFAULT, "sgml_block_default", FALSE },
711 { SCE_H_SGML_1ST_PARAM_COMMENT, "sgml_1st_param_comment", FALSE },
712 { SCE_H_SGML_ERROR, "sgml_error", FALSE },
714 /* embedded JavaScript */
715 { SCE_HJ_START, "jscript_start", FALSE },
716 { SCE_HJ_DEFAULT, "jscript_default", FALSE },
717 { SCE_HJ_COMMENT, "jscript_comment", FALSE },
718 { SCE_HJ_COMMENTLINE, "jscript_commentline", FALSE },
719 { SCE_HJ_COMMENTDOC, "jscript_commentdoc", FALSE },
720 { SCE_HJ_NUMBER, "jscript_number", FALSE },
721 { SCE_HJ_WORD, "jscript_word", FALSE },
722 { SCE_HJ_KEYWORD, "jscript_keyword", FALSE },
723 { SCE_HJ_DOUBLESTRING, "jscript_doublestring", FALSE },
724 { SCE_HJ_SINGLESTRING, "jscript_singlestring", FALSE },
725 { SCE_HJ_SYMBOLS, "jscript_symbols", FALSE },
726 { SCE_HJ_STRINGEOL, "jscript_stringeol", FALSE },
727 { SCE_HJ_REGEX, "jscript_regex", FALSE },
729 /* for HB, VBScript?, use the same styles as for JavaScript */
730 { SCE_HB_START, "jscript_start", FALSE },
731 { SCE_HB_DEFAULT, "jscript_default", FALSE },
732 { SCE_HB_COMMENTLINE, "jscript_commentline", FALSE },
733 { SCE_HB_NUMBER, "jscript_number", FALSE },
734 { SCE_HB_WORD, "jscript_keyword", FALSE }, /* keywords */
735 { SCE_HB_STRING, "jscript_doublestring", FALSE },
736 { SCE_HB_IDENTIFIER, "jscript_symbols", FALSE },
737 { SCE_HB_STRINGEOL, "jscript_stringeol", FALSE },
739 /* for HBA, VBScript?, use the same styles as for JavaScript */
740 { SCE_HBA_START, "jscript_start", FALSE },
741 { SCE_HBA_DEFAULT, "jscript_default", FALSE },
742 { SCE_HBA_COMMENTLINE, "jscript_commentline", FALSE },
743 { SCE_HBA_NUMBER, "jscript_number", FALSE },
744 { SCE_HBA_WORD, "jscript_keyword", FALSE }, /* keywords */
745 { SCE_HBA_STRING, "jscript_doublestring", FALSE },
746 { SCE_HBA_IDENTIFIER, "jscript_symbols", FALSE },
747 { SCE_HBA_STRINGEOL, "jscript_stringeol", FALSE },
749 /* for HJA, ASP Javascript, use the same styles as for JavaScript */
750 { SCE_HJA_START, "jscript_start", FALSE },
751 { SCE_HJA_DEFAULT, "jscript_default", FALSE },
752 { SCE_HJA_COMMENT, "jscript_comment", FALSE },
753 { SCE_HJA_COMMENTLINE, "jscript_commentline", FALSE },
754 { SCE_HJA_COMMENTDOC, "jscript_commentdoc", FALSE },
755 { SCE_HJA_NUMBER, "jscript_number", FALSE },
756 { SCE_HJA_WORD, "jscript_word", FALSE },
757 { SCE_HJA_KEYWORD, "jscript_keyword", FALSE },
758 { SCE_HJA_DOUBLESTRING, "jscript_doublestring", FALSE },
759 { SCE_HJA_SINGLESTRING, "jscript_singlestring", FALSE },
760 { SCE_HJA_SYMBOLS, "jscript_symbols", FALSE },
761 { SCE_HJA_STRINGEOL, "jscript_stringeol", FALSE },
762 { SCE_HJA_REGEX, "jscript_regex", FALSE },
764 /* embedded Python */
765 { SCE_HP_START, "jscript_start", FALSE },
766 { SCE_HP_DEFAULT, "python_default", FALSE },
767 { SCE_HP_COMMENTLINE, "python_commentline", FALSE },
768 { SCE_HP_NUMBER, "python_number", FALSE },
769 { SCE_HP_STRING, "python_string", FALSE },
770 { SCE_HP_CHARACTER, "python_character", FALSE },
771 { SCE_HP_WORD, "python_word", FALSE },
772 { SCE_HP_TRIPLE, "python_triple", FALSE },
773 { SCE_HP_TRIPLEDOUBLE, "python_tripledouble", FALSE },
774 { SCE_HP_CLASSNAME, "python_classname", FALSE },
775 { SCE_HP_DEFNAME, "python_defname", FALSE },
776 { SCE_HP_OPERATOR, "python_operator", FALSE },
777 { SCE_HP_IDENTIFIER, "python_identifier", FALSE },
779 /* for embedded HPA (what is this?) we use the Python styles */
780 { SCE_HPA_START, "jscript_start", FALSE },
781 { SCE_HPA_DEFAULT, "python_default", FALSE },
782 { SCE_HPA_COMMENTLINE, "python_commentline", FALSE },
783 { SCE_HPA_NUMBER, "python_number", FALSE },
784 { SCE_HPA_STRING, "python_string", FALSE },
785 { SCE_HPA_CHARACTER, "python_character", FALSE },
786 { SCE_HPA_WORD, "python_word", FALSE },
787 { SCE_HPA_TRIPLE, "python_triple", FALSE },
788 { SCE_HPA_TRIPLEDOUBLE, "python_tripledouble", FALSE },
789 { SCE_HPA_CLASSNAME, "python_classname", FALSE },
790 { SCE_HPA_DEFNAME, "python_defname", FALSE },
791 { SCE_HPA_OPERATOR, "python_operator", FALSE },
792 { SCE_HPA_IDENTIFIER, "python_identifier", FALSE },
794 /* PHP */
795 { SCE_HPHP_DEFAULT, "php_default", FALSE },
796 { SCE_HPHP_SIMPLESTRING, "php_simplestring", FALSE },
797 { SCE_HPHP_HSTRING, "php_hstring", FALSE },
798 { SCE_HPHP_NUMBER, "php_number", FALSE },
799 { SCE_HPHP_WORD, "php_word", FALSE },
800 { SCE_HPHP_VARIABLE, "php_variable", FALSE },
801 { SCE_HPHP_COMMENT, "php_comment", FALSE },
802 { SCE_HPHP_COMMENTLINE, "php_commentline", FALSE },
803 { SCE_HPHP_OPERATOR, "php_operator", FALSE },
804 { SCE_HPHP_HSTRING_VARIABLE, "php_hstring_variable", FALSE },
805 { SCE_HPHP_COMPLEX_VARIABLE, "php_complex_variable", FALSE }
807 static const HLKeyword highlighting_keywords_HTML[] =
809 { 0, "html", FALSE },
810 { 1, "javascript", FALSE },
811 { 2, "vbscript", FALSE },
812 { 3, "python", FALSE },
813 { 4, "php", FALSE },
814 { 5, "sgml", FALSE }
816 static const HLProperty highlighting_properties_HTML[] =
818 { "fold.html", "1" },
819 { "fold.html.preprocessor", "0" }
823 /* Java */
824 #define highlighting_lexer_JAVA SCLEX_CPP
825 #define highlighting_styles_JAVA highlighting_styles_C
826 static const HLKeyword highlighting_keywords_JAVA[] =
828 { 0, "primary", FALSE },
829 /* SCI_SETKEYWORDS = 1 - secondary + global tags file types, see below */
830 { 1, "secondary", TRUE },
831 { 2, "doccomment", FALSE },
832 /* SCI_SETKEYWORDS = 3 is for current session types - see editor_lexer_get_type_keyword_idx() */
833 { 4, "typedefs", FALSE }
835 #define highlighting_properties_JAVA highlighting_properties_C
838 /* JavaScript */
839 #define highlighting_lexer_JS SCLEX_CPP
840 #define highlighting_styles_JS highlighting_styles_C
841 static const HLKeyword highlighting_keywords_JS[] =
843 { 0, "primary", FALSE },
844 { 1, "secondary", FALSE }
846 #define highlighting_properties_JS highlighting_properties_C
849 /* LaTeX */
850 #define highlighting_lexer_LATEX SCLEX_LATEX
851 static const HLStyle highlighting_styles_LATEX[] =
853 { SCE_L_DEFAULT, "default", FALSE },
854 { SCE_L_COMMAND, "command", FALSE },
855 { SCE_L_TAG, "tag", FALSE },
856 { SCE_L_MATH, "math", FALSE },
857 { SCE_L_COMMENT, "comment", FALSE },
858 { SCE_L_TAG2, "tag2", FALSE },
859 { SCE_L_MATH2, "math2", FALSE },
860 { SCE_L_COMMENT2, "comment2", FALSE },
861 { SCE_L_VERBATIM, "verbatim", FALSE },
862 { SCE_L_SHORTCMD, "shortcmd", FALSE },
863 { SCE_L_SPECIAL, "special", FALSE },
864 { SCE_L_CMDOPT, "cmdopt", FALSE },
865 { SCE_L_ERROR, "error", FALSE }
867 static const HLKeyword highlighting_keywords_LATEX[] =
869 { 0, "primary", FALSE }
871 #define highlighting_properties_LATEX EMPTY_PROPERTIES
874 /* Lisp */
875 #define highlighting_lexer_LISP SCLEX_LISP
876 static const HLStyle highlighting_styles_LISP[] =
878 { SCE_LISP_DEFAULT, "default", FALSE },
879 { SCE_LISP_COMMENT, "comment", FALSE },
880 { SCE_LISP_MULTI_COMMENT, "multicomment", FALSE },
881 { SCE_LISP_NUMBER, "number", FALSE },
882 { SCE_LISP_KEYWORD, "keyword", FALSE },
883 { SCE_LISP_SYMBOL, "symbol", FALSE },
884 { SCE_LISP_STRING, "string", FALSE },
885 { SCE_LISP_STRINGEOL, "stringeol", FALSE },
886 { SCE_LISP_IDENTIFIER, "identifier", FALSE },
887 { SCE_LISP_OPERATOR, "operator", FALSE },
888 { SCE_LISP_SPECIAL, "special", FALSE },
889 { SCE_LISP_KEYWORD_KW, "keywordkw", FALSE }
891 static const HLKeyword highlighting_keywords_LISP[] =
893 { 0, "keywords", FALSE },
894 { 1, "special_keywords", FALSE }
896 #define highlighting_properties_LISP EMPTY_PROPERTIES
899 /* Lua */
900 #define highlighting_lexer_LUA SCLEX_LUA
901 static const HLStyle highlighting_styles_LUA[] =
903 { SCE_LUA_DEFAULT, "default", FALSE },
904 { SCE_LUA_COMMENT, "comment", FALSE },
905 { SCE_LUA_COMMENTLINE, "commentline", FALSE },
906 { SCE_LUA_COMMENTDOC, "commentdoc", FALSE },
907 { SCE_LUA_NUMBER, "number", FALSE },
908 { SCE_LUA_WORD, "word", FALSE },
909 { SCE_LUA_STRING, "string", FALSE },
910 { SCE_LUA_CHARACTER, "character", FALSE },
911 { SCE_LUA_LITERALSTRING, "literalstring", FALSE },
912 { SCE_LUA_PREPROCESSOR, "preprocessor", FALSE },
913 { SCE_LUA_OPERATOR, "operator", FALSE },
914 { SCE_LUA_IDENTIFIER, "identifier", FALSE },
915 { SCE_LUA_STRINGEOL, "stringeol", FALSE },
916 { SCE_LUA_WORD2, "function_basic", FALSE },
917 { SCE_LUA_WORD3, "function_other", FALSE },
918 { SCE_LUA_WORD4, "coroutines", FALSE },
919 { SCE_LUA_WORD5, "word5", FALSE },
920 { SCE_LUA_WORD6, "word6", FALSE },
921 { SCE_LUA_WORD7, "word7", FALSE },
922 { SCE_LUA_WORD8, "word8", FALSE },
923 { SCE_LUA_LABEL, "label", FALSE }
925 static const HLKeyword highlighting_keywords_LUA[] =
927 { 0, "keywords", FALSE },
928 { 1, "function_basic", FALSE },
929 { 2, "function_other", FALSE },
930 { 3, "coroutines", FALSE },
931 { 4, "user1", FALSE },
932 { 5, "user2", FALSE },
933 { 6, "user3", FALSE },
934 { 7, "user4", FALSE }
936 #define highlighting_properties_LUA EMPTY_PROPERTIES
939 /* Makefile */
940 #define highlighting_lexer_MAKE SCLEX_MAKEFILE
941 static const HLStyle highlighting_styles_MAKE[] =
943 { SCE_MAKE_DEFAULT, "default", FALSE },
944 { SCE_MAKE_COMMENT, "comment", FALSE },
945 { SCE_MAKE_PREPROCESSOR, "preprocessor", FALSE },
946 { SCE_MAKE_IDENTIFIER, "identifier", FALSE },
947 { SCE_MAKE_OPERATOR, "operator", FALSE },
948 { SCE_MAKE_TARGET, "target", FALSE },
949 { SCE_MAKE_IDEOL, "ideol", FALSE }
951 #define highlighting_keywords_MAKE EMPTY_KEYWORDS
952 #define highlighting_properties_MAKE EMPTY_PROPERTIES
955 /* Markdown */
956 #define highlighting_lexer_MARKDOWN SCLEX_MARKDOWN
957 static const HLStyle highlighting_styles_MARKDOWN[] =
959 { SCE_MARKDOWN_DEFAULT, "default", FALSE },
960 { SCE_MARKDOWN_LINE_BEGIN, "default", FALSE }, /* FIXME: avoid in-code re-mappings */
961 { SCE_MARKDOWN_PRECHAR, "default", FALSE },
962 { SCE_MARKDOWN_STRONG1, "strong", FALSE },
963 { SCE_MARKDOWN_STRONG2, "strong", FALSE },
964 { SCE_MARKDOWN_EM1, "emphasis", FALSE },
965 { SCE_MARKDOWN_EM2, "emphasis", FALSE },
966 { SCE_MARKDOWN_HEADER1, "header1", FALSE },
967 { SCE_MARKDOWN_HEADER2, "header2", FALSE },
968 { SCE_MARKDOWN_HEADER3, "header3", FALSE },
969 { SCE_MARKDOWN_HEADER4, "header4", FALSE },
970 { SCE_MARKDOWN_HEADER5, "header5", FALSE },
971 { SCE_MARKDOWN_HEADER6, "header6", FALSE },
972 { SCE_MARKDOWN_ULIST_ITEM, "ulist_item", FALSE },
973 { SCE_MARKDOWN_OLIST_ITEM, "olist_item", FALSE },
974 { SCE_MARKDOWN_BLOCKQUOTE, "blockquote", FALSE },
975 { SCE_MARKDOWN_STRIKEOUT, "strikeout", FALSE },
976 { SCE_MARKDOWN_HRULE, "hrule", FALSE },
977 { SCE_MARKDOWN_LINK, "link", FALSE },
978 { SCE_MARKDOWN_CODE, "code", FALSE },
979 { SCE_MARKDOWN_CODE2, "code", FALSE },
980 { SCE_MARKDOWN_CODEBK, "codebk", FALSE }
982 #define highlighting_keywords_MARKDOWN EMPTY_KEYWORDS
983 #define highlighting_properties_MARKDOWN EMPTY_PROPERTIES
986 /* Matlab */
987 #define highlighting_lexer_MATLAB SCLEX_OCTAVE /* not MATLAB to support Octave's # comments */
988 static const HLStyle highlighting_styles_MATLAB[] =
990 { SCE_MATLAB_DEFAULT, "default", FALSE },
991 { SCE_MATLAB_COMMENT, "comment", FALSE },
992 { SCE_MATLAB_COMMAND, "command", FALSE },
993 { SCE_MATLAB_NUMBER, "number", FALSE },
994 { SCE_MATLAB_KEYWORD, "keyword", FALSE },
995 { SCE_MATLAB_STRING, "string", FALSE },
996 { SCE_MATLAB_OPERATOR, "operator", FALSE },
997 { SCE_MATLAB_IDENTIFIER, "identifier", FALSE },
998 { SCE_MATLAB_DOUBLEQUOTESTRING, "doublequotedstring", FALSE }
1000 static const HLKeyword highlighting_keywords_MATLAB[] =
1002 { 0, "primary", FALSE }
1004 #define highlighting_properties_MATLAB EMPTY_PROPERTIES
1007 /* NSIS */
1008 #define highlighting_lexer_NSIS SCLEX_NSIS
1009 static const HLStyle highlighting_styles_NSIS[] =
1011 { SCE_NSIS_DEFAULT, "default", FALSE },
1012 { SCE_NSIS_COMMENT, "comment", FALSE },
1013 { SCE_NSIS_STRINGDQ, "stringdq", FALSE },
1014 { SCE_NSIS_STRINGLQ, "stringlq", FALSE },
1015 { SCE_NSIS_STRINGRQ, "stringrq", FALSE },
1016 { SCE_NSIS_FUNCTION, "function", FALSE },
1017 { SCE_NSIS_VARIABLE, "variable", FALSE },
1018 { SCE_NSIS_LABEL, "label", FALSE },
1019 { SCE_NSIS_USERDEFINED, "userdefined", FALSE },
1020 { SCE_NSIS_SECTIONDEF, "sectiondef", FALSE },
1021 { SCE_NSIS_SUBSECTIONDEF, "subsectiondef", FALSE },
1022 { SCE_NSIS_IFDEFINEDEF, "ifdefinedef", FALSE },
1023 { SCE_NSIS_MACRODEF, "macrodef", FALSE },
1024 { SCE_NSIS_STRINGVAR, "stringvar", FALSE },
1025 { SCE_NSIS_NUMBER, "number", FALSE },
1026 { SCE_NSIS_SECTIONGROUP, "sectiongroup", FALSE },
1027 { SCE_NSIS_PAGEEX, "pageex", FALSE },
1028 { SCE_NSIS_FUNCTIONDEF, "functiondef", FALSE },
1029 { SCE_NSIS_COMMENTBOX, "commentbox", FALSE }
1031 static const HLKeyword highlighting_keywords_NSIS[] =
1033 { 0, "functions", FALSE },
1034 { 1, "variables", FALSE },
1035 { 2, "lables", FALSE },
1036 { 3, "userdefined", FALSE }
1038 #define highlighting_properties_NSIS EMPTY_PROPERTIES
1041 /* Objective-C */
1042 #define highlighting_lexer_OBJECTIVEC highlighting_lexer_C
1043 #define highlighting_styles_OBJECTIVEC highlighting_styles_C
1044 static const HLKeyword highlighting_keywords_OBJECTIVEC[] =
1046 { 0, "primary", FALSE },
1047 /* SCI_SETKEYWORDS = 1 - secondary + global tags file types, see below */
1048 { 1, "secondary", TRUE },
1049 { 2, "docComment", FALSE }
1050 /* SCI_SETKEYWORDS = 3 is for current session types - see editor_lexer_get_type_keyword_idx() */
1052 #define highlighting_properties_OBJECTIVEC highlighting_properties_C
1055 /* Pascal */
1056 #define highlighting_lexer_PASCAL SCLEX_PASCAL
1057 static const HLStyle highlighting_styles_PASCAL[] =
1059 { SCE_PAS_DEFAULT, "default", FALSE },
1060 { SCE_PAS_IDENTIFIER, "identifier", FALSE },
1061 { SCE_PAS_COMMENT, "comment", FALSE },
1062 { SCE_PAS_COMMENT2, "comment2", FALSE },
1063 { SCE_PAS_COMMENTLINE, "commentline", FALSE },
1064 { SCE_PAS_PREPROCESSOR, "preprocessor", FALSE },
1065 { SCE_PAS_PREPROCESSOR2, "preprocessor2", FALSE },
1066 { SCE_PAS_NUMBER, "number", FALSE },
1067 { SCE_PAS_HEXNUMBER, "hexnumber", FALSE },
1068 { SCE_PAS_WORD, "word", FALSE },
1069 { SCE_PAS_STRING, "string", FALSE },
1070 { SCE_PAS_STRINGEOL, "stringeol", FALSE },
1071 { SCE_PAS_CHARACTER, "character", FALSE },
1072 { SCE_PAS_OPERATOR, "operator", FALSE },
1073 { SCE_PAS_ASM, "asm", FALSE }
1075 static const HLKeyword highlighting_keywords_PASCAL[] =
1077 { 0, "primary", FALSE }
1079 #define highlighting_properties_PASCAL EMPTY_PROPERTIES
1082 /* Perl */
1083 #define highlighting_lexer_PERL SCLEX_PERL
1084 static const HLStyle highlighting_styles_PERL[] =
1086 { SCE_PL_DEFAULT, "default", FALSE },
1087 { SCE_PL_ERROR, "error", FALSE },
1088 { SCE_PL_COMMENTLINE, "commentline", FALSE },
1089 { SCE_PL_NUMBER, "number", FALSE },
1090 { SCE_PL_WORD, "word", FALSE },
1091 { SCE_PL_STRING, "string", FALSE },
1092 { SCE_PL_CHARACTER, "character", FALSE },
1093 { SCE_PL_PREPROCESSOR, "preprocessor", FALSE },
1094 { SCE_PL_OPERATOR, "operator", FALSE },
1095 { SCE_PL_IDENTIFIER, "identifier", FALSE },
1096 { SCE_PL_SCALAR, "scalar", FALSE },
1097 { SCE_PL_POD, "pod", FALSE },
1098 { SCE_PL_REGEX, "regex", FALSE },
1099 { SCE_PL_ARRAY, "array", FALSE },
1100 { SCE_PL_HASH, "hash", FALSE },
1101 { SCE_PL_SYMBOLTABLE, "symboltable", FALSE },
1102 { SCE_PL_BACKTICKS, "backticks", FALSE },
1103 { SCE_PL_POD_VERB, "pod_verbatim", FALSE },
1104 { SCE_PL_REGSUBST, "reg_subst", FALSE },
1105 { SCE_PL_DATASECTION, "datasection", FALSE },
1106 { SCE_PL_HERE_DELIM, "here_delim", FALSE },
1107 { SCE_PL_HERE_Q, "here_q", FALSE },
1108 { SCE_PL_HERE_QQ, "here_qq", FALSE },
1109 { SCE_PL_HERE_QX, "here_qx", FALSE },
1110 { SCE_PL_STRING_Q, "string_q", FALSE },
1111 { SCE_PL_STRING_QQ, "string_qq", FALSE },
1112 { SCE_PL_STRING_QX, "string_qx", FALSE },
1113 { SCE_PL_STRING_QR, "string_qr", FALSE },
1114 { SCE_PL_STRING_QW, "string_qw", FALSE },
1115 { SCE_PL_VARIABLE_INDEXER, "variable_indexer", FALSE },
1116 { SCE_PL_PUNCTUATION, "punctuation", FALSE },
1117 { SCE_PL_LONGQUOTE, "longquote", FALSE },
1118 { SCE_PL_SUB_PROTOTYPE, "sub_prototype", FALSE },
1119 { SCE_PL_FORMAT_IDENT, "format_ident", FALSE },
1120 { SCE_PL_FORMAT, "format", FALSE },
1121 { SCE_PL_STRING_VAR, "string_var", FALSE },
1122 { SCE_PL_XLAT, "xlat", FALSE },
1123 { SCE_PL_REGEX_VAR, "regex_var", FALSE },
1124 { SCE_PL_REGSUBST_VAR, "regsubst_var", FALSE },
1125 { SCE_PL_BACKTICKS_VAR, "backticks_var", FALSE },
1126 { SCE_PL_HERE_QQ_VAR, "here_qq_var", FALSE },
1127 { SCE_PL_HERE_QX_VAR, "here_qx_var", FALSE },
1128 { SCE_PL_STRING_QQ_VAR, "string_qq_var", FALSE },
1129 { SCE_PL_STRING_QX_VAR, "string_qx_var", FALSE },
1130 { SCE_PL_STRING_QR_VAR, "string_qr_var", FALSE }
1132 static const HLKeyword highlighting_keywords_PERL[] =
1134 { 0, "primary", FALSE }
1136 #define highlighting_properties_PERL EMPTY_PROPERTIES
1139 /* PHP */
1140 #define highlighting_lexer_PHP SCLEX_HTML
1141 #define highlighting_styles_PHP highlighting_styles_HTML
1142 #define highlighting_keywords_PHP highlighting_keywords_HTML
1143 #define highlighting_properties_PHP highlighting_properties_HTML
1146 /* PO (gettext) */
1147 #define highlighting_lexer_PO SCLEX_PO
1148 static const HLStyle highlighting_styles_PO[] =
1150 { SCE_PO_DEFAULT, "default", FALSE },
1151 { SCE_PO_COMMENT, "comment", FALSE },
1152 { SCE_PO_PROGRAMMER_COMMENT, "programmer_comment", FALSE },
1153 { SCE_PO_REFERENCE, "reference", FALSE },
1154 { SCE_PO_FLAGS, "flags", FALSE },
1155 { SCE_PO_FUZZY, "fuzzy", FALSE },
1156 { SCE_PO_MSGID, "msgid", FALSE },
1157 { SCE_PO_MSGID_TEXT, "msgid_text", FALSE },
1158 { SCE_PO_MSGID_TEXT_EOL, "msgid_text_eol", FALSE },
1159 { SCE_PO_MSGSTR, "msgstr", FALSE },
1160 { SCE_PO_MSGSTR_TEXT, "msgstr_text", FALSE },
1161 { SCE_PO_MSGSTR_TEXT_EOL, "msgstr_text_eol", FALSE },
1162 { SCE_PO_MSGCTXT, "msgctxt", FALSE },
1163 { SCE_PO_MSGCTXT_TEXT, "msgctxt_text", FALSE },
1164 { SCE_PO_MSGCTXT_TEXT_EOL, "msgctxt_text_eol", FALSE },
1165 { SCE_PO_ERROR, "error", FALSE }
1167 #define highlighting_keywords_PO EMPTY_KEYWORDS
1168 #define highlighting_properties_PO EMPTY_PROPERTIES
1171 /* PowerShell */
1172 #define highlighting_lexer_POWERSHELL SCLEX_POWERSHELL
1173 static const HLStyle highlighting_styles_POWERSHELL[] =
1175 { SCE_POWERSHELL_DEFAULT, "default", FALSE },
1176 { SCE_POWERSHELL_COMMENT, "comment", FALSE },
1177 { SCE_POWERSHELL_STRING, "string", FALSE },
1178 { SCE_POWERSHELL_CHARACTER, "character", FALSE },
1179 { SCE_POWERSHELL_NUMBER, "number", FALSE },
1180 { SCE_POWERSHELL_VARIABLE, "variable", FALSE },
1181 { SCE_POWERSHELL_OPERATOR, "operator", FALSE },
1182 { SCE_POWERSHELL_IDENTIFIER, "identifier", FALSE },
1183 { SCE_POWERSHELL_KEYWORD, "keyword", FALSE },
1184 { SCE_POWERSHELL_CMDLET, "cmdlet", FALSE },
1185 { SCE_POWERSHELL_ALIAS, "alias", FALSE },
1186 { SCE_POWERSHELL_FUNCTION, "function", FALSE },
1187 { SCE_POWERSHELL_USER1, "user1", FALSE },
1188 { SCE_POWERSHELL_COMMENTSTREAM, "commentstream", FALSE },
1189 { SCE_POWERSHELL_HERE_STRING, "here_string", FALSE },
1190 { SCE_POWERSHELL_HERE_CHARACTER, "here_character", FALSE },
1191 { SCE_POWERSHELL_COMMENTDOCKEYWORD, "commentdockeyword", FALSE },
1193 static const HLKeyword highlighting_keywords_POWERSHELL[] =
1195 { 0, "keywords", FALSE },
1196 { 1, "cmdlets", FALSE },
1197 { 2, "aliases", FALSE },
1198 { 3, "functions", FALSE },
1199 { 4, "user1", FALSE },
1200 { 5, "docComment", FALSE },
1202 #define highlighting_properties_POWERSHELL EMPTY_PROPERTIES
1205 /* Python */
1206 #define highlighting_lexer_PYTHON SCLEX_PYTHON
1207 static const HLStyle highlighting_styles_PYTHON[] =
1209 { SCE_P_DEFAULT, "default", FALSE },
1210 { SCE_P_COMMENTLINE, "commentline", FALSE },
1211 { SCE_P_NUMBER, "number", FALSE },
1212 { SCE_P_STRING, "string", FALSE },
1213 { SCE_P_CHARACTER, "character", FALSE },
1214 { SCE_P_WORD, "word", FALSE },
1215 { SCE_P_TRIPLE, "triple", FALSE },
1216 { SCE_P_TRIPLEDOUBLE, "tripledouble", FALSE },
1217 { SCE_P_CLASSNAME, "classname", FALSE },
1218 { SCE_P_DEFNAME, "defname", FALSE },
1219 { SCE_P_OPERATOR, "operator", FALSE },
1220 { SCE_P_IDENTIFIER, "identifier", FALSE },
1221 { SCE_P_COMMENTBLOCK, "commentblock", FALSE },
1222 { SCE_P_STRINGEOL, "stringeol", FALSE },
1223 { SCE_P_WORD2, "word2", FALSE },
1224 { SCE_P_DECORATOR, "decorator", FALSE }
1226 static const HLKeyword highlighting_keywords_PYTHON[] =
1228 { 0, "primary", FALSE },
1229 { 1, "identifiers", FALSE }
1231 #define highlighting_properties_PYTHON EMPTY_PROPERTIES
1234 /* R */
1235 #define highlighting_lexer_R SCLEX_R
1236 static const HLStyle highlighting_styles_R[] =
1238 { SCE_R_DEFAULT, "default", FALSE },
1239 { SCE_R_COMMENT, "comment", FALSE },
1240 { SCE_R_KWORD, "kword", FALSE },
1241 { SCE_R_OPERATOR, "operator", FALSE },
1242 { SCE_R_BASEKWORD, "basekword", FALSE },
1243 { SCE_R_OTHERKWORD, "otherkword", FALSE },
1244 { SCE_R_NUMBER, "number", FALSE },
1245 { SCE_R_STRING, "string", FALSE },
1246 { SCE_R_STRING2, "string2", FALSE },
1247 { SCE_R_IDENTIFIER, "identifier", FALSE },
1248 { SCE_R_INFIX, "infix", FALSE },
1249 { SCE_R_INFIXEOL, "infixeol", FALSE }
1251 static const HLKeyword highlighting_keywords_R[] =
1253 { 0, "primary", FALSE },
1254 { 1, "package", FALSE },
1255 { 2, "package_other", FALSE }
1257 #define highlighting_properties_R EMPTY_PROPERTIES
1260 /* Ruby */
1261 #define highlighting_lexer_RUBY SCLEX_RUBY
1262 static const HLStyle highlighting_styles_RUBY[] =
1264 { SCE_RB_DEFAULT, "default", FALSE },
1265 { SCE_RB_COMMENTLINE, "commentline", FALSE },
1266 { SCE_RB_NUMBER, "number", FALSE },
1267 { SCE_RB_STRING, "string", FALSE },
1268 { SCE_RB_CHARACTER, "character", FALSE },
1269 { SCE_RB_WORD, "word", FALSE },
1270 { SCE_RB_GLOBAL, "global", FALSE },
1271 { SCE_RB_SYMBOL, "symbol", FALSE },
1272 { SCE_RB_CLASSNAME, "classname", FALSE },
1273 { SCE_RB_DEFNAME, "defname", FALSE },
1274 { SCE_RB_OPERATOR, "operator", FALSE },
1275 { SCE_RB_IDENTIFIER, "identifier", FALSE },
1276 { SCE_RB_MODULE_NAME, "modulename", FALSE },
1277 { SCE_RB_BACKTICKS, "backticks", FALSE },
1278 { SCE_RB_INSTANCE_VAR, "instancevar", FALSE },
1279 { SCE_RB_CLASS_VAR, "classvar", FALSE },
1280 { SCE_RB_DATASECTION, "datasection", FALSE },
1281 { SCE_RB_HERE_DELIM, "heredelim", FALSE },
1282 { SCE_RB_WORD_DEMOTED, "worddemoted", FALSE },
1283 { SCE_RB_STDIN, "stdin", FALSE },
1284 { SCE_RB_STDOUT, "stdout", FALSE },
1285 { SCE_RB_STDERR, "stderr", FALSE },
1286 { SCE_RB_REGEX, "regex", FALSE },
1287 { SCE_RB_HERE_Q, "here_q", FALSE },
1288 { SCE_RB_HERE_QQ, "here_qq", FALSE },
1289 { SCE_RB_HERE_QX, "here_qx", FALSE },
1290 { SCE_RB_STRING_Q, "string_q", FALSE },
1291 { SCE_RB_STRING_QQ, "string_qq", FALSE },
1292 { SCE_RB_STRING_QX, "string_qx", FALSE },
1293 { SCE_RB_STRING_QR, "string_qr", FALSE },
1294 { SCE_RB_STRING_QW, "string_qw", FALSE },
1295 { SCE_RB_UPPER_BOUND, "upper_bound", FALSE },
1296 { SCE_RB_ERROR, "error", FALSE },
1297 { SCE_RB_POD, "pod", FALSE }
1299 static const HLKeyword highlighting_keywords_RUBY[] =
1301 { 0, "primary", FALSE }
1303 #define highlighting_properties_RUBY EMPTY_PROPERTIES
1305 /* Rust */
1306 #define highlighting_lexer_RUST SCLEX_RUST
1307 static const HLStyle highlighting_styles_RUST[] =
1309 { SCE_RUST_DEFAULT, "default", FALSE },
1310 { SCE_RUST_COMMENTBLOCK, "commentblock", FALSE },
1311 { SCE_RUST_COMMENTLINE, "commentline", FALSE },
1312 { SCE_RUST_COMMENTBLOCKDOC, "commentblockdoc", FALSE },
1313 { SCE_RUST_COMMENTLINEDOC, "commentlinedoc", FALSE },
1314 { SCE_RUST_NUMBER, "number", FALSE },
1315 { SCE_RUST_WORD, "word", FALSE },
1316 { SCE_RUST_WORD2, "word2", FALSE },
1317 { SCE_RUST_WORD3, "word3", FALSE },
1318 { SCE_RUST_WORD4, "word4", FALSE },
1319 { SCE_RUST_WORD5, "word5", FALSE },
1320 { SCE_RUST_WORD6, "word6", FALSE },
1321 { SCE_RUST_WORD7, "word7", FALSE },
1322 { SCE_RUST_STRING, "string", FALSE },
1323 { SCE_RUST_STRINGR, "stringraw", FALSE },
1324 { SCE_RUST_CHARACTER, "character", FALSE },
1325 { SCE_RUST_OPERATOR, "operator", FALSE },
1326 { SCE_RUST_IDENTIFIER, "identifier", FALSE },
1327 { SCE_RUST_LIFETIME, "lifetime", FALSE },
1328 { SCE_RUST_MACRO, "macro", FALSE },
1329 { SCE_RUST_LEXERROR, "lexerror", FALSE },
1330 { SCE_RUST_BYTESTRING, "bytestring", FALSE },
1331 { SCE_RUST_BYTESTRINGR, "bytestringr", FALSE },
1332 { SCE_RUST_BYTECHARACTER, "bytecharacter", FALSE }
1334 static const HLKeyword highlighting_keywords_RUST[] =
1336 { 0, "primary", FALSE },
1337 /* SCI_SETKEYWORDS = 1 - secondary + global tags file types */
1338 { 1, "secondary", TRUE },
1339 { 2, "tertiary", FALSE },
1340 /* SCI_SETKEYWORDS = 3 is for current session types - see editor_lexer_get_type_keyword_idx() */
1342 #define highlighting_properties_RUST EMPTY_PROPERTIES
1344 /* SH */
1345 #define highlighting_lexer_SH SCLEX_BASH
1346 static const HLStyle highlighting_styles_SH[] =
1348 { SCE_SH_DEFAULT, "default", FALSE },
1349 { SCE_SH_COMMENTLINE, "commentline", FALSE },
1350 { SCE_SH_NUMBER, "number", FALSE },
1351 { SCE_SH_WORD, "word", FALSE },
1352 { SCE_SH_STRING, "string", FALSE },
1353 { SCE_SH_CHARACTER, "character", FALSE },
1354 { SCE_SH_OPERATOR, "operator", FALSE },
1355 { SCE_SH_IDENTIFIER, "identifier", FALSE },
1356 { SCE_SH_BACKTICKS, "backticks", FALSE },
1357 { SCE_SH_PARAM, "param", FALSE },
1358 { SCE_SH_SCALAR, "scalar", FALSE },
1359 { SCE_SH_ERROR, "error", FALSE },
1360 { SCE_SH_HERE_DELIM, "here_delim", FALSE },
1361 { SCE_SH_HERE_Q, "here_q", FALSE }
1363 static const HLKeyword highlighting_keywords_SH[] =
1365 { 0, "primary", FALSE }
1367 #define highlighting_properties_SH EMPTY_PROPERTIES
1370 /* SQL */
1371 #define highlighting_lexer_SQL SCLEX_SQL
1372 static const HLStyle highlighting_styles_SQL[] =
1374 { SCE_SQL_DEFAULT, "default", FALSE },
1375 { SCE_SQL_COMMENT, "comment", FALSE },
1376 { SCE_SQL_COMMENTLINE, "commentline", FALSE },
1377 { SCE_SQL_COMMENTDOC, "commentdoc", FALSE },
1378 { SCE_SQL_COMMENTLINEDOC, "commentlinedoc", FALSE },
1379 { SCE_SQL_COMMENTDOCKEYWORD, "commentdockeyword", FALSE },
1380 { SCE_SQL_COMMENTDOCKEYWORDERROR, "commentdockeyworderror", FALSE },
1381 { SCE_SQL_NUMBER, "number", FALSE },
1382 { SCE_SQL_WORD, "word", FALSE },
1383 { SCE_SQL_WORD2, "word2", FALSE },
1384 { SCE_SQL_STRING, "string", FALSE },
1385 { SCE_SQL_CHARACTER, "character", FALSE },
1386 { SCE_SQL_OPERATOR, "operator", FALSE },
1387 { SCE_SQL_IDENTIFIER, "identifier", FALSE },
1388 { SCE_SQL_SQLPLUS, "sqlplus", FALSE },
1389 { SCE_SQL_SQLPLUS_PROMPT, "sqlplus_prompt", FALSE },
1390 { SCE_SQL_SQLPLUS_COMMENT, "sqlplus_comment", FALSE },
1391 { SCE_SQL_QUOTEDIDENTIFIER, "quotedidentifier", FALSE }
1392 /* these are for user-defined keywords we don't set yet */
1393 /*{ SCE_SQL_USER1, "user1", FALSE },
1394 { SCE_SQL_USER2, "user2", FALSE },
1395 { SCE_SQL_USER3, "user3", FALSE },
1396 { SCE_SQL_USER4, "user4", FALSE }*/
1398 static const HLKeyword highlighting_keywords_SQL[] =
1400 { 0, "keywords", FALSE }
1402 #define highlighting_properties_SQL EMPTY_PROPERTIES
1405 /* TCL */
1406 #define highlighting_lexer_TCL SCLEX_TCL
1407 static const HLStyle highlighting_styles_TCL[] =
1409 { SCE_TCL_DEFAULT, "default", FALSE },
1410 { SCE_TCL_COMMENT, "comment", FALSE },
1411 { SCE_TCL_COMMENTLINE, "commentline", FALSE },
1412 { SCE_TCL_NUMBER, "number", FALSE },
1413 { SCE_TCL_OPERATOR, "operator", FALSE },
1414 { SCE_TCL_IDENTIFIER, "identifier", FALSE },
1415 { SCE_TCL_WORD_IN_QUOTE, "wordinquote", FALSE },
1416 { SCE_TCL_IN_QUOTE, "inquote", FALSE },
1417 { SCE_TCL_SUBSTITUTION, "substitution", FALSE },
1418 { SCE_TCL_MODIFIER, "modifier", FALSE },
1419 { SCE_TCL_EXPAND, "expand", FALSE },
1420 { SCE_TCL_WORD, "wordtcl", FALSE },
1421 { SCE_TCL_WORD2, "wordtk", FALSE },
1422 { SCE_TCL_WORD3, "worditcl", FALSE },
1423 { SCE_TCL_WORD4, "wordtkcmds", FALSE },
1424 { SCE_TCL_WORD5, "wordexpand", FALSE },
1425 { SCE_TCL_COMMENT_BOX, "commentbox", FALSE },
1426 { SCE_TCL_BLOCK_COMMENT, "blockcomment", FALSE },
1427 { SCE_TCL_SUB_BRACE, "subbrace", FALSE }
1428 /* these are for user-defined keywords we don't set yet */
1429 /*{ SCE_TCL_WORD6, "user2", FALSE },
1430 { SCE_TCL_WORD7, "user3", FALSE },
1431 { SCE_TCL_WORD8, "user4", FALSE }*/
1433 static const HLKeyword highlighting_keywords_TCL[] =
1435 { 0, "tcl", FALSE },
1436 { 1, "tk", FALSE },
1437 { 2, "itcl", FALSE },
1438 { 3, "tkcommands", FALSE },
1439 { 4, "expand", FALSE }
1441 #define highlighting_properties_TCL EMPTY_PROPERTIES
1444 /* Txt2Tags */
1445 #define highlighting_lexer_TXT2TAGS SCLEX_TXT2TAGS
1446 static const HLStyle highlighting_styles_TXT2TAGS[] =
1448 { SCE_TXT2TAGS_DEFAULT, "default", FALSE },
1449 { SCE_TXT2TAGS_LINE_BEGIN, "default", FALSE }, /* XIFME: remappings should be avoided */
1450 { SCE_TXT2TAGS_PRECHAR, "default", FALSE },
1451 { SCE_TXT2TAGS_STRONG1, "strong", FALSE },
1452 { SCE_TXT2TAGS_STRONG2, "strong", FALSE },
1453 { SCE_TXT2TAGS_EM1, "emphasis", FALSE },
1454 { SCE_TXT2TAGS_EM2, "underlined", FALSE }, /* WTF? */
1455 { SCE_TXT2TAGS_HEADER1, "header1", FALSE },
1456 { SCE_TXT2TAGS_HEADER2, "header2", FALSE },
1457 { SCE_TXT2TAGS_HEADER3, "header3", FALSE },
1458 { SCE_TXT2TAGS_HEADER4, "header4", FALSE },
1459 { SCE_TXT2TAGS_HEADER5, "header5", FALSE },
1460 { SCE_TXT2TAGS_HEADER6, "header6", FALSE },
1461 { SCE_TXT2TAGS_ULIST_ITEM, "ulist_item", FALSE },
1462 { SCE_TXT2TAGS_OLIST_ITEM, "olist_item", FALSE },
1463 { SCE_TXT2TAGS_BLOCKQUOTE, "blockquote", FALSE },
1464 { SCE_TXT2TAGS_STRIKEOUT, "strikeout", FALSE },
1465 { SCE_TXT2TAGS_HRULE, "hrule", FALSE },
1466 { SCE_TXT2TAGS_LINK, "link", FALSE },
1467 { SCE_TXT2TAGS_CODE, "code", FALSE },
1468 { SCE_TXT2TAGS_CODE2, "code", FALSE },
1469 { SCE_TXT2TAGS_CODEBK, "codebk", FALSE },
1470 { SCE_TXT2TAGS_COMMENT, "comment", FALSE },
1471 { SCE_TXT2TAGS_OPTION, "option", FALSE },
1472 { SCE_TXT2TAGS_PREPROC, "preproc", FALSE },
1473 { SCE_TXT2TAGS_POSTPROC, "postproc", FALSE }
1475 #define highlighting_keywords_TXT2TAGS EMPTY_KEYWORDS
1476 #define highlighting_properties_TXT2TAGS EMPTY_PROPERTIES
1479 /* VHDL */
1480 #define highlighting_lexer_VHDL SCLEX_VHDL
1481 static const HLStyle highlighting_styles_VHDL[] =
1483 { SCE_VHDL_DEFAULT, "default", FALSE },
1484 { SCE_VHDL_COMMENT, "comment", FALSE },
1485 { SCE_VHDL_COMMENTLINEBANG, "comment_line_bang", FALSE },
1486 { SCE_VHDL_NUMBER, "number", FALSE },
1487 { SCE_VHDL_STRING, "string", FALSE },
1488 { SCE_VHDL_OPERATOR, "operator", FALSE },
1489 { SCE_VHDL_IDENTIFIER, "identifier", FALSE },
1490 { SCE_VHDL_STRINGEOL, "stringeol", FALSE },
1491 { SCE_VHDL_KEYWORD, "keyword", FALSE },
1492 { SCE_VHDL_STDOPERATOR, "stdoperator", FALSE },
1493 { SCE_VHDL_ATTRIBUTE, "attribute", FALSE },
1494 { SCE_VHDL_STDFUNCTION, "stdfunction", FALSE },
1495 { SCE_VHDL_STDPACKAGE, "stdpackage", FALSE },
1496 { SCE_VHDL_STDTYPE, "stdtype", FALSE },
1497 { SCE_VHDL_USERWORD, "userword", FALSE }
1499 static const HLKeyword highlighting_keywords_VHDL[] =
1501 { 0, "keywords", FALSE },
1502 { 1, "operators", FALSE },
1503 { 2, "attributes", FALSE },
1504 { 3, "std_functions", FALSE },
1505 { 4, "std_packages", FALSE },
1506 { 5, "std_types", FALSE },
1507 { 6, "userwords", FALSE },
1509 #define highlighting_properties_VHDL EMPTY_PROPERTIES
1512 /* Verilog */
1513 #define highlighting_lexer_VERILOG SCLEX_VERILOG
1514 static const HLStyle highlighting_styles_VERILOG[] =
1516 { SCE_V_DEFAULT, "default", FALSE },
1517 { SCE_V_COMMENT, "comment", FALSE },
1518 { SCE_V_COMMENTLINE, "comment_line", FALSE },
1519 { SCE_V_COMMENTLINEBANG, "comment_line_bang", FALSE },
1520 { SCE_V_NUMBER, "number", FALSE },
1521 { SCE_V_WORD, "word", FALSE },
1522 { SCE_V_STRING, "string", FALSE },
1523 { SCE_V_WORD2, "word2", FALSE },
1524 { SCE_V_WORD3, "word3", FALSE },
1525 { SCE_V_PREPROCESSOR, "preprocessor", FALSE },
1526 { SCE_V_OPERATOR, "operator", FALSE },
1527 { SCE_V_IDENTIFIER, "identifier", FALSE },
1528 { SCE_V_STRINGEOL, "stringeol", FALSE },
1529 { SCE_V_USER, "userword", FALSE }
1531 static const HLKeyword highlighting_keywords_VERILOG[] =
1533 { 0, "word", FALSE },
1534 { 1, "word2", FALSE },
1535 { 2, "word3", FALSE }
1537 #define highlighting_properties_VERILOG EMPTY_PROPERTIES
1540 /* XML */
1541 #define highlighting_lexer_XML SCLEX_XML
1542 #define highlighting_styles_XML highlighting_styles_HTML
1543 static const HLKeyword highlighting_keywords_XML[] =
1545 { 5, "sgml", FALSE }
1547 #define highlighting_properties_XML highlighting_properties_HTML
1550 /* YAML */
1551 #define highlighting_lexer_YAML SCLEX_YAML
1552 static const HLStyle highlighting_styles_YAML[] =
1554 { SCE_YAML_DEFAULT, "default", FALSE },
1555 { SCE_YAML_COMMENT, "comment", FALSE },
1556 { SCE_YAML_IDENTIFIER, "identifier", FALSE },
1557 { SCE_YAML_KEYWORD, "keyword", FALSE },
1558 { SCE_YAML_NUMBER, "number", FALSE },
1559 { SCE_YAML_REFERENCE, "reference", FALSE },
1560 { SCE_YAML_DOCUMENT, "document", FALSE },
1561 { SCE_YAML_TEXT, "text", FALSE },
1562 { SCE_YAML_ERROR, "error", FALSE },
1563 { SCE_YAML_OPERATOR, "operator", FALSE }
1565 static const HLKeyword highlighting_keywords_YAML[] =
1567 { 0, "keywords", FALSE }
1569 #define highlighting_properties_YAML EMPTY_PROPERTIES
1571 G_END_DECLS
1573 #endif /* GEANY_HIGHLIGHTING_MAPPINGS_H */