[a77785]: src / highlightingmappings.h  Maximize  Restore  History

Download this file

1427 lines (1312 with data), 52.7 kB

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

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks