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"
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
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 */
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 */
65 const gchar
*property
;
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)
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
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
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
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
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
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
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 document_highlight_tags() */
273 static const HLProperty highlighting_properties_C
[] =
275 { "fold.cpp.comment.explicit", "0" }
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
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 #define highlighting_lexer_COFFEESCRIPT SCLEX_COFFEESCRIPT
338 static const HLStyle highlighting_styles_COFFEESCRIPT
[] =
340 { SCE_COFFEESCRIPT_DEFAULT
, "default", FALSE
},
341 { SCE_COFFEESCRIPT_COMMENTLINE
, "commentline", FALSE
},
342 { SCE_COFFEESCRIPT_NUMBER
, "number", FALSE
},
343 { SCE_COFFEESCRIPT_WORD
, "word", FALSE
},
344 { SCE_COFFEESCRIPT_STRING
, "string", FALSE
},
345 { SCE_COFFEESCRIPT_CHARACTER
, "character", FALSE
},
346 { SCE_COFFEESCRIPT_OPERATOR
, "operator", FALSE
},
347 { SCE_COFFEESCRIPT_IDENTIFIER
, "identifier", FALSE
},
348 { SCE_COFFEESCRIPT_STRINGEOL
, "stringeol", FALSE
},
349 { SCE_COFFEESCRIPT_REGEX
, "regex", FALSE
},
350 { SCE_COFFEESCRIPT_WORD2
, "word2", FALSE
},
351 { SCE_COFFEESCRIPT_GLOBALCLASS
, "globalclass", FALSE
},
352 { SCE_COFFEESCRIPT_COMMENTBLOCK
, "commentblock", FALSE
},
353 { SCE_COFFEESCRIPT_VERBOSE_REGEX
, "verbose_regex", FALSE
},
354 { SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT
, "verbose_regex_comment",FALSE
}
356 static const HLKeyword highlighting_keywords_COFFEESCRIPT
[] =
358 { 0, "primary", FALSE
},
359 { 1, "secondary", FALSE
},
360 { 3, "globalclass", FALSE
}
362 #define highlighting_properties_COFFEESCRIPT EMPTY_PROPERTIES
366 #define highlighting_lexer_CSS SCLEX_CSS
367 static const HLStyle highlighting_styles_CSS
[] =
369 { SCE_CSS_DEFAULT
, "default", FALSE
},
370 { SCE_CSS_COMMENT
, "comment", FALSE
},
371 { SCE_CSS_TAG
, "tag", FALSE
},
372 { SCE_CSS_CLASS
, "class", FALSE
},
373 { SCE_CSS_PSEUDOCLASS
, "pseudoclass", FALSE
},
374 { SCE_CSS_UNKNOWN_PSEUDOCLASS
, "unknown_pseudoclass", FALSE
},
375 { SCE_CSS_UNKNOWN_IDENTIFIER
, "unknown_identifier", FALSE
},
376 { SCE_CSS_OPERATOR
, "operator", FALSE
},
377 { SCE_CSS_IDENTIFIER
, "identifier", FALSE
},
378 { SCE_CSS_DOUBLESTRING
, "doublestring", FALSE
},
379 { SCE_CSS_SINGLESTRING
, "singlestring", FALSE
},
380 { SCE_CSS_ATTRIBUTE
, "attribute", FALSE
},
381 { SCE_CSS_VALUE
, "value", FALSE
},
382 { SCE_CSS_ID
, "id", FALSE
},
383 { SCE_CSS_IDENTIFIER2
, "identifier2", FALSE
},
384 { SCE_CSS_VARIABLE
, "variable", FALSE
},
385 { SCE_CSS_IMPORTANT
, "important", FALSE
},
386 { SCE_CSS_DIRECTIVE
, "directive", FALSE
},
387 { SCE_CSS_IDENTIFIER3
, "identifier3", FALSE
},
388 { SCE_CSS_PSEUDOELEMENT
, "pseudoelement", FALSE
},
389 { SCE_CSS_EXTENDED_IDENTIFIER
, "extended_identifier", FALSE
},
390 { SCE_CSS_EXTENDED_PSEUDOCLASS
, "extended_pseudoclass", FALSE
},
391 { SCE_CSS_EXTENDED_PSEUDOELEMENT
, "extended_pseudoelement", FALSE
},
392 { SCE_CSS_MEDIA
, "media", FALSE
}
394 static const HLKeyword highlighting_keywords_CSS
[] =
396 { 0, "primary", FALSE
},
397 { 1, "pseudoclasses", FALSE
},
398 { 2, "secondary", FALSE
},
399 { 3, "css3_properties", FALSE
},
400 { 4, "pseudo_elements", FALSE
},
401 { 5, "browser_css_properties", FALSE
},
402 { 6, "browser_pseudo_classes", FALSE
},
403 { 7, "browser_pseudo_elements", FALSE
}
405 #define highlighting_properties_CSS EMPTY_PROPERTIES
409 #define highlighting_lexer_COBOL SCLEX_COBOL
410 #define highlighting_styles_COBOL highlighting_styles_C
411 static const HLKeyword highlighting_keywords_COBOL
[] =
413 { 0, "primary", FALSE
},
414 { 1, "secondary", FALSE
},
415 { 2, "extended_keywords", FALSE
}
417 #define highlighting_properties_COBOL highlighting_properties_C
421 #define highlighting_lexer_CONF SCLEX_PROPERTIES
422 static const HLStyle highlighting_styles_CONF
[] =
424 { SCE_PROPS_DEFAULT
, "default", FALSE
},
425 { SCE_PROPS_COMMENT
, "comment", FALSE
},
426 { SCE_PROPS_SECTION
, "section", FALSE
},
427 { SCE_PROPS_KEY
, "key", FALSE
},
428 { SCE_PROPS_ASSIGNMENT
, "assignment", FALSE
},
429 { SCE_PROPS_DEFVAL
, "defval", FALSE
}
431 #define highlighting_keywords_CONF EMPTY_KEYWORDS
432 #define highlighting_properties_CONF EMPTY_PROPERTIES
436 #define highlighting_lexer_D SCLEX_D
437 static const HLStyle highlighting_styles_D
[] =
439 { SCE_D_DEFAULT
, "default", FALSE
},
440 { SCE_D_COMMENT
, "comment", FALSE
},
441 { SCE_D_COMMENTLINE
, "commentline", FALSE
},
442 { SCE_D_COMMENTDOC
, "commentdoc", FALSE
},
443 { SCE_D_COMMENTNESTED
, "commentnested", FALSE
},
444 { SCE_D_NUMBER
, "number", FALSE
},
445 { SCE_D_WORD
, "word", FALSE
},
446 { SCE_D_WORD2
, "word2", FALSE
},
447 { SCE_D_WORD3
, "word3", FALSE
},
448 { SCE_D_TYPEDEF
, "typedef", FALSE
}, /* FIXME: don't remap here */
449 { SCE_D_WORD5
, "typedef", FALSE
},
450 { SCE_D_STRING
, "string", FALSE
},
451 { SCE_D_STRINGB
, "string", FALSE
},
452 { SCE_D_STRINGR
, "string", FALSE
},
453 { SCE_D_STRINGEOL
, "stringeol", FALSE
},
454 { SCE_D_CHARACTER
, "character", FALSE
},
455 { SCE_D_OPERATOR
, "operator", FALSE
},
456 { SCE_D_IDENTIFIER
, "identifier", FALSE
},
457 { SCE_D_COMMENTLINEDOC
, "commentlinedoc", FALSE
},
458 { SCE_D_COMMENTDOCKEYWORD
, "commentdockeyword", FALSE
},
459 { SCE_D_COMMENTDOCKEYWORDERROR
, "commentdockeyworderror", FALSE
}
460 /* these are for user-defined keywords we don't set yet */
461 /*{ SCE_D_WORD6, "word6", FALSE },
462 { SCE_D_WORD7, "word7", FALSE }*/
464 static const HLKeyword highlighting_keywords_D
[] =
466 { 0, "primary", FALSE
},
467 /* SCI_SETKEYWORDS = 1 - secondary + global tags file types */
468 { 1, "secondary", TRUE
},
469 { 2, "docComment", FALSE
},
470 /* SCI_SETKEYWORDS = 3 is for current session types - see document_highlight_tags() */
471 { 4, "types", FALSE
},
473 #define highlighting_properties_D EMPTY_PROPERTIES
477 #define highlighting_lexer_DIFF SCLEX_DIFF
478 static const HLStyle highlighting_styles_DIFF
[] =
480 { SCE_DIFF_DEFAULT
, "default", FALSE
},
481 { SCE_DIFF_COMMENT
, "comment", FALSE
},
482 { SCE_DIFF_COMMAND
, "command", FALSE
},
483 { SCE_DIFF_HEADER
, "header", FALSE
},
484 { SCE_DIFF_POSITION
, "position", FALSE
},
485 { SCE_DIFF_DELETED
, "deleted", FALSE
},
486 { SCE_DIFF_ADDED
, "added", FALSE
},
487 { SCE_DIFF_CHANGED
, "changed", FALSE
}
489 #define highlighting_keywords_DIFF EMPTY_KEYWORDS
490 #define highlighting_properties_DIFF EMPTY_PROPERTIES
493 #define highlighting_lexer_DOCBOOK SCLEX_XML
494 static const HLStyle highlighting_styles_DOCBOOK
[] =
496 { SCE_H_DEFAULT
, "default", FALSE
},
497 { SCE_H_TAG
, "tag", FALSE
},
498 { SCE_H_TAGUNKNOWN
, "tagunknown", FALSE
},
499 { SCE_H_ATTRIBUTE
, "attribute", FALSE
},
500 { SCE_H_ATTRIBUTEUNKNOWN
, "attributeunknown", FALSE
},
501 { SCE_H_NUMBER
, "number", FALSE
},
502 { SCE_H_DOUBLESTRING
, "doublestring", FALSE
},
503 { SCE_H_SINGLESTRING
, "singlestring", FALSE
},
504 { SCE_H_OTHER
, "other", FALSE
},
505 { SCE_H_COMMENT
, "comment", FALSE
},
506 { SCE_H_ENTITY
, "entity", FALSE
},
507 { SCE_H_TAGEND
, "tagend", FALSE
},
508 { SCE_H_XMLSTART
, "xmlstart", TRUE
},
509 { SCE_H_XMLEND
, "xmlend", FALSE
},
510 { SCE_H_CDATA
, "cdata", FALSE
},
511 { SCE_H_QUESTION
, "question", FALSE
},
512 { SCE_H_VALUE
, "value", FALSE
},
513 { SCE_H_XCCOMMENT
, "xccomment", FALSE
},
514 { SCE_H_SGML_DEFAULT
, "sgml_default", FALSE
},
515 { SCE_H_SGML_COMMENT
, "sgml_comment", FALSE
},
516 { SCE_H_SGML_SPECIAL
, "sgml_special", FALSE
},
517 { SCE_H_SGML_COMMAND
, "sgml_command", FALSE
},
518 { SCE_H_SGML_DOUBLESTRING
, "sgml_doublestring", FALSE
},
519 { SCE_H_SGML_SIMPLESTRING
, "sgml_simplestring", FALSE
},
520 { SCE_H_SGML_1ST_PARAM
, "sgml_1st_param", FALSE
},
521 { SCE_H_SGML_ENTITY
, "sgml_entity", FALSE
},
522 { SCE_H_SGML_BLOCK_DEFAULT
, "sgml_block_default", FALSE
},
523 { SCE_H_SGML_1ST_PARAM_COMMENT
, "sgml_1st_param_comment", FALSE
},
524 { SCE_H_SGML_ERROR
, "sgml_error", FALSE
}
526 static const HLKeyword highlighting_keywords_DOCBOOK
[] =
528 { 0, "elements", FALSE
},
531 #define highlighting_properties_DOCBOOK EMPTY_PROPERTIES
535 #define highlighting_lexer_ERLANG SCLEX_ERLANG
536 static const HLStyle highlighting_styles_ERLANG
[] =
538 { SCE_ERLANG_DEFAULT
, "default", FALSE
},
539 { SCE_ERLANG_COMMENT
, "comment", FALSE
},
540 { SCE_ERLANG_VARIABLE
, "variable", FALSE
},
541 { SCE_ERLANG_NUMBER
, "number", FALSE
},
542 { SCE_ERLANG_KEYWORD
, "keyword", FALSE
},
543 { SCE_ERLANG_STRING
, "string", FALSE
},
544 { SCE_ERLANG_OPERATOR
, "operator", FALSE
},
545 { SCE_ERLANG_ATOM
, "atom", FALSE
},
546 { SCE_ERLANG_FUNCTION_NAME
, "function_name", FALSE
},
547 { SCE_ERLANG_CHARACTER
, "character", FALSE
},
548 { SCE_ERLANG_MACRO
, "macro", FALSE
},
549 { SCE_ERLANG_RECORD
, "record", FALSE
},
550 { SCE_ERLANG_PREPROC
, "preproc", FALSE
},
551 { SCE_ERLANG_NODE_NAME
, "node_name", FALSE
},
552 { SCE_ERLANG_COMMENT_FUNCTION
, "comment_function", FALSE
},
553 { SCE_ERLANG_COMMENT_MODULE
, "comment_module", FALSE
},
554 { SCE_ERLANG_COMMENT_DOC
, "comment_doc", FALSE
},
555 { SCE_ERLANG_COMMENT_DOC_MACRO
, "comment_doc_macro", FALSE
},
556 { SCE_ERLANG_ATOM_QUOTED
, "atom_quoted", FALSE
},
557 { SCE_ERLANG_MACRO_QUOTED
, "macro_quoted", FALSE
},
558 { SCE_ERLANG_RECORD_QUOTED
, "record_quoted", FALSE
},
559 { SCE_ERLANG_NODE_NAME_QUOTED
, "node_name_quoted", FALSE
},
560 { SCE_ERLANG_BIFS
, "bifs", FALSE
},
561 { SCE_ERLANG_MODULES
, "modules", FALSE
},
562 { SCE_ERLANG_MODULES_ATT
, "modules_att", FALSE
},
563 { SCE_ERLANG_UNKNOWN
, "unknown", FALSE
}
565 static const HLKeyword highlighting_keywords_ERLANG
[] =
567 { 0, "keywords", FALSE
},
568 { 1, "bifs", FALSE
},
569 { 2, "preproc", FALSE
},
570 { 3, "module", FALSE
},
572 { 5, "doc_macro", FALSE
}
574 #define highlighting_properties_ERLANG EMPTY_PROPERTIES
578 #define highlighting_lexer_F77 SCLEX_F77
579 static const HLStyle highlighting_styles_F77
[] =
581 { SCE_F_DEFAULT
, "default", FALSE
},
582 { SCE_F_COMMENT
, "comment", FALSE
},
583 { SCE_F_NUMBER
, "number", FALSE
},
584 { SCE_F_STRING1
, "string", FALSE
},
585 { SCE_F_OPERATOR
, "operator", FALSE
},
586 { SCE_F_IDENTIFIER
, "identifier", FALSE
},
587 { SCE_F_STRING2
, "string2", FALSE
},
588 { SCE_F_WORD
, "word", FALSE
},
589 { SCE_F_WORD2
, "word2", FALSE
},
590 { SCE_F_WORD3
, "word3", FALSE
},
591 { SCE_F_PREPROCESSOR
, "preprocessor", FALSE
},
592 { SCE_F_OPERATOR2
, "operator2", FALSE
},
593 { SCE_F_CONTINUATION
, "continuation", FALSE
},
594 { SCE_F_STRINGEOL
, "stringeol", FALSE
},
595 { SCE_F_LABEL
, "label", FALSE
}
597 static const HLKeyword highlighting_keywords_F77
[] =
599 { 0, "primary", FALSE
},
600 { 1, "intrinsic_functions", FALSE
},
601 { 2, "user_functions", FALSE
}
603 #define highlighting_properties_F77 EMPTY_PROPERTIES
607 #define highlighting_lexer_FERITE SCLEX_CPP
608 #define highlighting_styles_FERITE highlighting_styles_C
609 static const HLKeyword highlighting_keywords_FERITE
[] =
611 { 0, "primary", FALSE
},
612 { 1, "types", FALSE
},
613 { 2, "docComment", FALSE
}
615 #define highlighting_properties_FERITE highlighting_properties_C
619 #define highlighting_lexer_FORTH SCLEX_FORTH
620 static const HLStyle highlighting_styles_FORTH
[] =
622 { SCE_FORTH_DEFAULT
, "default", FALSE
},
623 { SCE_FORTH_COMMENT
, "comment", FALSE
},
624 { SCE_FORTH_COMMENT_ML
, "commentml", FALSE
},
625 { SCE_FORTH_IDENTIFIER
, "identifier", FALSE
},
626 { SCE_FORTH_CONTROL
, "control", FALSE
},
627 { SCE_FORTH_KEYWORD
, "keyword", FALSE
},
628 { SCE_FORTH_DEFWORD
, "defword", FALSE
},
629 { SCE_FORTH_PREWORD1
, "preword1", FALSE
},
630 { SCE_FORTH_PREWORD2
, "preword2", FALSE
},
631 { SCE_FORTH_NUMBER
, "number", FALSE
},
632 { SCE_FORTH_STRING
, "string", FALSE
},
633 { SCE_FORTH_LOCALE
, "locale", FALSE
}
635 static const HLKeyword highlighting_keywords_FORTH
[] =
637 { 0, "primary", FALSE
},
638 { 1, "keyword", FALSE
},
639 { 2, "defword", FALSE
},
640 { 3, "preword1", FALSE
},
641 { 4, "preword2", FALSE
},
642 { 5, "string", FALSE
}
644 #define highlighting_properties_FORTH EMPTY_PROPERTIES
648 /* F77 and Fortran (F9x) uses different lexers but shares styles and keywords */
649 #define highlighting_lexer_FORTRAN SCLEX_FORTRAN
650 #define highlighting_styles_FORTRAN highlighting_styles_F77
651 #define highlighting_keywords_FORTRAN highlighting_keywords_F77
652 #define highlighting_properties_FORTRAN highlighting_properties_F77
656 #define highlighting_lexer_GO SCLEX_CPP
657 #define highlighting_styles_GO highlighting_styles_C
658 #define highlighting_keywords_GO highlighting_keywords_C
659 #define highlighting_properties_GO highlighting_properties_C
663 #define highlighting_lexer_HASKELL SCLEX_HASKELL
664 static const HLStyle highlighting_styles_HASKELL
[] =
666 { SCE_HA_DEFAULT
, "default", FALSE
},
667 { SCE_HA_COMMENTLINE
, "commentline", FALSE
},
668 { SCE_HA_COMMENTBLOCK
, "commentblock", FALSE
},
669 { SCE_HA_COMMENTBLOCK2
, "commentblock2", FALSE
},
670 { SCE_HA_COMMENTBLOCK3
, "commentblock3", FALSE
},
671 { SCE_HA_NUMBER
, "number", FALSE
},
672 { SCE_HA_KEYWORD
, "keyword", FALSE
},
673 { SCE_HA_IMPORT
, "import", FALSE
},
674 { SCE_HA_STRING
, "string", FALSE
},
675 { SCE_HA_CHARACTER
, "character", FALSE
},
676 { SCE_HA_CLASS
, "class", FALSE
},
677 { SCE_HA_OPERATOR
, "operator", FALSE
},
678 { SCE_HA_IDENTIFIER
, "identifier", FALSE
},
679 { SCE_HA_INSTANCE
, "instance", FALSE
},
680 { SCE_HA_CAPITAL
, "capital", FALSE
},
681 { SCE_HA_MODULE
, "module", FALSE
},
682 { SCE_HA_DATA
, "data", FALSE
},
683 { SCE_HA_PRAGMA
, "pragma", FALSE
},
684 { SCE_HA_PREPROCESSOR
, "preprocessor", FALSE
},
685 { SCE_HA_STRINGEOL
, "stringeol", FALSE
},
686 { SCE_HA_RESERVED_OPERATOR
, "reserved_operator", FALSE
},
687 { SCE_HA_LITERATE_COMMENT
, "literate_comment", FALSE
},
688 { SCE_HA_LITERATE_CODEDELIM
, "literate_codedelim", FALSE
}
690 static const HLKeyword highlighting_keywords_HASKELL
[] =
692 { 0, "keywords", FALSE
},
694 { 2, "reserved_operators", FALSE
}
696 #define highlighting_properties_HASKELL EMPTY_PROPERTIES
700 #define highlighting_lexer_HAXE SCLEX_CPP
701 #define highlighting_styles_HAXE highlighting_styles_C
702 static const HLKeyword highlighting_keywords_HAXE
[] =
704 { 0, "primary", FALSE
},
705 { 1, "secondary", FALSE
},
706 { 3, "classes", FALSE
}
708 #define highlighting_properties_HAXE highlighting_properties_C
712 #define highlighting_lexer_HTML SCLEX_HTML
713 static const HLStyle highlighting_styles_HTML
[] =
715 { SCE_H_DEFAULT
, "html_default", FALSE
},
716 { SCE_H_TAG
, "html_tag", FALSE
},
717 { SCE_H_TAGUNKNOWN
, "html_tagunknown", FALSE
},
718 { SCE_H_ATTRIBUTE
, "html_attribute", FALSE
},
719 { SCE_H_ATTRIBUTEUNKNOWN
, "html_attributeunknown", FALSE
},
720 { SCE_H_NUMBER
, "html_number", FALSE
},
721 { SCE_H_DOUBLESTRING
, "html_doublestring", FALSE
},
722 { SCE_H_SINGLESTRING
, "html_singlestring", FALSE
},
723 { SCE_H_OTHER
, "html_other", FALSE
},
724 { SCE_H_COMMENT
, "html_comment", FALSE
},
725 { SCE_H_ENTITY
, "html_entity", FALSE
},
726 { SCE_H_TAGEND
, "html_tagend", FALSE
},
727 { SCE_H_XMLSTART
, "html_xmlstart", TRUE
},
728 { SCE_H_XMLEND
, "html_xmlend", FALSE
},
729 { SCE_H_SCRIPT
, "html_script", FALSE
},
730 { SCE_H_ASP
, "html_asp", TRUE
},
731 { SCE_H_ASPAT
, "html_aspat", TRUE
},
732 { SCE_H_CDATA
, "html_cdata", FALSE
},
733 { SCE_H_QUESTION
, "html_question", FALSE
},
734 { SCE_H_VALUE
, "html_value", FALSE
},
735 { SCE_H_XCCOMMENT
, "html_xccomment", FALSE
},
737 { SCE_H_SGML_DEFAULT
, "sgml_default", FALSE
},
738 { SCE_H_SGML_COMMENT
, "sgml_comment", FALSE
},
739 { SCE_H_SGML_SPECIAL
, "sgml_special", FALSE
},
740 { SCE_H_SGML_COMMAND
, "sgml_command", FALSE
},
741 { SCE_H_SGML_DOUBLESTRING
, "sgml_doublestring", FALSE
},
742 { SCE_H_SGML_SIMPLESTRING
, "sgml_simplestring", FALSE
},
743 { SCE_H_SGML_1ST_PARAM
, "sgml_1st_param", FALSE
},
744 { SCE_H_SGML_ENTITY
, "sgml_entity", FALSE
},
745 { SCE_H_SGML_BLOCK_DEFAULT
, "sgml_block_default", FALSE
},
746 { SCE_H_SGML_1ST_PARAM_COMMENT
, "sgml_1st_param_comment", FALSE
},
747 { SCE_H_SGML_ERROR
, "sgml_error", FALSE
},
749 /* embedded JavaScript */
750 { SCE_HJ_START
, "jscript_start", FALSE
},
751 { SCE_HJ_DEFAULT
, "jscript_default", FALSE
},
752 { SCE_HJ_COMMENT
, "jscript_comment", FALSE
},
753 { SCE_HJ_COMMENTLINE
, "jscript_commentline", FALSE
},
754 { SCE_HJ_COMMENTDOC
, "jscript_commentdoc", FALSE
},
755 { SCE_HJ_NUMBER
, "jscript_number", FALSE
},
756 { SCE_HJ_WORD
, "jscript_word", FALSE
},
757 { SCE_HJ_KEYWORD
, "jscript_keyword", FALSE
},
758 { SCE_HJ_DOUBLESTRING
, "jscript_doublestring", FALSE
},
759 { SCE_HJ_SINGLESTRING
, "jscript_singlestring", FALSE
},
760 { SCE_HJ_SYMBOLS
, "jscript_symbols", FALSE
},
761 { SCE_HJ_STRINGEOL
, "jscript_stringeol", FALSE
},
762 { SCE_HJ_REGEX
, "jscript_regex", FALSE
},
764 /* for HB, VBScript?, use the same styles as for JavaScript */
765 { SCE_HB_START
, "jscript_start", FALSE
},
766 { SCE_HB_DEFAULT
, "jscript_default", FALSE
},
767 { SCE_HB_COMMENTLINE
, "jscript_commentline", FALSE
},
768 { SCE_HB_NUMBER
, "jscript_number", FALSE
},
769 { SCE_HB_WORD
, "jscript_keyword", FALSE
}, /* keywords */
770 { SCE_HB_STRING
, "jscript_doublestring", FALSE
},
771 { SCE_HB_IDENTIFIER
, "jscript_symbols", FALSE
},
772 { SCE_HB_STRINGEOL
, "jscript_stringeol", FALSE
},
774 /* for HBA, VBScript?, use the same styles as for JavaScript */
775 { SCE_HBA_START
, "jscript_start", FALSE
},
776 { SCE_HBA_DEFAULT
, "jscript_default", FALSE
},
777 { SCE_HBA_COMMENTLINE
, "jscript_commentline", FALSE
},
778 { SCE_HBA_NUMBER
, "jscript_number", FALSE
},
779 { SCE_HBA_WORD
, "jscript_keyword", FALSE
}, /* keywords */
780 { SCE_HBA_STRING
, "jscript_doublestring", FALSE
},
781 { SCE_HBA_IDENTIFIER
, "jscript_symbols", FALSE
},
782 { SCE_HBA_STRINGEOL
, "jscript_stringeol", FALSE
},
784 /* for HJA, ASP Javascript, use the same styles as for JavaScript */
785 { SCE_HJA_START
, "jscript_start", FALSE
},
786 { SCE_HJA_DEFAULT
, "jscript_default", FALSE
},
787 { SCE_HJA_COMMENT
, "jscript_comment", FALSE
},
788 { SCE_HJA_COMMENTLINE
, "jscript_commentline", FALSE
},
789 { SCE_HJA_COMMENTDOC
, "jscript_commentdoc", FALSE
},
790 { SCE_HJA_NUMBER
, "jscript_number", FALSE
},
791 { SCE_HJA_WORD
, "jscript_word", FALSE
},
792 { SCE_HJA_KEYWORD
, "jscript_keyword", FALSE
},
793 { SCE_HJA_DOUBLESTRING
, "jscript_doublestring", FALSE
},
794 { SCE_HJA_SINGLESTRING
, "jscript_singlestring", FALSE
},
795 { SCE_HJA_SYMBOLS
, "jscript_symbols", FALSE
},
796 { SCE_HJA_STRINGEOL
, "jscript_stringeol", FALSE
},
797 { SCE_HJA_REGEX
, "jscript_regex", FALSE
},
799 /* embedded Python */
800 { SCE_HP_START
, "jscript_start", FALSE
},
801 { SCE_HP_DEFAULT
, "python_default", FALSE
},
802 { SCE_HP_COMMENTLINE
, "python_commentline", FALSE
},
803 { SCE_HP_NUMBER
, "python_number", FALSE
},
804 { SCE_HP_STRING
, "python_string", FALSE
},
805 { SCE_HP_CHARACTER
, "python_character", FALSE
},
806 { SCE_HP_WORD
, "python_word", FALSE
},
807 { SCE_HP_TRIPLE
, "python_triple", FALSE
},
808 { SCE_HP_TRIPLEDOUBLE
, "python_tripledouble", FALSE
},
809 { SCE_HP_CLASSNAME
, "python_classname", FALSE
},
810 { SCE_HP_DEFNAME
, "python_defname", FALSE
},
811 { SCE_HP_OPERATOR
, "python_operator", FALSE
},
812 { SCE_HP_IDENTIFIER
, "python_identifier", FALSE
},
814 /* for embedded HPA (what is this?) we use the Python styles */
815 { SCE_HPA_START
, "jscript_start", FALSE
},
816 { SCE_HPA_DEFAULT
, "python_default", FALSE
},
817 { SCE_HPA_COMMENTLINE
, "python_commentline", FALSE
},
818 { SCE_HPA_NUMBER
, "python_number", FALSE
},
819 { SCE_HPA_STRING
, "python_string", FALSE
},
820 { SCE_HPA_CHARACTER
, "python_character", FALSE
},
821 { SCE_HPA_WORD
, "python_word", FALSE
},
822 { SCE_HPA_TRIPLE
, "python_triple", FALSE
},
823 { SCE_HPA_TRIPLEDOUBLE
, "python_tripledouble", FALSE
},
824 { SCE_HPA_CLASSNAME
, "python_classname", FALSE
},
825 { SCE_HPA_DEFNAME
, "python_defname", FALSE
},
826 { SCE_HPA_OPERATOR
, "python_operator", FALSE
},
827 { SCE_HPA_IDENTIFIER
, "python_identifier", FALSE
},
830 { SCE_HPHP_DEFAULT
, "php_default", FALSE
},
831 { SCE_HPHP_SIMPLESTRING
, "php_simplestring", FALSE
},
832 { SCE_HPHP_HSTRING
, "php_hstring", FALSE
},
833 { SCE_HPHP_NUMBER
, "php_number", FALSE
},
834 { SCE_HPHP_WORD
, "php_word", FALSE
},
835 { SCE_HPHP_VARIABLE
, "php_variable", FALSE
},
836 { SCE_HPHP_COMMENT
, "php_comment", FALSE
},
837 { SCE_HPHP_COMMENTLINE
, "php_commentline", FALSE
},
838 { SCE_HPHP_OPERATOR
, "php_operator", FALSE
},
839 { SCE_HPHP_HSTRING_VARIABLE
, "php_hstring_variable", FALSE
},
840 { SCE_HPHP_COMPLEX_VARIABLE
, "php_complex_variable", FALSE
}
842 static const HLKeyword highlighting_keywords_HTML
[] =
844 { 0, "html", FALSE
},
845 { 1, "javascript", FALSE
},
846 { 2, "vbscript", FALSE
},
847 { 3, "python", FALSE
},
851 static const HLProperty highlighting_properties_HTML
[] =
853 { "fold.html", "1" },
854 { "fold.html.preprocessor", "0" }
859 #define highlighting_lexer_JAVA SCLEX_CPP
860 #define highlighting_styles_JAVA highlighting_styles_C
861 static const HLKeyword highlighting_keywords_JAVA
[] =
863 { 0, "primary", FALSE
},
864 /* SCI_SETKEYWORDS = 1 - secondary + global tags file types, see below */
865 { 1, "secondary", TRUE
},
866 { 2, "doccomment", FALSE
},
867 /* SCI_SETKEYWORDS = 3 is for current session types - see document_highlight_tags() */
868 { 4, "typedefs", FALSE
}
870 #define highlighting_properties_JAVA highlighting_properties_C
874 #define highlighting_lexer_JS SCLEX_CPP
875 #define highlighting_styles_JS highlighting_styles_C
876 static const HLKeyword highlighting_keywords_JS
[] =
878 { 0, "primary", FALSE
},
879 { 1, "secondary", FALSE
}
881 #define highlighting_properties_JS highlighting_properties_C
885 #define highlighting_lexer_LATEX SCLEX_LATEX
886 static const HLStyle highlighting_styles_LATEX
[] =
888 { SCE_L_DEFAULT
, "default", FALSE
},
889 { SCE_L_COMMAND
, "command", FALSE
},
890 { SCE_L_TAG
, "tag", FALSE
},
891 { SCE_L_MATH
, "math", FALSE
},
892 { SCE_L_COMMENT
, "comment", FALSE
},
893 { SCE_L_TAG2
, "tag2", FALSE
},
894 { SCE_L_MATH2
, "math2", FALSE
},
895 { SCE_L_COMMENT2
, "comment2", FALSE
},
896 { SCE_L_VERBATIM
, "verbatim", FALSE
},
897 { SCE_L_SHORTCMD
, "shortcmd", FALSE
},
898 { SCE_L_SPECIAL
, "special", FALSE
},
899 { SCE_L_CMDOPT
, "cmdopt", FALSE
},
900 { SCE_L_ERROR
, "error", FALSE
}
902 static const HLKeyword highlighting_keywords_LATEX
[] =
904 { 0, "primary", FALSE
}
906 #define highlighting_properties_LATEX EMPTY_PROPERTIES
910 #define highlighting_lexer_LISP SCLEX_LISP
911 static const HLStyle highlighting_styles_LISP
[] =
913 { SCE_LISP_DEFAULT
, "default", FALSE
},
914 { SCE_LISP_COMMENT
, "comment", FALSE
},
915 { SCE_LISP_MULTI_COMMENT
, "multicomment", FALSE
},
916 { SCE_LISP_NUMBER
, "number", FALSE
},
917 { SCE_LISP_KEYWORD
, "keyword", FALSE
},
918 { SCE_LISP_SYMBOL
, "symbol", FALSE
},
919 { SCE_LISP_STRING
, "string", FALSE
},
920 { SCE_LISP_STRINGEOL
, "stringeol", FALSE
},
921 { SCE_LISP_IDENTIFIER
, "identifier", FALSE
},
922 { SCE_LISP_OPERATOR
, "operator", FALSE
},
923 { SCE_LISP_SPECIAL
, "special", FALSE
},
924 { SCE_LISP_KEYWORD_KW
, "keywordkw", FALSE
}
926 static const HLKeyword highlighting_keywords_LISP
[] =
928 { 0, "keywords", FALSE
},
929 { 1, "special_keywords", FALSE
}
931 #define highlighting_properties_LISP EMPTY_PROPERTIES
935 #define highlighting_lexer_LUA SCLEX_LUA
936 static const HLStyle highlighting_styles_LUA
[] =
938 { SCE_LUA_DEFAULT
, "default", FALSE
},
939 { SCE_LUA_COMMENT
, "comment", FALSE
},
940 { SCE_LUA_COMMENTLINE
, "commentline", FALSE
},
941 { SCE_LUA_COMMENTDOC
, "commentdoc", FALSE
},
942 { SCE_LUA_NUMBER
, "number", FALSE
},
943 { SCE_LUA_WORD
, "word", FALSE
},
944 { SCE_LUA_STRING
, "string", FALSE
},
945 { SCE_LUA_CHARACTER
, "character", FALSE
},
946 { SCE_LUA_LITERALSTRING
, "literalstring", FALSE
},
947 { SCE_LUA_PREPROCESSOR
, "preprocessor", FALSE
},
948 { SCE_LUA_OPERATOR
, "operator", FALSE
},
949 { SCE_LUA_IDENTIFIER
, "identifier", FALSE
},
950 { SCE_LUA_STRINGEOL
, "stringeol", FALSE
},
951 { SCE_LUA_WORD2
, "function_basic", FALSE
},
952 { SCE_LUA_WORD3
, "function_other", FALSE
},
953 { SCE_LUA_WORD4
, "coroutines", FALSE
},
954 { SCE_LUA_WORD5
, "word5", FALSE
},
955 { SCE_LUA_WORD6
, "word6", FALSE
},
956 { SCE_LUA_WORD7
, "word7", FALSE
},
957 { SCE_LUA_WORD8
, "word8", FALSE
},
958 { SCE_LUA_LABEL
, "label", FALSE
}
960 static const HLKeyword highlighting_keywords_LUA
[] =
962 { 0, "keywords", FALSE
},
963 { 1, "function_basic", FALSE
},
964 { 2, "function_other", FALSE
},
965 { 3, "coroutines", FALSE
},
966 { 4, "user1", FALSE
},
967 { 5, "user2", FALSE
},
968 { 6, "user3", FALSE
},
969 { 7, "user4", FALSE
}
971 #define highlighting_properties_LUA EMPTY_PROPERTIES
975 #define highlighting_lexer_MAKE SCLEX_MAKEFILE
976 static const HLStyle highlighting_styles_MAKE
[] =
978 { SCE_MAKE_DEFAULT
, "default", FALSE
},
979 { SCE_MAKE_COMMENT
, "comment", FALSE
},
980 { SCE_MAKE_PREPROCESSOR
, "preprocessor", FALSE
},
981 { SCE_MAKE_IDENTIFIER
, "identifier", FALSE
},
982 { SCE_MAKE_OPERATOR
, "operator", FALSE
},
983 { SCE_MAKE_TARGET
, "target", FALSE
},
984 { SCE_MAKE_IDEOL
, "ideol", FALSE
}
986 #define highlighting_keywords_MAKE EMPTY_KEYWORDS
987 #define highlighting_properties_MAKE EMPTY_PROPERTIES
991 #define highlighting_lexer_MARKDOWN SCLEX_MARKDOWN
992 static const HLStyle highlighting_styles_MARKDOWN
[] =
994 { SCE_MARKDOWN_DEFAULT
, "default", FALSE
},
995 { SCE_MARKDOWN_LINE_BEGIN
, "default", FALSE
}, /* FIXME: avoid in-code re-mappings */
996 { SCE_MARKDOWN_PRECHAR
, "default", FALSE
},
997 { SCE_MARKDOWN_STRONG1
, "strong", FALSE
},
998 { SCE_MARKDOWN_STRONG2
, "strong", FALSE
},
999 { SCE_MARKDOWN_EM1
, "emphasis", FALSE
},
1000 { SCE_MARKDOWN_EM2
, "emphasis", FALSE
},
1001 { SCE_MARKDOWN_HEADER1
, "header1", FALSE
},
1002 { SCE_MARKDOWN_HEADER2
, "header2", FALSE
},
1003 { SCE_MARKDOWN_HEADER3
, "header3", FALSE
},
1004 { SCE_MARKDOWN_HEADER4
, "header4", FALSE
},
1005 { SCE_MARKDOWN_HEADER5
, "header5", FALSE
},
1006 { SCE_MARKDOWN_HEADER6
, "header6", FALSE
},
1007 { SCE_MARKDOWN_ULIST_ITEM
, "ulist_item", FALSE
},
1008 { SCE_MARKDOWN_OLIST_ITEM
, "olist_item", FALSE
},
1009 { SCE_MARKDOWN_BLOCKQUOTE
, "blockquote", FALSE
},
1010 { SCE_MARKDOWN_STRIKEOUT
, "strikeout", FALSE
},
1011 { SCE_MARKDOWN_HRULE
, "hrule", FALSE
},
1012 { SCE_MARKDOWN_LINK
, "link", FALSE
},
1013 { SCE_MARKDOWN_CODE
, "code", FALSE
},
1014 { SCE_MARKDOWN_CODE2
, "code", FALSE
},
1015 { SCE_MARKDOWN_CODEBK
, "codebk", FALSE
}
1017 #define highlighting_keywords_MARKDOWN EMPTY_KEYWORDS
1018 #define highlighting_properties_MARKDOWN EMPTY_PROPERTIES
1022 #define highlighting_lexer_MATLAB SCLEX_OCTAVE /* not MATLAB to support Octave's # comments */
1023 static const HLStyle highlighting_styles_MATLAB
[] =
1025 { SCE_MATLAB_DEFAULT
, "default", FALSE
},
1026 { SCE_MATLAB_COMMENT
, "comment", FALSE
},
1027 { SCE_MATLAB_COMMAND
, "command", FALSE
},
1028 { SCE_MATLAB_NUMBER
, "number", FALSE
},
1029 { SCE_MATLAB_KEYWORD
, "keyword", FALSE
},
1030 { SCE_MATLAB_STRING
, "string", FALSE
},
1031 { SCE_MATLAB_OPERATOR
, "operator", FALSE
},
1032 { SCE_MATLAB_IDENTIFIER
, "identifier", FALSE
},
1033 { SCE_MATLAB_DOUBLEQUOTESTRING
, "doublequotedstring", FALSE
}
1035 static const HLKeyword highlighting_keywords_MATLAB
[] =
1037 { 0, "primary", FALSE
}
1039 #define highlighting_properties_MATLAB EMPTY_PROPERTIES
1043 #define highlighting_lexer_NSIS SCLEX_NSIS
1044 static const HLStyle highlighting_styles_NSIS
[] =
1046 { SCE_NSIS_DEFAULT
, "default", FALSE
},
1047 { SCE_NSIS_COMMENT
, "comment", FALSE
},
1048 { SCE_NSIS_STRINGDQ
, "stringdq", FALSE
},
1049 { SCE_NSIS_STRINGLQ
, "stringlq", FALSE
},
1050 { SCE_NSIS_STRINGRQ
, "stringrq", FALSE
},
1051 { SCE_NSIS_FUNCTION
, "function", FALSE
},
1052 { SCE_NSIS_VARIABLE
, "variable", FALSE
},
1053 { SCE_NSIS_LABEL
, "label", FALSE
},
1054 { SCE_NSIS_USERDEFINED
, "userdefined", FALSE
},
1055 { SCE_NSIS_SECTIONDEF
, "sectiondef", FALSE
},
1056 { SCE_NSIS_SUBSECTIONDEF
, "subsectiondef", FALSE
},
1057 { SCE_NSIS_IFDEFINEDEF
, "ifdefinedef", FALSE
},
1058 { SCE_NSIS_MACRODEF
, "macrodef", FALSE
},
1059 { SCE_NSIS_STRINGVAR
, "stringvar", FALSE
},
1060 { SCE_NSIS_NUMBER
, "number", FALSE
},
1061 { SCE_NSIS_SECTIONGROUP
, "sectiongroup", FALSE
},
1062 { SCE_NSIS_PAGEEX
, "pageex", FALSE
},
1063 { SCE_NSIS_FUNCTIONDEF
, "functiondef", FALSE
},
1064 { SCE_NSIS_COMMENTBOX
, "commentbox", FALSE
}
1066 static const HLKeyword highlighting_keywords_NSIS
[] =
1068 { 0, "functions", FALSE
},
1069 { 1, "variables", FALSE
},
1070 { 2, "lables", FALSE
},
1071 { 3, "userdefined", FALSE
}
1073 #define highlighting_properties_NSIS EMPTY_PROPERTIES
1077 #define highlighting_lexer_OBJECTIVEC highlighting_lexer_C
1078 #define highlighting_styles_OBJECTIVEC highlighting_styles_C
1079 static const HLKeyword highlighting_keywords_OBJECTIVEC
[] =
1081 { 0, "primary", FALSE
},
1082 /* SCI_SETKEYWORDS = 1 - secondary + global tags file types, see below */
1083 { 1, "secondary", TRUE
},
1084 { 2, "docComment", FALSE
}
1085 /* SCI_SETKEYWORDS = 3 is for current session types - see document_highlight_tags() */
1087 #define highlighting_properties_OBJECTIVEC highlighting_properties_C
1091 #define highlighting_lexer_PASCAL SCLEX_PASCAL
1092 static const HLStyle highlighting_styles_PASCAL
[] =
1094 { SCE_PAS_DEFAULT
, "default", FALSE
},
1095 { SCE_PAS_IDENTIFIER
, "identifier", FALSE
},
1096 { SCE_PAS_COMMENT
, "comment", FALSE
},
1097 { SCE_PAS_COMMENT2
, "comment2", FALSE
},
1098 { SCE_PAS_COMMENTLINE
, "commentline", FALSE
},
1099 { SCE_PAS_PREPROCESSOR
, "preprocessor", FALSE
},
1100 { SCE_PAS_PREPROCESSOR2
, "preprocessor2", FALSE
},
1101 { SCE_PAS_NUMBER
, "number", FALSE
},
1102 { SCE_PAS_HEXNUMBER
, "hexnumber", FALSE
},
1103 { SCE_PAS_WORD
, "word", FALSE
},
1104 { SCE_PAS_STRING
, "string", FALSE
},
1105 { SCE_PAS_STRINGEOL
, "stringeol", FALSE
},
1106 { SCE_PAS_CHARACTER
, "character", FALSE
},
1107 { SCE_PAS_OPERATOR
, "operator", FALSE
},
1108 { SCE_PAS_ASM
, "asm", FALSE
}
1110 static const HLKeyword highlighting_keywords_PASCAL
[] =
1112 { 0, "primary", FALSE
}
1114 #define highlighting_properties_PASCAL EMPTY_PROPERTIES
1118 #define highlighting_lexer_PERL SCLEX_PERL
1119 static const HLStyle highlighting_styles_PERL
[] =
1121 { SCE_PL_DEFAULT
, "default", FALSE
},
1122 { SCE_PL_ERROR
, "error", FALSE
},
1123 { SCE_PL_COMMENTLINE
, "commentline", FALSE
},
1124 { SCE_PL_NUMBER
, "number", FALSE
},
1125 { SCE_PL_WORD
, "word", FALSE
},
1126 { SCE_PL_STRING
, "string", FALSE
},
1127 { SCE_PL_CHARACTER
, "character", FALSE
},
1128 { SCE_PL_PREPROCESSOR
, "preprocessor", FALSE
},
1129 { SCE_PL_OPERATOR
, "operator", FALSE
},
1130 { SCE_PL_IDENTIFIER
, "identifier", FALSE
},
1131 { SCE_PL_SCALAR
, "scalar", FALSE
},
1132 { SCE_PL_POD
, "pod", FALSE
},
1133 { SCE_PL_REGEX
, "regex", FALSE
},
1134 { SCE_PL_ARRAY
, "array", FALSE
},
1135 { SCE_PL_HASH
, "hash", FALSE
},
1136 { SCE_PL_SYMBOLTABLE
, "symboltable", FALSE
},
1137 { SCE_PL_BACKTICKS
, "backticks", FALSE
},
1138 { SCE_PL_POD_VERB
, "pod_verbatim", FALSE
},
1139 { SCE_PL_REGSUBST
, "reg_subst", FALSE
},
1140 { SCE_PL_DATASECTION
, "datasection", FALSE
},
1141 { SCE_PL_HERE_DELIM
, "here_delim", FALSE
},
1142 { SCE_PL_HERE_Q
, "here_q", FALSE
},
1143 { SCE_PL_HERE_QQ
, "here_qq", FALSE
},
1144 { SCE_PL_HERE_QX
, "here_qx", FALSE
},
1145 { SCE_PL_STRING_Q
, "string_q", FALSE
},
1146 { SCE_PL_STRING_QQ
, "string_qq", FALSE
},
1147 { SCE_PL_STRING_QX
, "string_qx", FALSE
},
1148 { SCE_PL_STRING_QR
, "string_qr", FALSE
},
1149 { SCE_PL_STRING_QW
, "string_qw", FALSE
},
1150 { SCE_PL_VARIABLE_INDEXER
, "variable_indexer", FALSE
},
1151 { SCE_PL_PUNCTUATION
, "punctuation", FALSE
},
1152 { SCE_PL_LONGQUOTE
, "longquote", FALSE
},
1153 { SCE_PL_SUB_PROTOTYPE
, "sub_prototype", FALSE
},
1154 { SCE_PL_FORMAT_IDENT
, "format_ident", FALSE
},
1155 { SCE_PL_FORMAT
, "format", FALSE
},
1156 { SCE_PL_STRING_VAR
, "string_var", FALSE
},
1157 { SCE_PL_XLAT
, "xlat", FALSE
},
1158 { SCE_PL_REGEX_VAR
, "regex_var", FALSE
},
1159 { SCE_PL_REGSUBST_VAR
, "regsubst_var", FALSE
},
1160 { SCE_PL_BACKTICKS_VAR
, "backticks_var", FALSE
},
1161 { SCE_PL_HERE_QQ_VAR
, "here_qq_var", FALSE
},
1162 { SCE_PL_HERE_QX_VAR
, "here_qx_var", FALSE
},
1163 { SCE_PL_STRING_QQ_VAR
, "string_qq_var", FALSE
},
1164 { SCE_PL_STRING_QX_VAR
, "string_qx_var", FALSE
},
1165 { SCE_PL_STRING_QR_VAR
, "string_qr_var", FALSE
}
1167 static const HLKeyword highlighting_keywords_PERL
[] =
1169 { 0, "primary", FALSE
}
1171 #define highlighting_properties_PERL EMPTY_PROPERTIES
1175 #define highlighting_lexer_PHP SCLEX_HTML
1176 #define highlighting_styles_PHP highlighting_styles_HTML
1177 #define highlighting_keywords_PHP highlighting_keywords_HTML
1178 #define highlighting_properties_PHP highlighting_properties_HTML
1182 #define highlighting_lexer_PO SCLEX_PO
1183 static const HLStyle highlighting_styles_PO
[] =
1185 { SCE_PO_DEFAULT
, "default", FALSE
},
1186 { SCE_PO_COMMENT
, "comment", FALSE
},
1187 { SCE_PO_PROGRAMMER_COMMENT
, "programmer_comment", FALSE
},
1188 { SCE_PO_REFERENCE
, "reference", FALSE
},
1189 { SCE_PO_FLAGS
, "flags", FALSE
},
1190 { SCE_PO_FUZZY
, "fuzzy", FALSE
},
1191 { SCE_PO_MSGID
, "msgid", FALSE
},
1192 { SCE_PO_MSGID_TEXT
, "msgid_text", FALSE
},
1193 { SCE_PO_MSGID_TEXT_EOL
, "msgid_text_eol", FALSE
},
1194 { SCE_PO_MSGSTR
, "msgstr", FALSE
},
1195 { SCE_PO_MSGSTR_TEXT
, "msgstr_text", FALSE
},
1196 { SCE_PO_MSGSTR_TEXT_EOL
, "msgstr_text_eol", FALSE
},
1197 { SCE_PO_MSGCTXT
, "msgctxt", FALSE
},
1198 { SCE_PO_MSGCTXT_TEXT
, "msgctxt_text", FALSE
},
1199 { SCE_PO_MSGCTXT_TEXT_EOL
, "msgctxt_text_eol", FALSE
},
1200 { SCE_PO_ERROR
, "error", FALSE
}
1202 #define highlighting_keywords_PO EMPTY_KEYWORDS
1203 #define highlighting_properties_PO EMPTY_PROPERTIES
1207 #define highlighting_lexer_POWERSHELL SCLEX_POWERSHELL
1208 static const HLStyle highlighting_styles_POWERSHELL
[] =
1210 { SCE_POWERSHELL_DEFAULT
, "default", FALSE
},
1211 { SCE_POWERSHELL_COMMENT
, "comment", FALSE
},
1212 { SCE_POWERSHELL_STRING
, "string", FALSE
},
1213 { SCE_POWERSHELL_CHARACTER
, "character", FALSE
},
1214 { SCE_POWERSHELL_NUMBER
, "number", FALSE
},
1215 { SCE_POWERSHELL_VARIABLE
, "variable", FALSE
},
1216 { SCE_POWERSHELL_OPERATOR
, "operator", FALSE
},
1217 { SCE_POWERSHELL_IDENTIFIER
, "identifier", FALSE
},
1218 { SCE_POWERSHELL_KEYWORD
, "keyword", FALSE
},
1219 { SCE_POWERSHELL_CMDLET
, "cmdlet", FALSE
},
1220 { SCE_POWERSHELL_ALIAS
, "alias", FALSE
},
1221 { SCE_POWERSHELL_FUNCTION
, "function", FALSE
},
1222 { SCE_POWERSHELL_USER1
, "user1", FALSE
},
1223 { SCE_POWERSHELL_COMMENTSTREAM
, "commentstream", FALSE
},
1224 { SCE_POWERSHELL_HERE_STRING
, "here_string", FALSE
},
1225 { SCE_POWERSHELL_HERE_CHARACTER
, "here_character", FALSE
},
1226 { SCE_POWERSHELL_COMMENTDOCKEYWORD
, "commentdockeyword", FALSE
},
1228 static const HLKeyword highlighting_keywords_POWERSHELL
[] =
1230 { 0, "keywords", FALSE
},
1231 { 1, "cmdlets", FALSE
},
1232 { 2, "aliases", FALSE
},
1233 { 3, "functions", FALSE
},
1234 { 4, "user1", FALSE
},
1235 { 5, "docComment", FALSE
},
1237 #define highlighting_properties_POWERSHELL EMPTY_PROPERTIES
1241 #define highlighting_lexer_PYTHON SCLEX_PYTHON
1242 static const HLStyle highlighting_styles_PYTHON
[] =
1244 { SCE_P_DEFAULT
, "default", FALSE
},
1245 { SCE_P_COMMENTLINE
, "commentline", FALSE
},
1246 { SCE_P_NUMBER
, "number", FALSE
},
1247 { SCE_P_STRING
, "string", FALSE
},
1248 { SCE_P_CHARACTER
, "character", FALSE
},
1249 { SCE_P_WORD
, "word", FALSE
},
1250 { SCE_P_TRIPLE
, "triple", FALSE
},
1251 { SCE_P_TRIPLEDOUBLE
, "tripledouble", FALSE
},
1252 { SCE_P_CLASSNAME
, "classname", FALSE
},
1253 { SCE_P_DEFNAME
, "defname", FALSE
},
1254 { SCE_P_OPERATOR
, "operator", FALSE
},
1255 { SCE_P_IDENTIFIER
, "identifier", FALSE
},
1256 { SCE_P_COMMENTBLOCK
, "commentblock", FALSE
},
1257 { SCE_P_STRINGEOL
, "stringeol", FALSE
},
1258 { SCE_P_WORD2
, "word2", FALSE
},
1259 { SCE_P_DECORATOR
, "decorator", FALSE
}
1261 static const HLKeyword highlighting_keywords_PYTHON
[] =
1263 { 0, "primary", FALSE
},
1264 { 1, "identifiers", FALSE
}
1266 #define highlighting_properties_PYTHON EMPTY_PROPERTIES
1270 #define highlighting_lexer_R SCLEX_R
1271 static const HLStyle highlighting_styles_R
[] =
1273 { SCE_R_DEFAULT
, "default", FALSE
},
1274 { SCE_R_COMMENT
, "comment", FALSE
},
1275 { SCE_R_KWORD
, "kword", FALSE
},
1276 { SCE_R_OPERATOR
, "operator", FALSE
},
1277 { SCE_R_BASEKWORD
, "basekword", FALSE
},
1278 { SCE_R_OTHERKWORD
, "otherkword", FALSE
},
1279 { SCE_R_NUMBER
, "number", FALSE
},
1280 { SCE_R_STRING
, "string", FALSE
},
1281 { SCE_R_STRING2
, "string2", FALSE
},
1282 { SCE_R_IDENTIFIER
, "identifier", FALSE
},
1283 { SCE_R_INFIX
, "infix", FALSE
},
1284 { SCE_R_INFIXEOL
, "infixeol", FALSE
}
1286 static const HLKeyword highlighting_keywords_R
[] =
1288 { 0, "primary", FALSE
},
1289 { 1, "package", FALSE
},
1290 { 2, "package_other", FALSE
}
1292 #define highlighting_properties_R EMPTY_PROPERTIES
1296 #define highlighting_lexer_RUBY SCLEX_RUBY
1297 static const HLStyle highlighting_styles_RUBY
[] =
1299 { SCE_RB_DEFAULT
, "default", FALSE
},
1300 { SCE_RB_COMMENTLINE
, "commentline", FALSE
},
1301 { SCE_RB_NUMBER
, "number", FALSE
},
1302 { SCE_RB_STRING
, "string", FALSE
},
1303 { SCE_RB_CHARACTER
, "character", FALSE
},
1304 { SCE_RB_WORD
, "word", FALSE
},
1305 { SCE_RB_GLOBAL
, "global", FALSE
},
1306 { SCE_RB_SYMBOL
, "symbol", FALSE
},
1307 { SCE_RB_CLASSNAME
, "classname", FALSE
},
1308 { SCE_RB_DEFNAME
, "defname", FALSE
},
1309 { SCE_RB_OPERATOR
, "operator", FALSE
},
1310 { SCE_RB_IDENTIFIER
, "identifier", FALSE
},
1311 { SCE_RB_MODULE_NAME
, "modulename", FALSE
},
1312 { SCE_RB_BACKTICKS
, "backticks", FALSE
},
1313 { SCE_RB_INSTANCE_VAR
, "instancevar", FALSE
},
1314 { SCE_RB_CLASS_VAR
, "classvar", FALSE
},
1315 { SCE_RB_DATASECTION
, "datasection", FALSE
},
1316 { SCE_RB_HERE_DELIM
, "heredelim", FALSE
},
1317 { SCE_RB_WORD_DEMOTED
, "worddemoted", FALSE
},
1318 { SCE_RB_STDIN
, "stdin", FALSE
},
1319 { SCE_RB_STDOUT
, "stdout", FALSE
},
1320 { SCE_RB_STDERR
, "stderr", FALSE
},
1321 { SCE_RB_REGEX
, "regex", FALSE
},
1322 { SCE_RB_HERE_Q
, "here_q", FALSE
},
1323 { SCE_RB_HERE_QQ
, "here_qq", FALSE
},
1324 { SCE_RB_HERE_QX
, "here_qx", FALSE
},
1325 { SCE_RB_STRING_Q
, "string_q", FALSE
},
1326 { SCE_RB_STRING_QQ
, "string_qq", FALSE
},
1327 { SCE_RB_STRING_QX
, "string_qx", FALSE
},
1328 { SCE_RB_STRING_QR
, "string_qr", FALSE
},
1329 { SCE_RB_STRING_QW
, "string_qw", FALSE
},
1330 { SCE_RB_UPPER_BOUND
, "upper_bound", FALSE
},
1331 { SCE_RB_ERROR
, "error", FALSE
},
1332 { SCE_RB_POD
, "pod", FALSE
}
1334 static const HLKeyword highlighting_keywords_RUBY
[] =
1336 { 0, "primary", FALSE
}
1338 #define highlighting_properties_RUBY EMPTY_PROPERTIES
1341 #define highlighting_lexer_RUST SCLEX_RUST
1342 static const HLStyle highlighting_styles_RUST
[] =
1344 { SCE_RUST_DEFAULT
, "default", FALSE
},
1345 { SCE_RUST_COMMENTBLOCK
, "commentblock", FALSE
},
1346 { SCE_RUST_COMMENTLINE
, "commentline", FALSE
},
1347 { SCE_RUST_COMMENTBLOCKDOC
, "commentblockdoc", FALSE
},
1348 { SCE_RUST_COMMENTLINEDOC
, "commentlinedoc", FALSE
},
1349 { SCE_RUST_NUMBER
, "number", FALSE
},
1350 { SCE_RUST_WORD
, "word", FALSE
},
1351 { SCE_RUST_WORD2
, "word2", FALSE
},
1352 { SCE_RUST_WORD3
, "word3", FALSE
},
1353 { SCE_RUST_WORD4
, "word4", FALSE
},
1354 { SCE_RUST_WORD5
, "word5", FALSE
},
1355 { SCE_RUST_WORD6
, "word6", FALSE
},
1356 { SCE_RUST_WORD7
, "word7", FALSE
},
1357 { SCE_RUST_STRING
, "string", FALSE
},
1358 { SCE_RUST_STRINGR
, "stringraw", FALSE
},
1359 { SCE_RUST_CHARACTER
, "character", FALSE
},
1360 { SCE_RUST_OPERATOR
, "operator", FALSE
},
1361 { SCE_RUST_IDENTIFIER
, "identifier", FALSE
},
1362 { SCE_RUST_LIFETIME
, "lifetime", FALSE
},
1363 { SCE_RUST_MACRO
, "macro", FALSE
},
1364 { SCE_RUST_LEXERROR
, "lexerror", FALSE
},
1365 { SCE_RUST_BYTESTRING
, "bytestring", FALSE
},
1366 { SCE_RUST_BYTESTRINGR
, "bytestringr", FALSE
},
1367 { SCE_RUST_BYTECHARACTER
, "bytecharacter", FALSE
}
1369 static const HLKeyword highlighting_keywords_RUST
[] =
1371 { 0, "primary", FALSE
},
1372 /* SCI_SETKEYWORDS = 1 - secondary + global tags file types */
1373 { 1, "secondary", TRUE
},
1374 { 2, "tertiary", FALSE
},
1375 /* SCI_SETKEYWORDS = 3 is for current session types - see document_highlight_tags() */
1377 #define highlighting_properties_RUST EMPTY_PROPERTIES
1380 #define highlighting_lexer_SH SCLEX_BASH
1381 static const HLStyle highlighting_styles_SH
[] =
1383 { SCE_SH_DEFAULT
, "default", FALSE
},
1384 { SCE_SH_COMMENTLINE
, "commentline", FALSE
},
1385 { SCE_SH_NUMBER
, "number", FALSE
},
1386 { SCE_SH_WORD
, "word", FALSE
},
1387 { SCE_SH_STRING
, "string", FALSE
},
1388 { SCE_SH_CHARACTER
, "character", FALSE
},
1389 { SCE_SH_OPERATOR
, "operator", FALSE
},
1390 { SCE_SH_IDENTIFIER
, "identifier", FALSE
},
1391 { SCE_SH_BACKTICKS
, "backticks", FALSE
},
1392 { SCE_SH_PARAM
, "param", FALSE
},
1393 { SCE_SH_SCALAR
, "scalar", FALSE
},
1394 { SCE_SH_ERROR
, "error", FALSE
},
1395 { SCE_SH_HERE_DELIM
, "here_delim", FALSE
},
1396 { SCE_SH_HERE_Q
, "here_q", FALSE
}
1398 static const HLKeyword highlighting_keywords_SH
[] =
1400 { 0, "primary", FALSE
}
1402 #define highlighting_properties_SH EMPTY_PROPERTIES
1406 #define highlighting_lexer_SQL SCLEX_SQL
1407 static const HLStyle highlighting_styles_SQL
[] =
1409 { SCE_SQL_DEFAULT
, "default", FALSE
},
1410 { SCE_SQL_COMMENT
, "comment", FALSE
},
1411 { SCE_SQL_COMMENTLINE
, "commentline", FALSE
},
1412 { SCE_SQL_COMMENTDOC
, "commentdoc", FALSE
},
1413 { SCE_SQL_COMMENTLINEDOC
, "commentlinedoc", FALSE
},
1414 { SCE_SQL_COMMENTDOCKEYWORD
, "commentdockeyword", FALSE
},
1415 { SCE_SQL_COMMENTDOCKEYWORDERROR
, "commentdockeyworderror", FALSE
},
1416 { SCE_SQL_NUMBER
, "number", FALSE
},
1417 { SCE_SQL_WORD
, "word", FALSE
},
1418 { SCE_SQL_WORD2
, "word2", FALSE
},
1419 { SCE_SQL_STRING
, "string", FALSE
},
1420 { SCE_SQL_CHARACTER
, "character", FALSE
},
1421 { SCE_SQL_OPERATOR
, "operator", FALSE
},
1422 { SCE_SQL_IDENTIFIER
, "identifier", FALSE
},
1423 { SCE_SQL_SQLPLUS
, "sqlplus", FALSE
},
1424 { SCE_SQL_SQLPLUS_PROMPT
, "sqlplus_prompt", FALSE
},
1425 { SCE_SQL_SQLPLUS_COMMENT
, "sqlplus_comment", FALSE
},
1426 { SCE_SQL_QUOTEDIDENTIFIER
, "quotedidentifier", FALSE
},
1427 { SCE_SQL_QOPERATOR
, "qoperator", FALSE
}
1428 /* these are for user-defined keywords we don't set yet */
1429 /*{ SCE_SQL_USER1, "user1", FALSE },
1430 { SCE_SQL_USER2, "user2", FALSE },
1431 { SCE_SQL_USER3, "user3", FALSE },
1432 { SCE_SQL_USER4, "user4", FALSE }*/
1434 static const HLKeyword highlighting_keywords_SQL
[] =
1436 { 0, "keywords", FALSE
}
1438 #define highlighting_properties_SQL EMPTY_PROPERTIES
1442 #define highlighting_lexer_TCL SCLEX_TCL
1443 static const HLStyle highlighting_styles_TCL
[] =
1445 { SCE_TCL_DEFAULT
, "default", FALSE
},
1446 { SCE_TCL_COMMENT
, "comment", FALSE
},
1447 { SCE_TCL_COMMENTLINE
, "commentline", FALSE
},
1448 { SCE_TCL_NUMBER
, "number", FALSE
},
1449 { SCE_TCL_OPERATOR
, "operator", FALSE
},
1450 { SCE_TCL_IDENTIFIER
, "identifier", FALSE
},
1451 { SCE_TCL_WORD_IN_QUOTE
, "wordinquote", FALSE
},
1452 { SCE_TCL_IN_QUOTE
, "inquote", FALSE
},
1453 { SCE_TCL_SUBSTITUTION
, "substitution", FALSE
},
1454 { SCE_TCL_MODIFIER
, "modifier", FALSE
},
1455 { SCE_TCL_EXPAND
, "expand", FALSE
},
1456 { SCE_TCL_WORD
, "wordtcl", FALSE
},
1457 { SCE_TCL_WORD2
, "wordtk", FALSE
},
1458 { SCE_TCL_WORD3
, "worditcl", FALSE
},
1459 { SCE_TCL_WORD4
, "wordtkcmds", FALSE
},
1460 { SCE_TCL_WORD5
, "wordexpand", FALSE
},
1461 { SCE_TCL_COMMENT_BOX
, "commentbox", FALSE
},
1462 { SCE_TCL_BLOCK_COMMENT
, "blockcomment", FALSE
},
1463 { SCE_TCL_SUB_BRACE
, "subbrace", FALSE
}
1464 /* these are for user-defined keywords we don't set yet */
1465 /*{ SCE_TCL_WORD6, "user2", FALSE },
1466 { SCE_TCL_WORD7, "user3", FALSE },
1467 { SCE_TCL_WORD8, "user4", FALSE }*/
1469 static const HLKeyword highlighting_keywords_TCL
[] =
1471 { 0, "tcl", FALSE
},
1473 { 2, "itcl", FALSE
},
1474 { 3, "tkcommands", FALSE
},
1475 { 4, "expand", FALSE
}
1477 #define highlighting_properties_TCL EMPTY_PROPERTIES
1481 #define highlighting_lexer_TXT2TAGS SCLEX_TXT2TAGS
1482 static const HLStyle highlighting_styles_TXT2TAGS
[] =
1484 { SCE_TXT2TAGS_DEFAULT
, "default", FALSE
},
1485 { SCE_TXT2TAGS_LINE_BEGIN
, "default", FALSE
}, /* XIFME: remappings should be avoided */
1486 { SCE_TXT2TAGS_PRECHAR
, "default", FALSE
},
1487 { SCE_TXT2TAGS_STRONG1
, "strong", FALSE
},
1488 { SCE_TXT2TAGS_STRONG2
, "strong", FALSE
},
1489 { SCE_TXT2TAGS_EM1
, "emphasis", FALSE
},
1490 { SCE_TXT2TAGS_EM2
, "underlined", FALSE
}, /* WTF? */
1491 { SCE_TXT2TAGS_HEADER1
, "header1", FALSE
},
1492 { SCE_TXT2TAGS_HEADER2
, "header2", FALSE
},
1493 { SCE_TXT2TAGS_HEADER3
, "header3", FALSE
},
1494 { SCE_TXT2TAGS_HEADER4
, "header4", FALSE
},
1495 { SCE_TXT2TAGS_HEADER5
, "header5", FALSE
},
1496 { SCE_TXT2TAGS_HEADER6
, "header6", FALSE
},
1497 { SCE_TXT2TAGS_ULIST_ITEM
, "ulist_item", FALSE
},
1498 { SCE_TXT2TAGS_OLIST_ITEM
, "olist_item", FALSE
},
1499 { SCE_TXT2TAGS_BLOCKQUOTE
, "blockquote", FALSE
},
1500 { SCE_TXT2TAGS_STRIKEOUT
, "strikeout", FALSE
},
1501 { SCE_TXT2TAGS_HRULE
, "hrule", FALSE
},
1502 { SCE_TXT2TAGS_LINK
, "link", FALSE
},
1503 { SCE_TXT2TAGS_CODE
, "code", FALSE
},
1504 { SCE_TXT2TAGS_CODE2
, "code", FALSE
},
1505 { SCE_TXT2TAGS_CODEBK
, "codebk", FALSE
},
1506 { SCE_TXT2TAGS_COMMENT
, "comment", FALSE
},
1507 { SCE_TXT2TAGS_OPTION
, "option", FALSE
},
1508 { SCE_TXT2TAGS_PREPROC
, "preproc", FALSE
},
1509 { SCE_TXT2TAGS_POSTPROC
, "postproc", FALSE
}
1511 #define highlighting_keywords_TXT2TAGS EMPTY_KEYWORDS
1512 #define highlighting_properties_TXT2TAGS EMPTY_PROPERTIES
1516 #define highlighting_lexer_VHDL SCLEX_VHDL
1517 static const HLStyle highlighting_styles_VHDL
[] =
1519 { SCE_VHDL_DEFAULT
, "default", FALSE
},
1520 { SCE_VHDL_COMMENT
, "comment", FALSE
},
1521 { SCE_VHDL_COMMENTLINEBANG
, "comment_line_bang", FALSE
},
1522 { SCE_VHDL_BLOCK_COMMENT
, "block_comment", FALSE
},
1523 { SCE_VHDL_NUMBER
, "number", FALSE
},
1524 { SCE_VHDL_STRING
, "string", FALSE
},
1525 { SCE_VHDL_OPERATOR
, "operator", FALSE
},
1526 { SCE_VHDL_IDENTIFIER
, "identifier", FALSE
},
1527 { SCE_VHDL_STRINGEOL
, "stringeol", FALSE
},
1528 { SCE_VHDL_KEYWORD
, "keyword", FALSE
},
1529 { SCE_VHDL_STDOPERATOR
, "stdoperator", FALSE
},
1530 { SCE_VHDL_ATTRIBUTE
, "attribute", FALSE
},
1531 { SCE_VHDL_STDFUNCTION
, "stdfunction", FALSE
},
1532 { SCE_VHDL_STDPACKAGE
, "stdpackage", FALSE
},
1533 { SCE_VHDL_STDTYPE
, "stdtype", FALSE
},
1534 { SCE_VHDL_USERWORD
, "userword", FALSE
}
1536 static const HLKeyword highlighting_keywords_VHDL
[] =
1538 { 0, "keywords", FALSE
},
1539 { 1, "operators", FALSE
},
1540 { 2, "attributes", FALSE
},
1541 { 3, "std_functions", FALSE
},
1542 { 4, "std_packages", FALSE
},
1543 { 5, "std_types", FALSE
},
1544 { 6, "userwords", FALSE
},
1546 #define highlighting_properties_VHDL EMPTY_PROPERTIES
1550 #define highlighting_lexer_VERILOG SCLEX_VERILOG
1551 static const HLStyle highlighting_styles_VERILOG
[] =
1553 { SCE_V_DEFAULT
, "default", FALSE
},
1554 { SCE_V_COMMENT
, "comment", FALSE
},
1555 { SCE_V_COMMENTLINE
, "comment_line", FALSE
},
1556 { SCE_V_COMMENTLINEBANG
, "comment_line_bang", FALSE
},
1557 { SCE_V_NUMBER
, "number", FALSE
},
1558 { SCE_V_WORD
, "word", FALSE
},
1559 { SCE_V_STRING
, "string", FALSE
},
1560 { SCE_V_WORD2
, "word2", FALSE
},
1561 { SCE_V_WORD3
, "word3", FALSE
},
1562 { SCE_V_PREPROCESSOR
, "preprocessor", FALSE
},
1563 { SCE_V_OPERATOR
, "operator", FALSE
},
1564 { SCE_V_IDENTIFIER
, "identifier", FALSE
},
1565 { SCE_V_STRINGEOL
, "stringeol", FALSE
},
1566 { SCE_V_USER
, "userword", FALSE
},
1567 { SCE_V_COMMENT_WORD
, "comment_word", FALSE
},
1568 { SCE_V_INPUT
, "input", FALSE
},
1569 { SCE_V_OUTPUT
, "output", FALSE
},
1570 { SCE_V_INOUT
, "inout", FALSE
},
1571 { SCE_V_PORT_CONNECT
, "port_connect", FALSE
}
1573 static const HLKeyword highlighting_keywords_VERILOG
[] =
1575 { 0, "word", FALSE
},
1576 { 1, "word2", FALSE
},
1577 { 2, "word3", FALSE
},
1578 { 4, "docComment", FALSE
}
1580 #define highlighting_properties_VERILOG EMPTY_PROPERTIES
1584 #define highlighting_lexer_XML SCLEX_XML
1585 #define highlighting_styles_XML highlighting_styles_HTML
1586 static const HLKeyword highlighting_keywords_XML
[] =
1588 { 5, "sgml", FALSE
}
1590 #define highlighting_properties_XML highlighting_properties_HTML
1594 #define highlighting_lexer_YAML SCLEX_YAML
1595 static const HLStyle highlighting_styles_YAML
[] =
1597 { SCE_YAML_DEFAULT
, "default", FALSE
},
1598 { SCE_YAML_COMMENT
, "comment", FALSE
},
1599 { SCE_YAML_IDENTIFIER
, "identifier", FALSE
},
1600 { SCE_YAML_KEYWORD
, "keyword", FALSE
},
1601 { SCE_YAML_NUMBER
, "number", FALSE
},
1602 { SCE_YAML_REFERENCE
, "reference", FALSE
},
1603 { SCE_YAML_DOCUMENT
, "document", FALSE
},
1604 { SCE_YAML_TEXT
, "text", FALSE
},
1605 { SCE_YAML_ERROR
, "error", FALSE
},
1606 { SCE_YAML_OPERATOR
, "operator", FALSE
}
1608 static const HLKeyword highlighting_keywords_YAML
[] =
1610 { 0, "keywords", FALSE
}
1612 #define highlighting_properties_YAML EMPTY_PROPERTIES
1616 #define highlighting_lexer_ZEPHIR SCLEX_PHPSCRIPT
1617 #define highlighting_styles_ZEPHIR highlighting_styles_PHP
1618 #define highlighting_keywords_ZEPHIR highlighting_keywords_PHP
1619 #define highlighting_properties_ZEPHIR highlighting_properties_PHP
1623 #endif /* GEANY_HIGHLIGHTING_MAPPINGS_H */