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 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language[
<!ENTITY dec "[0-9](_?[0-9]++)*+">
<!ENTITY percent_lit "[QqxwWiIsr]?[^\s[:alnum:]]">
<!ENTITY ident "[_[:alpha:]]\w*+">
<!ENTITY global_constant "(?!^__END__$)(\b_+\d[_\d]*\b|\b(_[_\d]*)?[[:upper:]][_\d[:upper:]]*\b)">
<!ENTITY constant "\b[[:upper:]][_\d[:upper:]]*[[:lower:]]\w*">
<!ENTITY no_param "abort|alias|and|at_exit|attr_accessor|attr_reader|attr_writer|begin|binding|break|callcc|caller|case|catch|class|def|do|else|elsif|end|ensure|eval|exec|extend|fail|false|__FILE__|for|fork|format|getc|gets|global_variables|if|in|include|lambda|__LINE__|load|local_variables|loop|method_missing|module|next|nil|not|open|or|p|prepend|print|printf|private|private_class_method|proc|protected|public|public_class_method|putc|puts|raise|rand|readline|readlines|redo|refine|require|require_relative|rescue|retry|return|scan|select|self|set_trace_func|sleep|split|sprintf|srand|super|syscall|system|test|then|throw|trace_var|trap|true|undef|unless|until|untrace_var|using|warn|when|while|yield|autoload|chomp|chop|exit|gsub|sub">
<!-- ignore keyword, constant, class name and symbol (e.g. sym:).
Constants can be preceded by ? or !, but this doesn't work with <keyword>
-->
<!ENTITY is_constant "((_[_\d]*)?[[:upper:]]\w*+|_+\d[_\d]*+\b)([^?!]|$)">
<!ENTITY ident_not_kw "\b((?!(abort|alias|and|at_exit|attr_accessor|attr_reader|attr_writer|begin|binding|break|callcc|caller|case|catch|class|def|do|else|elsif|end|ensure|eval|exec|extend|fail|false|for|fork|format|getc|gets|global_variables|if|in|include|lambda|load|local_variables|loop|method_missing|module|next|nil|not|open|or|p|prepend|print|printf|private|private_class_method|proc|protected|public|public_class_method|putc|puts|raise|rand|readline|readlines|redo|refine|require|require_relative|rescue|retry|return|scan|select|self|set_trace_func|sleep|split|sprintf|srand|super|syscall|system|test|then|throw|trace_var|trap|true|undef|unless|until|untrace_var|using|warn|when|while|yield)([^?!\w]|$)|\bautoload([^!\w]|$)|(block_given\?|defined\?|iterator\?)|(chomp|chop|exit|gsub|sub)([^?\w]|$)|&is_constant;)|(?<=[!?])(?=[[:lower:]]))&ident;(?!:)[?!]?">
<!ENTITY msg "\b(?!&is_constant;)&ident;[?!]?">
<!ENTITY special_escape "[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u\{[0-9a-fA-F]{0,6}\}|u[0-9a-fA-F]{4}|(c(\\M-)?|C-|M-(\\c|\\C-)?)(\\([^0-7xucCM]|[0-7]{1,3}|x[0-9a-fA-F]{1,2}|$)|[ -BD-LN-\[\]-bd-tv-~])">
<!ENTITY escape "\\([^0-7xucCM]|&special_escape;|$)">
<!ENTITY partial_escape "[ux][0-9a-fA-F]*|u(\{[0-9a-fA-F]{0,6})?|(c(\\M-)?|C-|M-(\\c|\\C-)?)(\\[xucCM]?)?|c(\\M?)?|C|M(-(\\c?|\\(C-?)?)?)?">
<!-- https://docs.ruby-lang.org/en/master/globals_rdoc.html -->
<!-- $= $, $; are deprecated -->
<!ENTITY global_var "\$([!@~&`'+/\\<>._*$?:"=,;]|[0-9]+|-\w|[[:alpha:]]\w*)">
<!ENTITY named_global_var "\$((?!(stdin|stdout|stderr|_|LOAD_PATH|LOADED_FEATURES|FILENAME|DEBUG|VERBOSE)\b)[[:alpha:]]\w*|[0-9]+|-(?![ailpFIvWwdx])\w)">
<!-- without ? : % / < = -->
<!ENTITY safe_op "(?:[-+*~^|&]+|===?|<(=>?|(?!<))|[!>]=?|\.\.\.?)">
<!ENTITY op1 "&safe_op;++|([?:/%]|<<)&safe_op;*+">
<!-- /= %= <<= -->
<!-- / spaces -->
<!-- % which is not gld -->
<!-- << which is not heredoc -->
<!-- / or % not preceded with [ -->
<!-- nospace / -->
<!-- nospace % -->
<!-- nospace << -->
<!ENTITY op2 "&safe_op;++|[?:](?=\s|$)|([/%]|<<)(?=[\s=]|$)|%(?!&percent_lit;)|<<(?=\s|$|[^-~\w'"`]|[-~][^\w'"`])|(?<![\[\s])([/%]|<<)&safe_op;*+">
<!ENTITY sym_op "\[\]=?|[-+~]@?|![=~@]?|[/%|^&]|<(=>?)?|>=?|=~|===?|\*\*?">
<!ENTITY symbol "&ident;[=?!]?:(?!:)|\[\]=?:">
]>
<!--
Ruby syntax highlighting definition for Kate.
Copyright (C) 2004 by Sebastian Vuorinen (sebastian dot vuorinen at helsinki dot fi)
Copyright (C) 2004 by Stefan Lang (langstefan@gmx.at)
Copyright (C) 2008 by Robin Pedersen (robinpeder@gmail.com)
Copyright (C) 2011 by Miquel Sabaté (mikisabate@gmail.com)
Copyright (C) 2024 by Jonathan Poelen (jonathan.poelen@gmail.com)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
-->
<!--
https://docs.ruby-lang.org/en/master/syntax_rdoc.html
Ruby syntax has various ambiguous and context-dependent elements
- regex (/patt/), percent literal (%_abc_) and heredoc (<<x) begin with operators.
puts %q+1+
~ percent literal
puts a %q+1+
~ operator
Note that regexes and oercent literal are indecisive because they depend on whether
the element on the left is a function or a variable. Therefore we assume a regex.
foo /a # (without space after /) operator or regex ?
- 'do' creates a block (begin/endRegion), but is optional with 'for', 'until' and 'while'.
for x in a
puts x
end
for x in a do
puts x
end
- 'if', 'unless', 'until' and 'while' when preceded by a value are modifiers
without closure (not a block region).
a += 1 while a < 10
- '?' which is a function suffix, a literal char or a ternary operator
foo??a?1: 2
~~~~ func
~~ char
~ ~ ternary operator
For consistent highlighting and regions, the syntax is split into 3 parts:
- function call (first element of an expression)
- operator
- value
Each token fits into one of its categories and is followed by 1 or more of its
categories. For example, 'and' is an operator followed by a function call,
operator or value in order of priority.
So '/' in 'and /' corresponds to a regex.
Notes:
- 'do' is a value that creates a block, except in the condition of 'for', 'until' and 'while'.
- 'if', 'unless', 'until' and 'while' are modifiers only in the value category.
-->
<!--
NOTE This syntax should be synchronized with Haml, for which a ',' and ' |' at
the end of a line correspond to a <LineContinue>.
-->
<language name="Ruby" alternativeNames="RB;JRuby" section="Scripts"
version="21" kateversion="5.79"
extensions="*.rb;*.rjs;*.rxml;*.xml.erb;*.js.erb;*.rake;Rakefile;Gemfile;*.gemspec;Vagrantfile"
mimetype="application/x-ruby"
style="ruby" indenter="ruby"
author="Stefan Lang (langstefan@gmx.at), Sebastian Vuorinen (sebastian.vuorinen@helsinki.fi), Robin Pedersen (robinpeder@gmail.com), Miquel Sabaté (mikisabate@gmail.com), Jonathan Poelen (jonathan.poelen@gmail.com)"
license="LGPLv2+">
<highlighting>
<list name="keyword">
<item>class</item>
<item>def</item>
<item>end</item>
<item>ensure</item>
<item>when</item>
<include>keyword-begin-end-cond</include>
<include>keyword-block-cond</include>
<include>keyword-block-then-value</include>
<include>keyword-block</include>
<include>keyword-loop</include>
<include>keyword-then-stmt</include>
<include>keyword-then-value</include>
</list>
<list name="keyword-then-value">
<item>break</item>
<item>defined?</item>
<item>in</item>
<item>next</item>
<item>redo</item>
<item>retry</item>
<item>return</item>
<item>yield</item>
</list>
<list name="keyword-then-stmt">
<item>and</item>
<item>not</item>
<item>or</item>
<item>then</item>
<item>BEGIN</item>
<item>END</item>
</list>
<list name="keyword-block">
<item>begin</item>
<item>do</item>
</list>
<list name="keyword-block-then-value">
<item>case</item>
<item>module</item>
</list>
<!-- keyword with optional 'then' -->
<list name="keyword-block-cond">
<item>if</item>
<item>unless</item>
</list>
<list name="keyword-begin-end-cond">
<item>else</item>
<item>elsif</item>
<item>rescue</item>
</list>
<!-- keyword with optional 'do' -->
<list name="keyword-loop">
<item>for</item>
<item>until</item>
<item>while</item>
</list>
<list name="keyword-modifiers">
<item>if</item>
<item>unless</item>
<item>until</item>
<item>while</item>
<item>rescue</item>
</list>
<list name="access-control">
<item>private_class_method</item>
<item>private</item>
<item>protected</item>
<item>public_class_method</item>
<item>public</item>
</list>
<list name="attribute-definitions">
<item>attr_reader</item>
<item>attr_writer</item>
<item>attr_accessor</item>
</list>
<list name="definitions">
<item>alias</item>
<item>module</item>
<item>class</item>
<item>def</item>
<item>undef</item>
</list>
<list name="pseudo-variables">
<item>self</item>
<item>super</item>
<item>nil</item>
<item>false</item>
<item>true</item>
<item>caller</item>
<item>__FILE__</item>
<item>__LINE__</item>
</list>
<list name="default-globals">
<item>$stdout</item>
<item>$stderr</item>
<item>$stdin</item>
</list>
<!-- Kernel module methods.
NOTE: Methods ending in ? or !
are included below as regexes.
-->
<list name="kernel-methods">
<!-- backquote ` -->
<item>abort</item>
<item>at_exit</item>
<item>autoload</item>
<item>autoload?</item>
<item>binding</item>
<item>block_given?</item>
<item>callcc</item>
<item>caller</item>
<item>catch</item>
<item>chomp</item>
<item>chomp!</item>
<item>chop</item>
<item>chop!</item>
<item>eval</item>
<item>exec</item>
<item>exit</item>
<item>exit!</item>
<item>fail</item>
<item>fork</item>
<item>format</item>
<item>getc</item>
<item>gets</item>
<item>global_variables</item>
<item>gsub</item>
<item>gsub!</item>
<item>iterator?</item>
<item>lambda</item>
<item>load</item>
<item>local_variables</item>
<item>loop</item>
<item>method_missing</item>
<item>open</item>
<item>p</item>
<item>print</item>
<item>printf</item>
<item>proc</item>
<item>putc</item>
<item>puts</item>
<item>raise</item>
<item>rand</item>
<item>readline</item>
<item>readlines</item>
<item>require</item>
<item>require_relative</item>
<item>scan</item>
<item>select</item>
<item>set_trace_func</item>
<item>sleep</item>
<item>split</item>
<item>sprintf</item>
<item>srand</item>
<item>sub</item>
<item>sub!</item>
<item>syscall</item>
<item>system</item>
<item>test</item>
<item>throw</item>
<item>trace_var</item>
<item>trap</item>
<item>untrace_var</item>
<item>warn</item>
</list>
<list name="mixin-methods">
<item>extend</item>
<item>include</item>
<item>prepend</item>
<item>refine</item>
<item>using</item>
</list>
<contexts>
<context name="Normal" attribute="Normal Text" fallthroughContext="Ruby">
<!-- "shebang" line -->
<StringDetect attribute="Keyword" String="#!/" context="Shebang" column="0"/>
</context>
<context name="Shebang" attribute="Keyword" lineEndContext="#pop">
</context>
<context name="Ruby" attribute="Normal Text" fallthroughContext="Expr">
<DetectSpaces attribute="Normal Text"/>
<AnyChar attribute="Normal Text" String=";("/>
<DetectChar attribute="Normal Text" char=")" context="Op1ThenExpr"/>
<DetectChar attribute="Delimiter" char="]" context="Op1ThenExpr"/>
<DetectChar attribute="Operator" char="{" beginRegion="brace"/>
<DetectChar attribute="Operator" char="}" context="Op1ThenExpr" endRegion="brace"/>
<DetectChar attribute="Comment" char="#" context="General Comment"/>
<DetectChar char="@" context="AtVarMsgParamOrOp2" lookAhead="1"/>
<DetectChar char="$" context="VarMsgParamOrOp2" lookAhead="1"/>
<HlCChar attribute="Char"/>
<DetectChar attribute="String" char='"' context="DQuote"/>
<DetectChar attribute="Raw String" char="'" context="SQuote"/>
<DetectChar attribute="Command" char="`" context="Command String"/>
<DetectChar lookAhead="1" char="." context="MsgParamOrOp2"/>
<RegExpr attribute="Normal Text" String="&ident_not_kw;" context="MsgParamOrOp2"/>
<!-- Detects key symbol in a hash
Unfortunately in the absence of a space before ':',
the syntax is ambiguous with a function call containing a symbol.
hash: {sym:foo}
function: foo:sym <- 'foo:' is considered as a symbol
-->
<RegExpr attribute="Symbol" String="&symbol;" context="MsgParamOrOp2"/>
<DetectChar attribute="Delimiter" char="[" context="MsgParamOrOp2"/>
<keyword attribute="Keyword" String="keyword-block" beginRegion="def block"/>
<keyword attribute="Keyword" String="keyword-loop" context="Loop" beginRegion="def block"/>
<keyword attribute="Keyword" String="keyword-block-then-value" context="MsgParamOrOp2" beginRegion="def block"/>
<keyword attribute="Keyword" String="keyword-begin-end-cond" context="Cond" endRegion="def block" beginRegion="def block"/>
<keyword attribute="Keyword" String="keyword-then-stmt"/>
<keyword attribute="Keyword" String="keyword-then-value" context="MsgParamOrOp2"/>
<keyword attribute="Keyword" String="keyword-block-cond" context="Cond" beginRegion="def block"/>
<WordDetect attribute="Keyword" String="end" context="MsgParamOrOp2" endRegion="def block"/>
<WordDetect attribute="Keyword" String="class" context="Op1ThenExpr" beginRegion="def block"/>
<WordDetect attribute="Keyword" String="def" context="DefFn" beginRegion="def block"/>
<WordDetect attribute="Keyword" String="when" context="Cond"/>
<WordDetect attribute="Keyword" String="ensure" endRegion="def block" beginRegion="def block"/>
<WordDetect attribute="Definition" String="alias" context="Alias"/>
<WordDetect attribute="Definition" String="undef" context="Alias"/>
<keyword attribute="Attribute Definition" String="attribute-definitions" context="Op2ThenExpr"/>
<keyword attribute="Access Control" String="access-control" context="Op2ThenExpr"/>
<keyword attribute="Definition" String="definitions" context="Expr"/>
<keyword attribute="Pseudo variable" String="pseudo-variables" context="Op1ThenExpr"/>
<keyword attribute="Kernel methods" String="kernel-methods" context="Op2ThenExpr"/>
<keyword attribute="Module mixin methods" String="mixin-methods" context="Op2ThenExpr"/>
<!-- Generally a module or class name like "File", "MyModule_1", .. -->
<RegExpr attribute="Constant" String="&constant;" context="MsgParamOrOp2"/>
<RegExpr attribute="Global Constant" String="&global_constant;" context="MsgParamOrOp2"/>
<!-- __END__ token on own line. -->
<RegExpr attribute="Keyword" String="^__END__$" context="DATA" column="0"/>
<DetectIdentifier attribute="Normal Text" context="SuffixFunctionMsgParamOrOp2"/>
<!-- Check for =begin before assignment operator. -->
<WordDetect attribute="Blockcomment" String="=begin" context="Embedded documentation" beginRegion="comment block" column="0"/>
<!-- ruby ignores newline after \ -->
<LineContinue attribute="Normal Text"/>
</context>
<context name="SuffixFunctionMsgParamOrOp2" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop!MsgParamOrOp2">
<AnyChar attribute="Normal Text" String="!?" context="#pop!MsgParamOrOp2"/>
</context>
<!-- until 'do' or end of line -->
<context name="Loop" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="LoopExpr">
<DetectSpaces attribute="Normal Text"/>
<DetectChar attribute="Operator" char="{" context="LoopFindBrace" beginRegion="brace"/>
<DetectChar attribute="Operator" char="}" context="#pop" lookAhead="1"/>
<WordDetect attribute="Keyword" String="do" context="#pop"/>
<LineContinue attribute="Normal Text"/>
</context>
<context name="LoopFindBrace" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="LoopExpr">
<DetectSpaces attribute="Normal Text"/>
<DetectChar attribute="Operator" char="{" context="LoopFindBrace" beginRegion="brace"/>
<DetectChar attribute="Operator" char="}" context="#pop!Op1ThenLoopExpr" endRegion="brace"/>
<WordDetect attribute="Keyword" String="do" context="#pop" lookAhead="1"/>
<LineContinue attribute="Normal Text"/>
</context>
<context name="LoopExpr" attribute="Normal Text" lineEndContext="#pop">
<WordDetect attribute="Keyword" String="do" context="#pop" lookAhead="1"/>
<IncludeRules context="Expr"/>
</context>
<!-- until 'then' or end of line -->
<context name="Cond" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="CondExpr">
<DetectSpaces attribute="Normal Text"/>
<DetectChar attribute="Operator" char="{" context="CondFindBrace" beginRegion="brace"/>
<DetectChar attribute="Operator" char="}" context="#pop" lookAhead="1"/>
<WordDetect attribute="Keyword" String="then" context="#pop"/>
<LineContinue attribute="Normal Text"/>
</context>
<context name="CondFindBrace" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="CondExpr">
<DetectSpaces attribute="Normal Text"/>
<DetectChar attribute="Operator" char="{" context="CondFindBrace" beginRegion="brace"/>
<DetectChar attribute="Operator" char="}" context="#pop!Op1ThenCondExpr" endRegion="brace"/>
<WordDetect attribute="Keyword" String="then" context="#pop" lookAhead="1"/>
<LineContinue attribute="Normal Text"/>
</context>
<context name="CondExpr" attribute="Normal Text" lineEndContext="#pop">
<WordDetect attribute="Keyword" String="then" context="#pop" lookAhead="1"/>
<IncludeRules context="Expr"/>
</context>
<!-- after function call
Assume that
foo /a is a regex but not foo /=a
foo %+ is a percent literal
foo <<a is a heredoc
(This is not true when foo is a variable...)
-->
<context name="MsgParamOrOp2" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop!Expr">
<DetectSpaces attribute="Normal Text"/>
<RegExpr attribute="Operator" String="&op2;" context="#pop!Expr"/>
<DetectChar attribute="Member" char="." context="MemberAccessCall"/>
<StringDetect attribute="Operator" String="::" context="MemberAccessCall"/>
<LineContinue attribute="Normal Text"/>
</context>
<context name="MsgFnName" attribute="Normal Text" lineEndContext="#pop#pop#pop" fallthroughContext="#pop!FnParent">
<DetectSpaces attribute="Normal Text"/>
<DetectChar attribute="Member" char="." context="MemberAccess"/>
<StringDetect attribute="Operator" String="::" context="MemberAccess"/>
<LineContinue attribute="Normal Text"/>
</context>
<context name="Expr" attribute="Normal Text" lineEndContext="#pop">
<DetectSpaces attribute="Normal Text"/>
<StringDetect attribute="Operator" String=".." context="Dot2Op"/>
<DetectChar attribute="Member" char="." context="MemberAccess"/>
<DetectChar attribute="Operator" char="=" context="#pop"/>
<!-- pop to parent for interpolation -->
<AnyChar String="{}" context="#pop" lookAhead="1"/>
<AnyChar attribute="Normal Text" String=";(" context="#pop"/>
<DetectChar attribute="Normal Text" char=","/>
<DetectChar attribute="Normal Text" char=")" context="Op1"/>
<DetectChar attribute="Comment" char="#" context="#pop!General Comment"/>
<DetectChar char="@" context="AtVar" lookAhead="1"/>
<DetectChar char="$" context="Var" lookAhead="1"/>
<DetectChar attribute="Delimiter" char="]" context="Op1"/>
<HlCChar attribute="Char" context="Op1"/>
<DetectChar attribute="String" char='"' context="DQuote"/>
<DetectChar attribute="Raw String" char="'" context="SQuote"/>
<DetectChar attribute="Command" char="`" context="Command String"/>
<DetectChar attribute="Regular Expression" char="/" context="RegEx"/>
<!-- Check for "ASCII code operator". e.g.: ?a -->
<DetectChar char="?" context="MaybeCharLiteral" lookAhead="1"/>
<AnyChar context="Number" String="0123456789" lookAhead="1"/>
<RegExpr attribute="Normal Text" String="&ident_not_kw;" context="Op2"/>
<RegExpr attribute="Symbol" String="&symbol;" context="#pop!MsgParamOrOp2"/>
<DetectChar attribute="Delimiter" char="[" context="#pop!MsgParamOrOp2"/>
<StringDetect attribute="Operator" String="::" context="MemberAccess"/>
<LineContinue attribute="Normal Text"/>
<keyword attribute="Attribute Definition" String="attribute-definitions" context="Op2"/>
<keyword attribute="Access Control" String="access-control" context="Op2"/>
<keyword attribute="Pseudo variable" String="pseudo-variables" context="Op1"/>
<keyword attribute="Kernel methods" String="kernel-methods" context="Op2"/>
<keyword attribute="Module mixin methods" String="mixin-methods" context="Op2"/>
<keyword attribute="Keyword" String="keyword-modifiers"/>
<keyword attribute="Keyword" String="keyword-block" beginRegion="def block" context="#pop"/>
<keyword attribute="Keyword" String="keyword-loop" context="#pop!Loop" beginRegion="def block"/>
<keyword attribute="Keyword" String="keyword-block-then-value" context="#pop!MsgParamOrOp2" beginRegion="def block"/>
<keyword attribute="Keyword" String="keyword-begin-end-cond" context="#pop!Cond" endRegion="def block" beginRegion="def block"/>
<keyword attribute="Keyword" String="keyword-then-stmt" context="#pop"/>
<keyword attribute="Keyword" String="keyword-then-value" context="#pop!MsgParamOrOp2"/>
<WordDetect attribute="Keyword" String="end" context="#pop!MsgParamOrOp2" endRegion="def block"/>
<WordDetect attribute="Keyword" String="class" context="Op1" beginRegion="def block"/>
<WordDetect attribute="Keyword" String="def" context="#pop!DefFn" beginRegion="def block"/>
<WordDetect attribute="Keyword" String="when" context="#pop!Cond"/>
<WordDetect attribute="Keyword" String="ensure" context="#pop" endRegion="def block" beginRegion="def block"/>
<WordDetect attribute="Definition" String="alias" context="Alias"/>
<WordDetect attribute="Definition" String="undef" context="Alias"/>
<keyword attribute="Definition" String="definitions"/>
<!-- Generally a module or class name like "File", "MyModule_1", .. -->
<RegExpr attribute="Constant" String="&constant;" context="ExprSubClass"/>
<RegExpr attribute="Global Constant" String="&global_constant;" context="ExprSubClass"/>
<RegExpr attribute="Symbol" String=":((@@?|\$)&ident;|&ident;([?]|!(?!=)|=(?![=>~]))?|&sym_op;|(?=['"])|&global_var;)" context="Op1"/>
<!-- recognize the beginning of a general delimited input format -->
<!-- this moves to the next context to separate out the exact nature of the GDL input -->
<RegExpr attribute="GDL input" context="find_gdl_input" String="%(?=&percent_lit;)" beginRegion="GdlInput"/>
<!-- recognize the beginning of a HEREDOC -->
<RegExpr attribute="Operator" context="Heredoc" String="<<(?=[-~]?(\w+|'\w+'|"\w+"|`\w+`))" beginRegion="HereDocument"/>
<!-- should not happen in valid syntax -->
<RegExpr attribute="Operator" String="([/%?:]|<<?)&safe_op;*|&safe_op;+"/>
<DetectIdentifier attribute="Normal Text" context="SuffixFunction"/>
</context>
<!-- alias / +
~ never regex
same for undef
-->
<context name="Alias" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop">
<DetectSpaces attribute="Normal Text"/>
<AnyChar attribute="Operator" String="-+*~^|&=<>!%/"/>
<DetectChar char="$" context="Var" lookAhead="1"/>
<DetectChar attribute="String" char='"' context="AliasDQuote"/>
<DetectChar attribute="Raw String" char="'" context="AliasSQuote"/>
<DetectChar attribute="Normal Text" char=","/>
<LineContinue attribute="Normal Text"/>
<RegExpr attribute="Symbol" String=":(&ident;[=?!]?|&sym_op;)"/>
<RegExpr attribute="Normal Text" String="\b(?!(&no_param;)([^?!\w]|$))&ident;"/>
</context>
<context name="AliasDQuote" attribute="String">
<DetectChar char='"' attribute="String" context="AliasCheckSym"/>
<IncludeRules context="DQuoteSpecial"/>
</context>
<context name="AliasSQuote" attribute="Raw String">
<Detect2Chars attribute="String" char="\" char1="\"/>
<Detect2Chars attribute="String" char="\" char1="'"/>
<DetectChar char="'" attribute="Raw String" context="AliasCheckSym"/>
</context>
<context name="AliasCheckSym" attribute="Raw String" lineEndContext="#pop#pop#pop" fallthroughContext="#pop#pop">
<DetectChar char=":" attribute="Symbol" context="#pop#pop"/>
</context>
<context name="Dot2Op" attribute="Operator" lineEndContext="#pop#pop" fallthroughContext="#pop">
<!-- triple dot -->
<DetectChar attribute="Operator" char="." context="#pop"/>
</context>
<context name="SuffixFunction" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop!Op2">
<AnyChar attribute="Normal Text" String="!?" context="#pop!Op2"/>
</context>
<!-- A slash is always a division operator, even if preceeded by whitespace -->
<context name="Op1" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop">
<DetectSpaces attribute="Normal Text"/>
<DetectChar attribute="Operator" char="=" context="#pop#pop"/>
<RegExpr attribute="Operator" String="&op1;" context="#pop"/>
<LineContinue attribute="Normal Text"/>
</context>
<context name="Op1ThenExpr" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop!Expr">
<DetectSpaces attribute="Normal Text"/>
<DetectChar attribute="Operator" char="=" context="#pop"/>
<RegExpr attribute="Operator" String="&op1;" context="#pop!Expr"/>
<LineContinue attribute="Normal Text"/>
</context>
<context name="Op1ThenLoopExpr" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop!LoopExpr">
<DetectSpaces attribute="Normal Text"/>
<DetectChar attribute="Operator" char="=" context="#pop"/>
<RegExpr attribute="Operator" String="&op1;" context="#pop!LoopExpr"/>
<LineContinue attribute="Normal Text"/>
</context>
<context name="Op1ThenCondExpr" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop!CondExpr">
<DetectSpaces attribute="Normal Text"/>
<DetectChar attribute="Operator" char="=" context="#pop"/>
<RegExpr attribute="Operator" String="&op1;" context="#pop!CondExpr"/>
<LineContinue attribute="Normal Text"/>
</context>
<!-- A slash is division operator if it's the first character, or if preceeded and followed by whitespace -->
<context name="Op2" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop">
<DetectSpaces attribute="Normal Text"/>
<DetectChar attribute="Operator" char="=" context="#pop#pop"/>
<RegExpr attribute="Operator" String="&op2;" context="#pop"/>
<LineContinue attribute="Normal Text"/>
</context>
<context name="Op2ThenExpr" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop!Expr">
<DetectSpaces attribute="Normal Text"/>
<DetectChar attribute="Operator" char="=" context="#pop"/>
<RegExpr attribute="Operator" String="&op2;" context="#pop!Expr"/>
<LineContinue attribute="Normal Text"/>
</context>
<context name="Var" attribute="Normal Text" lineEndContext="#pop#pop">
<!-- (global) vars starting with $ -->
<RegExpr attribute="Global Variable" String="&named_global_var;" context="#pop!Op1"/>
<!-- special-character globals and other predefined variables -->
<RegExpr attribute="Default globals" String="&global_var;" context="#pop!Op1"/>
<DetectChar attribute="Error" char="$" context="#pop!Op1"/>
</context>
<context name="VarMsgParamOrOp2" attribute="Normal Text" lineEndContext="#pop">
<!-- (global) vars starting with $ -->
<RegExpr attribute="Global Variable" String="&named_global_var;" context="#pop!MsgParamOrOp2"/>
<!-- special-character globals and other predefined variables -->
<RegExpr attribute="Default globals" String="&global_var;" context="#pop!MsgParamOrOp2"/>
<DetectChar attribute="Error" char="$" context="#pop!MsgParamOrOp2"/>
</context>
<context name="AtVar" attribute="Normal Text" lineEndContext="#pop#pop">
<RegExpr attribute="Instance Variable" String="@&ident;" context="#pop!Op1"/>
<RegExpr attribute="Class Variable" String="@@&ident;" context="#pop!Op1"/>
<DetectChar attribute="Error" char="@" context="#pop!Op1"/>
</context>
<context name="AtVarMsgParamOrOp2" attribute="Normal Text" lineEndContext="#pop">
<RegExpr attribute="Instance Variable" String="@&ident;" context="#pop!MsgParamOrOp2"/>
<RegExpr attribute="Class Variable" String="@@&ident;" context="#pop!MsgParamOrOp2"/>
<DetectChar attribute="Error" char="@" context="#pop!MsgParamOrOp2"/>
</context>
<!-- def foo() block-statement
~~~ any ident (including keyword)
def Abc::foo() block-statement
~~~ ~~~ ident (no keyword)
-->
<context name="DefFn" attribute="Normal Text" fallthroughContext="FnName">
<DetectSpaces attribute="Normal Text"/>
<LineContinue attribute="Normal Text"/>
<DetectChar attribute="Comment" char="#" context="General Comment"/>
</context>
<context name="FnName" attribute="Normal Text" fallthroughContext="FnParent">
<RegExpr attribute="Normal Text" String="&ident_not_kw;" context="MsgFnName"/>
<keyword attribute="Attribute Definition" String="attribute-definitions" context="FnParent" weakDeliminator=":"/>
<keyword attribute="Access Control" String="access-control" context="FnParent" weakDeliminator=":"/>
<keyword attribute="Definition" String="definitions" context="FnParent" weakDeliminator=":"/>
<keyword attribute="Pseudo variable" String="pseudo-variables" context="FnParent" weakDeliminator=":"/>
<keyword attribute="Kernel methods" String="kernel-methods" context="FnParent" weakDeliminator=":"/>
<keyword attribute="Module mixin methods" String="mixin-methods" context="FnParent" weakDeliminator=":"/>
<keyword attribute="Keyword" String="keyword" context="FnParent" weakDeliminator=":"/>
<RegExpr attribute="Operator" String="[-+~]@?|![~@]?|[/%^]|\*\*?|\|\||&&|<(=>?)?|>=?|===?|\*\*?" context="FnParent"/>
<RegExpr attribute="Constant" String="&constant;" context="MsgFnName"/>
<RegExpr attribute="Global Constant" String="&global_constant;" context="MsgFnName"/>
<StringDetect attribute="Symbol" String="[]=" context="FnParent"/>
<StringDetect attribute="Symbol" String="[]" context="FnParent"/>
<DetectChar attribute="Comment" char="#" context="General Comment"/>
</context>
<context name="FnParent" attribute="Normal Text" fallthroughContext="#pop#pop#pop">
<DetectChar attribute="Normal Text" char="(" context="DefFnParams"/>
<DetectSpaces attribute="Normal Text"/>
<LineContinue attribute="Normal Text"/>
<DetectChar attribute="Comment" char="#" context="General Comment"/>
</context>
<context name="DefFnParams" attribute="Normal Text" fallthroughContext="#pop#pop#pop#pop">
<DetectChar attribute="Normal Text" char=")" context="#pop#pop#pop#pop"/>
<DetectChar attribute="Comment" char="#" context="General Comment"/>
<RegExpr attribute="Normal Text" String="([\s,]+|\b(?!(&no_param;)\b|[[:upper:]])&ident;(?=$|[^?!]))++"/>
<RegExpr attribute="Constant" String="&constant;"/>
<RegExpr attribute="Global Constant" String="&global_constant;"/>
<keyword attribute="Attribute Definition" String="attribute-definitions"/>
<keyword attribute="Access Control" String="access-control"/>
<keyword attribute="Kernel methods" String="kernel-methods"/>
<keyword attribute="Module mixin methods" String="mixin-methods"/>
</context>
<!-- Numeric values. Note that we have to allow underscores between two digits. -->
<context name="Number" attribute="Normal Text" lineEndContext="#pop#pop" fallthroughContext="NumberError">
<RegExpr attribute="Dec" String="\b(0[dD]&dec;|(0(\b|(?=[ri]))|[1-9](_?[0-9]++)*+)(?![eE]|[.][0-9]))" context="NumberSuffix"/>
<RegExpr attribute="Float" String="\b([1-9](_?[0-9]++)*+|0)(\.&dec;([eE][-+]?&dec;)?|[eE][-+]?&dec;)" context="NumberSuffix"/>
<RegExpr attribute="Hex" String="\b0[xX][0-9a-fA-F](_?[0-9a-fA-F]++)*+" context="NumberSuffix"/>
<RegExpr attribute="Bin" String="\b0[bB][01](_?[01]++)*+" context="NumberSuffix"/>
<RegExpr attribute="Octal" String="\b0[oO]?[0-7](_?[0-7]++)*+" context="NumberSuffix"/>
<DetectChar char="0" attribute="Dec" context="NumberError"/>
</context>
<context name="NumberSuffix" attribute="Number Suffix" lineEndContext="#pop#pop" fallthroughContext="#pop!NumberError">
<StringDetect attribute="Number Suffix" String="ri" context="#pop!NumberError"/>
<AnyChar attribute="Number Suffix" String="ri" context="#pop!NumberError"/>
</context>
<context name="NumberError" attribute="Error" lineEndContext="#pop#pop#pop" fallthroughContext="#pop#pop!Op1">
<DetectIdentifier/>
<AnyChar String="0123456789"/>
</context>
<context name="Find closing brace" attribute="Normal Text" fallthroughContext="Expr">
<DetectChar attribute="Operator" char="}" context="#pop!Op1ThenExpr" endRegion="brace"/>
<IncludeRules context="Ruby"/>
</context>
<!-- "..." -->
<context name="DQuote" attribute="String">
<DetectChar char='"' attribute="String" context="CheckSym"/>
<IncludeRules context="DQuoteSpecial"/>
</context>
<!-- "...": -->
<context name="CheckSym" attribute="Raw String" lineEndContext="#pop#pop!Op1" fallthroughContext="#pop#pop!Op1">
<DetectChar char=":" attribute="Symbol" context="#pop#pop#pop"/>
</context>
<!-- \ in "..." -->
<context name="DQuoteSpecial" attribute="String">
<DetectChar char="\" context="DQuoteEscape" lookAhead="1"/>
<DetectChar char="#" context="DQuoteSubstitution" lookAhead="1"/>
</context>
<context name="DQuoteEscape" attribute="String">
<RegExpr attribute="String Char" String="&escape;" context="#pop"/>
<RegExpr attribute="Error" String="\\(&partial_escape;|)" context="#pop"/>
</context>
<context name="DQuoteSubstitution" attribute="String">
<StringDetect attribute="Substitution" String="#{" context="#pop!Subst"/>
<RegExpr attribute="Substitution" String="#@@?\w+|#&global_var;" context="#pop"/>
<DetectChar char="#" context="#pop"/>
</context>
<!-- '...' -->
<context name="SQuote" attribute="Raw String">
<Detect2Chars attribute="String" char="\" char1="\"/>
<Detect2Chars attribute="String" char="\" char1="'"/>
<DetectChar char="'" attribute="Raw String" context="CheckSym"/>
</context>
<!-- `...` -->
<context name="Command String" attribute="Command">
<DetectChar char="`" attribute="Command" context="#pop!Op1"/>
<Detect2Chars attribute="String" char="\" char1="\"/>
<Detect2Chars attribute="String" char="\" char1="`"/>
<DetectChar char="#" context="DQuoteSubstitution" lookAhead="1"/>
</context>
<!-- ?x -->
<context name="MaybeCharLiteral" attribute="String" lineEndContext="#pop" fallthroughContext="#pop!Op1">
<RegExpr attribute="Operator" String="\?(?=\s|$)" context="#pop"/>
<DetectChar attribute="Char Literal" char="?" context="CharLiteral"/>
</context>
<context name="CharLiteral" attribute="String">
<RegExpr attribute="Char" String="[^\\\s]" context="#pop#pop!Op1"/>
<RegExpr attribute="String Char" String="&escape;" context="#pop#pop!Op1"/>
<RegExpr attribute="Error" String="\\(&partial_escape;|)" context="#pop#pop!Op1"/>
</context>
<context name="Embedded documentation" attribute="Blockcomment">
<DetectSpaces/>
<IncludeRules context="##Comments"/>
<DetectIdentifier/>
<WordDetect attribute="Comment" String="=end" context="Embedded documentation End" endRegion="comment block" column="0"/>
</context>
<context name="Embedded documentation End" attribute="Comment" lineEndContext="#pop#pop">
</context>
<context name="RegEx" attribute="Regular Expression">
<DetectChar attribute="Regular Expression" context="RegExMode" char="/"/>
<IncludeRules context="RegExSpecial"/>
</context>
<!-- as DQuoteSpecial, but with \. and \p{...} -->
<context name="RegExSpecial" attribute="String Char">
<DetectChar char="#" context="DQuoteSubstitution" lookAhead="1"/>
<DetectChar char="\" context="RegExEscape" lookAhead="1"/>
</context>
<context name="RegExEscape" attribute="String">
<RegExpr attribute="String Char" String="\\([^0-7xucCMp]|&special_escape;|p\{[-[:alpha:]]*\}|$)" context="#pop"/>
<RegExpr attribute="Error" String="\\(&partial_escape;|p\{?|)" context="#pop"/>
</context>
<context name="RegExMode" attribute="String" lineEndContext="#pop#pop" fallthroughContext="#pop#pop!Op1">
<AnyChar attribute="Regular Expression" String="imxonues"/>
</context>
<!-- Substitutions can be nested -->
<context name="Subst" attribute="Normal Text" fallthroughContext="Expr">
<DetectChar attribute="Operator" char="{" context="Find closing brace" beginRegion="brace"/>
<DetectChar attribute="Substitution" char="}" context="#pop"/>
<!-- Highlight substitution as code. -->
<IncludeRules context="Ruby"/>
</context>
<!-- This handles access of nested module classes and class methods -->
<context name="MemberAccess" attribute="Member" fallthroughContext="#pop!Op1">
<DetectSpaces attribute="Normal Text"/>
<!-- marks a message (being sent, not defined) -->
<RegExpr attribute="Message" String="&msg;" context="SubClass"/>
<RegExpr attribute="Constant" String="&constant;" context="SubClass"/>
<RegExpr attribute="Constant Value" String="&global_constant;" context="SubClass"/>
<RegExpr attribute="Operator" String="&sym_op;" context="#pop"/>
</context>
<context name="SubClass" attribute="Normal Text" fallthroughContext="#pop#pop!Op1" lineEndContext="#pop#pop">
<StringDetect attribute="Operator" String="::" context="#pop"/>
</context>
<context name="ExprSubClass" attribute="Normal Text" fallthroughContext="#pop!Op1" lineEndContext="#pop">
<StringDetect attribute="Operator" String="::" context="#pop!MemberAccess"/>
</context>
<context name="MemberAccessCall" attribute="Member" fallthroughContext="#pop">
<DetectSpaces attribute="Normal Text"/>
<!-- marks a message (being sent, not defined) -->
<RegExpr attribute="Message" String="&msg;" context="SubClassCall"/>
<RegExpr attribute="Constant" String="&constant;" context="SubClassCall"/>
<RegExpr attribute="Constant Value" String="&global_constant;" context="SubClassCall"/>
<RegExpr attribute="Operator" String="&sym_op;" context="#pop"/>
</context>
<context name="SubClassCall" attribute="Normal Text" fallthroughContext="#pop#pop" lineEndContext="#pop#pop">
<StringDetect attribute="Operator" String="::" context="#pop"/>
</context>
<context name="General Comment" attribute="Comment" lineEndContext="#pop">
<DetectSpaces/>
<IncludeRules context="##Comments"/>
<DetectIdentifier/>
</context>
<!-- HEREDOC support
The contexts below support both normal and indented heredocs
-->
<!-- here we markup the heredoc markers -->
<context name="Heredoc" attribute="Normal Text">
<AnyChar attribute="Operator" String="-~" context="#pop!IndentedHeredoc"/>
<RegExpr attribute="Keyword" context="apostrophed_normal_heredoc" String="'(\w+)'"/>
<RegExpr attribute="Keyword" context="normal_heredoc" String="(?|(\w+)|"(\w+)"|`(\w+)`)"/>
</context>
<context name="IndentedHeredoc" attribute="Normal Text">
<RegExpr attribute="Keyword" context="apostrophed_indented_heredoc" String="'(\w+)'"/>
<RegExpr attribute="Keyword" context="indented_heredoc" String="(?|(\w+)|"(\w+)"|`(\w+)`)"/>
</context>
<!-- these are the real heredoc contexts -->
<context name="indented_heredoc" attribute="Here Document">
<RegExpr attribute="Keyword" context="#pop#pop" String="%1$" dynamic="true" endRegion="HereDocument" firstNonSpace="true"/>
<IncludeRules context="DQuoteSpecial"/>
</context>
<context name="apostrophed_indented_heredoc" attribute="Here Document">
<RegExpr attribute="Keyword" context="#pop#pop" String="%1$" dynamic="true" endRegion="HereDocument" firstNonSpace="true"/>
</context>
<context name="normal_heredoc" attribute="Here Document">
<RegExpr attribute="Keyword" context="#pop#pop" String="^%1$" dynamic="true" endRegion="HereDocument" column="0"/>
<IncludeRules context="DQuoteSpecial"/>
</context>
<context name="apostrophed_normal_heredoc" attribute="Here Document">
<RegExpr attribute="Keyword" context="#pop#pop" String="^%1$" dynamic="true" endRegion="HereDocument" column="0"/>
</context>
<!-- General delimited input support
The contexts below handle the various gdl formats
-->
<context name="find_gdl_input" attribute="Normal Text" lineEndContext="#pop">
<!-- handle double-quoted strings -->
<DetectChar attribute="GDL input" context="%Q(" char="("/>
<DetectChar attribute="GDL input" context="%Q{" char="{"/>
<DetectChar attribute="GDL input" context="%Q[" char="["/>
<DetectChar attribute="GDL input" context="%Q<" char="<"/>
<StringDetect attribute="GDL input" context="%Q(" String="Q("/>
<StringDetect attribute="GDL input" context="%Q{" String="Q{"/>
<StringDetect attribute="GDL input" context="%Q[" String="Q["/>
<StringDetect attribute="GDL input" context="%Q<" String="Q<"/>
<!-- handle token arrays -->
<StringDetect attribute="GDL input" context="%Q(" String="W("/>
<StringDetect attribute="GDL input" context="%Q{" String="W{"/>
<StringDetect attribute="GDL input" context="%Q[" String="W["/>
<StringDetect attribute="GDL input" context="%Q<" String="W<"/>
<!-- handle token arrays -->
<StringDetect attribute="GDL input" context="%Q(" String="I("/>
<StringDetect attribute="GDL input" context="%Q{" String="I{"/>
<StringDetect attribute="GDL input" context="%Q[" String="I["/>
<StringDetect attribute="GDL input" context="%Q<" String="I<"/>
<!-- then we handle the 'any char' format -->
<RegExpr attribute="GDL input" context="%Q_" String="[QWI]?([^[:alnum:]])"/>
<!-- handle token arrays -->
<StringDetect attribute="GDL input" context="%w(" String="w("/>
<StringDetect attribute="GDL input" context="%w{" String="w{"/>
<StringDetect attribute="GDL input" context="%w[" String="w["/>
<StringDetect attribute="GDL input" context="%w<" String="w<"/>
<!-- handle token arrays -->
<StringDetect attribute="GDL input" context="%w(" String="i("/>
<StringDetect attribute="GDL input" context="%w{" String="i{"/>
<StringDetect attribute="GDL input" context="%w[" String="i["/>
<StringDetect attribute="GDL input" context="%w<" String="i<"/>
<!-- then we handle the 'any char' format -->
<RegExpr attribute="GDL input" context="%w_" String="[wi]([^[:alnum:]])"/>
<!-- handle apostrophed strings -->
<StringDetect attribute="GDL input" context="%q(" String="q("/>
<StringDetect attribute="GDL input" context="%q{" String="q{"/>
<StringDetect attribute="GDL input" context="%q[" String="q["/>
<StringDetect attribute="GDL input" context="%q<" String="q<"/>
<!-- then we handle the 'any char' format -->
<RegExpr attribute="GDL input" context="%q_" String="q([^[:alnum:]])"/>
<!-- handle token arrays -->
<StringDetect attribute="GDL input" context="%s(" String="s("/>
<StringDetect attribute="GDL input" context="%s{" String="s{"/>
<StringDetect attribute="GDL input" context="%s[" String="s["/>
<StringDetect attribute="GDL input" context="%s<" String="s<"/>
<!-- then ie handle the 'any char' format -->
<RegExpr attribute="GDL input" context="%s_" String="s([^[:alnum:]])"/>
<!-- handle regular expressions -->
<StringDetect attribute="GDL input" context="%r(" String="r("/>
<StringDetect attribute="GDL input" context="%r{" String="r{"/>
<StringDetect attribute="GDL input" context="%r[" String="r["/>
<StringDetect attribute="GDL input" context="%r<" String="r<"/>
<!-- then we handle the 'any char' format -->
<RegExpr attribute="GDL input" context="%r_" String="r([^[:alnum:]])"/>
<!-- handle shell commands -->
<StringDetect attribute="GDL input" context="%x(" String="x("/>
<StringDetect attribute="GDL input" context="%x{" String="x{"/>
<StringDetect attribute="GDL input" context="%x[" String="x["/>
<StringDetect attribute="GDL input" context="%x<" String="x<"/>
<!-- then we handle the 'any char' format -->
<RegExpr attribute="GDL input" context="%x_" String="x([^[:alnum:]])"/>
</context>
<!-- double-quoted string specific contexts follow -->
<context name="%Q(" attribute="String">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char=")" endRegion="GdlInput" />
<IncludeRules context="%Q(_rule"/>
</context>
<context name="%Q(_nested" attribute="String">
<DetectChar attribute="String" context="#pop" char=")"/>
<IncludeRules context="%Q(_rule"/>
</context>
<context name="%Q(_rule" attribute="String">
<DetectChar attribute="String" context="%Q(_nested" char="("/>
<IncludeRules context="DQuoteSpecial"/>
</context>
<!-- note that here substitution should win over nesting -->
<context name="%Q{" attribute="String">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char="}" endRegion="GdlInput" />
<IncludeRules context="%Q{_rule"/>
</context>
<context name="%Q{_nested" attribute="String">
<DetectChar attribute="String" context="#pop" char="}"/>
<IncludeRules context="%Q{_rule"/>
</context>
<context name="%Q{_rule" attribute="String">
<DetectChar attribute="String" context="%Q{_nested" char="{"/>
<IncludeRules context="DQuoteSpecial"/>
</context>
<context name="%Q[" attribute="String">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char="]" endRegion="GdlInput" />
<IncludeRules context="%Q[_rule"/>
</context>
<context name="%Q[_nested" attribute="String">
<DetectChar attribute="String" context="#pop" char="]"/>
<IncludeRules context="%Q[_rule"/>
</context>
<context name="%Q[_rule" attribute="String">
<DetectChar attribute="String" context="%Q[_nested" char="["/>
<IncludeRules context="DQuoteSpecial"/>
</context>
<context name="%Q<" attribute="String">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char=">" endRegion="GdlInput" />
<IncludeRules context="%Q<_rule"/>
</context>
<context name="%Q<_nested" attribute="String">
<DetectChar attribute="String" context="#pop" char=">"/>
<IncludeRules context="%Q<_rule"/>
</context>
<context name="%Q<_rule" attribute="String">
<DetectChar attribute="String" context="%Q<_nested" char="<"/>
<IncludeRules context="DQuoteSpecial"/>
</context>
<!-- this format doesn't allow nesting. it is terminated by the next occurrence of the
delimiter character
-->
<context name="%Q_" attribute="String">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char="1" dynamic="true" endRegion="GdlInput" />
<IncludeRules context="DQuoteSpecial"/>
</context>
<!-- token array specific contexts -->
<context name="%w(" attribute="Raw String">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char=")" endRegion="GdlInput"/>
<IncludeRules context="%w(_rule"/>
</context>
<context name="%w(_nested" attribute="Raw String">
<DetectChar attribute="Raw String" context="#pop" char=")"/>
<IncludeRules context="%w(_rule"/>
</context>
<context name="%w(_rule" attribute="Raw String">
<DetectChar attribute="Raw String" context="%w(_nested" char="("/>
<Detect2Chars attribute="String Char" char="\" char1=" "/>
<Detect2Chars attribute="String Char" char="\" char1="\"/>
<Detect2Chars attribute="String Char" char="\" char1=")"/>
<Detect2Chars attribute="String Char" char="\" char1="("/>
</context>
<context name="%w{" attribute="Raw String">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char="}" endRegion="GdlInput"/>
<IncludeRules context="%w{_rule"/>
</context>
<context name="%w{_nested" attribute="Raw String">
<DetectChar attribute="Raw String" context="#pop" char="}"/>
<IncludeRules context="%w{_rule"/>
</context>
<context name="%w{_rule" attribute="Raw String">
<DetectChar attribute="Raw String" context="%w{_nested" char="{"/>
<Detect2Chars attribute="String Char" char="\" char1=" "/>
<Detect2Chars attribute="String Char" char="\" char1="\"/>
<Detect2Chars attribute="String Char" char="\" char1="}"/>
<Detect2Chars attribute="String Char" char="\" char1="{"/>
</context>
<context name="%w[" attribute="Raw String">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char="]" endRegion="GdlInput"/>
<IncludeRules context="%w[_rule"/>
</context>
<context name="%w[_nested" attribute="Raw String">
<DetectChar attribute="Raw String" context="#pop" char="]"/>
<IncludeRules context="%w[_rule"/>
</context>
<context name="%w[_rule" attribute="Raw String">
<DetectChar attribute="Raw String" context="%w[_nested" char="["/>
<Detect2Chars attribute="String Char" char="\" char1=" "/>
<Detect2Chars attribute="String Char" char="\" char1="\"/>
<Detect2Chars attribute="String Char" char="\" char1="]"/>
<Detect2Chars attribute="String Char" char="\" char1="["/>
</context>
<context name="%w<" attribute="Raw String">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char=">" endRegion="GdlInput"/>
<IncludeRules context="%w<_rule"/>
</context>
<context name="%w<_nested" attribute="Raw String">
<DetectChar attribute="Raw String" context="#pop" char=">"/>
<IncludeRules context="%w<_rule"/>
</context>
<context name="%w<_rule" attribute="Raw String">
<DetectChar attribute="Raw String" context="%w<_nested" char="<"/>
<Detect2Chars attribute="String Char" char="\" char1=" "/>
<Detect2Chars attribute="String Char" char="\" char1="\"/>
<Detect2Chars attribute="String Char" char="\" char1=">"/>
<Detect2Chars attribute="String Char" char="\" char1="<"/>
</context>
<!-- this format doesn't allow nesting. it is terminated by the next occurrence of the
delimiter character
-->
<context name="%w_" attribute="Raw String">
<Detect2Chars attribute="String Char" char="\" char1=" "/>
<IncludeRules context="%q_"/>
</context>
<!-- apostrophed string specific contexts -->
<context name="%q(" attribute="Raw String">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char=")" endRegion="GdlInput"/>
<IncludeRules context="%q(_rule"/>
</context>
<context name="%q(_nested" attribute="Raw String">
<DetectChar attribute="Raw String" context="#pop" char=")"/>
<IncludeRules context="%q(_rule"/>
</context>
<context name="%q(_rule" attribute="Raw String">
<DetectChar attribute="Raw String" context="%q(_nested" char="("/>
<Detect2Chars attribute="String Char" char="\" char1="\"/>
<Detect2Chars attribute="String Char" char="\" char1=")"/>
<Detect2Chars attribute="String Char" char="\" char1="("/>
</context>
<context name="%q{" attribute="Raw String">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char="}" endRegion="GdlInput"/>
<IncludeRules context="%q{_rule"/>
</context>
<context name="%q{_nested" attribute="Raw String">
<DetectChar attribute="Raw String" context="#pop" char="}"/>
<IncludeRules context="%q{_rule"/>
</context>
<context name="%q{_rule" attribute="Raw String">
<DetectChar attribute="Raw String" context="%q{_nested" char="{"/>
<Detect2Chars attribute="String Char" char="\" char1="\"/>
<Detect2Chars attribute="String Char" char="\" char1="}"/>
<Detect2Chars attribute="String Char" char="\" char1="{"/>
</context>
<context name="%q[" attribute="Raw String">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char="]" endRegion="GdlInput"/>
<IncludeRules context="%q[_rule"/>
</context>
<context name="%q[_nested" attribute="Raw String">
<DetectChar attribute="Raw String" context="#pop" char="]"/>
<IncludeRules context="%q[_rule"/>
</context>
<context name="%q[_rule" attribute="Raw String">
<DetectChar attribute="Raw String" context="%q[_nested" char="["/>
<Detect2Chars attribute="String Char" char="\" char1="\"/>
<Detect2Chars attribute="String Char" char="\" char1="]"/>
<Detect2Chars attribute="String Char" char="\" char1="["/>
</context>
<context name="%q<" attribute="Raw String">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char=">" endRegion="GdlInput"/>
<IncludeRules context="%q<_rule"/>
</context>
<context name="%q<_nested" attribute="Raw String">
<DetectChar attribute="Raw String" context="#pop" char=">"/>
<IncludeRules context="%q<_rule"/>
</context>
<context name="%q<_rule" attribute="Raw String">
<DetectChar attribute="Raw String" context="%q<_nested" char="<"/>
<Detect2Chars attribute="String Char" char="\" char1="\"/>
<Detect2Chars attribute="String Char" char="\" char1=">"/>
<Detect2Chars attribute="String Char" char="\" char1="<"/>
</context>
<!-- this format doesn't allow nesting. it is terminated by the next occurrence of the
delimiter character
-->
<context name="%q_" attribute="Raw String">
<Detect2Chars attribute="Raw String" char="\" char1="\"/>
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char="1" dynamic="true" endRegion="GdlInput" />
<StringDetect attribute="String Char" String="\%1" dynamic="true"/>
</context>
<!-- symbol string specific contexts -->
<context name="%s(" attribute="Symbol">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char=")" endRegion="GdlInput"/>
<IncludeRules context="%s(_rule"/>
</context>
<context name="%s(_nested" attribute="Symbol">
<DetectChar attribute="Symbol" context="#pop" char=")"/>
<IncludeRules context="%s(_rule"/>
</context>
<context name="%s(_rule" attribute="Symbol">
<DetectChar attribute="Symbol" context="%s(_nested" char="("/>
<Detect2Chars attribute="String Char" char="\" char1="\"/>
<Detect2Chars attribute="String Char" char="\" char1=")"/>
<Detect2Chars attribute="String Char" char="\" char1="("/>
</context>
<context name="%s{" attribute="Symbol">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char="}" endRegion="GdlInput"/>
<IncludeRules context="%s{_rule"/>
</context>
<context name="%s{_nested" attribute="Symbol">
<DetectChar attribute="Symbol" context="#pop" char="}"/>
<IncludeRules context="%s{_rule"/>
</context>
<context name="%s{_rule" attribute="Symbol">
<DetectChar attribute="Symbol" context="%s{_nested" char="{"/>
<Detect2Chars attribute="String Char" char="\" char1="\"/>
<Detect2Chars attribute="String Char" char="\" char1="}"/>
<Detect2Chars attribute="String Char" char="\" char1="{"/>
</context>
<context name="%s[" attribute="Symbol">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char="]" endRegion="GdlInput"/>
<IncludeRules context="%s[_rule"/>
</context>
<context name="%s[_nested" attribute="Symbol">
<DetectChar attribute="Symbol" context="#pop" char="]"/>
<IncludeRules context="%s[_rule"/>
</context>
<context name="%s[_rule" attribute="Symbol">
<DetectChar attribute="Symbol" context="%s[_nested" char="["/>
<Detect2Chars attribute="String Char" char="\" char1="\"/>
<Detect2Chars attribute="String Char" char="\" char1="]"/>
<Detect2Chars attribute="String Char" char="\" char1="["/>
</context>
<context name="%s<" attribute="Symbol">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char=">" endRegion="GdlInput"/>
<IncludeRules context="%s<_rule"/>
</context>
<context name="%s<_nested" attribute="Symbol">
<DetectChar attribute="Symbol" context="#pop" char=">"/>
<IncludeRules context="%s<_rule"/>
</context>
<context name="%s<_rule" attribute="Symbol">
<DetectChar attribute="Symbol" context="%s<_nested" char="<"/>
<Detect2Chars attribute="String Char" char="\" char1="\"/>
<Detect2Chars attribute="String Char" char="\" char1=">"/>
<Detect2Chars attribute="String Char" char="\" char1="<"/>
</context>
<!-- this format doesn't allow nesting. it is terminated by the next occurrence of the
delimiter character
-->
<context name="%s_" attribute="Symbol">
<Detect2Chars attribute="Symbol" char="\" char1="\"/>
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char="1" dynamic="true" endRegion="GdlInput" />
<StringDetect attribute="String Char" String="\%1" dynamic="true"/>
</context>
<!-- regular expression specific contexts -->
<context name="%r(" attribute="String">
<DetectChar attribute="GDL input" context="#pop!RegExMode" char=")" endRegion="GdlInput" /> <IncludeRules context="%r(_rule"/>
</context>
<context name="%r(_nested" attribute="String">
<DetectChar attribute="String" context="#pop" char=")"/>
<IncludeRules context="%r(_rule"/>
</context>
<context name="%r(_rule" attribute="String">
<DetectChar attribute="String" context="%r(_nested" char="("/>
<IncludeRules context="RegExSpecial"/>
</context>
<context name="%r{" attribute="String">
<DetectChar attribute="GDL input" context="#pop!RegExMode" char="}" endRegion="GdlInput" />
<IncludeRules context="%r{_rule"/>
</context>
<context name="%r{_nested" attribute="String">
<DetectChar attribute="String" context="#pop" char="}"/>
<IncludeRules context="%r{_rule"/>
</context>
<context name="%r{_rule" attribute="String">
<DetectChar attribute="String" context="%r{_nested" char="{"/>
<IncludeRules context="RegExSpecial"/>
</context>
<context name="%r[" attribute="String">
<DetectChar attribute="GDL input" context="#pop!RegExMode" char="]" endRegion="GdlInput" />
<IncludeRules context="%r[_rule"/>
</context>
<context name="%r[_nested" attribute="String">
<DetectChar attribute="String" context="#pop" char="]"/>
<IncludeRules context="%r[_rule"/>
</context>
<context name="%r[_rule" attribute="String">
<DetectChar attribute="String" context="%r[_nested" char="["/>
<IncludeRules context="RegExSpecial"/>
</context>
<context name="%r<" attribute="String">
<DetectChar attribute="GDL input" context="#pop!RegExMode" char=">" endRegion="GdlInput" />
<IncludeRules context="%r<_rule"/>
</context>
<context name="%r<_nested" attribute="String">
<DetectChar attribute="String" context="#pop" char=">"/>
<IncludeRules context="%r<_rule"/>
</context>
<context name="%r<_rule" attribute="String">
<DetectChar attribute="String" context="%r<_nested" char="<"/>
<IncludeRules context="RegExSpecial"/>
</context>
<!-- this format doesn't allow nesting. it is terminated by the next occurrence of the
delimiter character
-->
<context name="%r_" attribute="Regular Expression">
<DetectChar attribute="GDL input" context="#pop!RegExMode" char="1" dynamic="true" endRegion="GdlInput" />
<StringDetect attribute="String Char" String="\%1" dynamic="true" />
<IncludeRules context="RegExSpecial"/>
</context>
<!-- shell command specific contexts -->
<context name="%x(" attribute="Command">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char=")" endRegion="GdlInput" />
<IncludeRules context="%x(_rule"/>
</context>
<context name="%x(_nested" attribute="Command">
<DetectChar attribute="Command" context="#pop" char=")"/>
<IncludeRules context="%x(_rule"/>
</context>
<context name="%x(_rule" attribute="Command">
<DetectChar attribute="Command" context="%x(_nested" char="("/>
<IncludeRules context="DQuoteSpecial"/>
</context>
<context name="%x{" attribute="Command">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char="}" endRegion="GdlInput" />
<IncludeRules context="%x{_rule"/>
</context>
<context name="%x{_nested" attribute="Command">
<DetectChar attribute="Command" context="#pop" char="}"/>
<IncludeRules context="%x{_rule"/>
</context>
<context name="%x{_rule" attribute="Command">
<DetectChar attribute="Command" context="%x{_nested" char="{"/>
<IncludeRules context="DQuoteSpecial"/>
</context>
<context name="%x[" attribute="Command">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char="]" endRegion="GdlInput" />
<IncludeRules context="%x[_rule"/>
</context>
<context name="%x[_nested" attribute="Command">
<DetectChar attribute="Command" context="#pop" char="]"/>
<IncludeRules context="%x[_rule"/>
</context>
<context name="%x[_rule" attribute="Command">
<DetectChar attribute="Command" context="%x[_nested" char="["/>
<IncludeRules context="DQuoteSpecial"/>
</context>
<context name="%x<" attribute="Command">
<DetectChar attribute="GDL input" context="#pop#pop!Op1" char=">" endRegion="GdlInput" />
<IncludeRules context="%x<_rule"/>
</context>
<context name="%x<_nested" attribute="Command">
<DetectChar attribute="Command" context="#pop" char=">"/>
<IncludeRules context="%x<_rule"/>
</context>
<context name="%x<_rule" attribute="Command">
<DetectChar attribute="Command" context="%x<_nested" char="<"/>
<IncludeRules context="DQuoteSpecial"/>
</context>
<!-- this format doesn't allow nesting. it is terminated by the next occurrence of the
delimiter character
-->
<context name="%x_" attribute="Command">
<IncludeRules context="%Q_"/>
</context>
<!-- END of General delimited input support -->
<!-- handle data in script -->
<context name="DATA" attribute="Data"/>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsControlFlow"/>
<itemData name="Attribute Definition" defStyleNum="dsOthers"/>
<itemData name="Access Control" defStyleNum="dsAttribute" bold="1"/> <!-- #0000FF -->
<itemData name="Definition" defStyleNum="dsKeyword"/>
<itemData name="Pseudo variable" defStyleNum="dsDecVal"/>
<itemData name="Dec" defStyleNum="dsDecVal"/>
<itemData name="Float" defStyleNum="dsFloat"/>
<itemData name="Octal" defStyleNum="dsBaseN"/>
<itemData name="Hex" defStyleNum="dsBaseN"/>
<itemData name="Bin" defStyleNum="dsBaseN"/>
<itemData name="Number Suffix" defStyleNum="dsBuiltIn"/>
<itemData name="Symbol" defStyleNum="dsWarning" bold="0" underline="0"/> <!-- #D40000 -->
<itemData name="String" defStyleNum="dsString"/>
<itemData name="String Char" defStyleNum="dsSpecialChar" spellChecking="false"/>
<itemData name="Raw String" defStyleNum="dsVerbatimString" /> <!-- #DD4A4A -->
<itemData name="Char Literal" defStyleNum="dsSpecialChar" spellChecking="false"/>
<itemData name="Char" defStyleNum="dsChar"/>
<itemData name="Command" defStyleNum="dsInformation"/> <!-- #AA3000 -->
<itemData name="Message" defStyleNum="dsAttribute" bold="0"/> <!-- #4000A7 -->
<itemData name="Regular Expression" defStyleNum="dsSpecialString" spellChecking="false"/> <!-- #4A5704 -->
<itemData name="Substitution" defStyleNum="dsSpecialChar"/>
<itemData name="Data" defStyleNum="dsNormal"/>
<!-- short for 'general delimited input' -->
<itemData name="GDL input" defStyleNum="dsOthers" />
<itemData name="Default globals" defStyleNum="dsVariable" bold="1"/> <!-- #C00000 -->
<itemData name="Global Variable" defStyleNum="dsVariable"/> <!-- #C00000 -->
<itemData name="Global Constant" defStyleNum="dsConstant" bold="1"/> <!-- #bb1188 -->
<itemData name="Constant" defStyleNum="dsDataType"/>
<itemData name="Constant Value" defStyleNum="dsConstant" bold="0"/> <!-- #bb1188 -->
<itemData name="Kernel methods" defStyleNum="dsFunction" bold="1"/> <!-- #CC0E86 -->
<itemData name="Module mixin methods" defStyleNum="dsFunction" bold="1"/> <!-- #CC0E86 -->
<itemData name="Member" defStyleNum="dsAttribute"/>
<itemData name="Instance Variable" defStyleNum="dsOthers"/>
<itemData name="Class Variable" defStyleNum="dsOthers"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Blockcomment" defStyleNum="dsComment"/>
<itemData name="Here Document" defStyleNum="dsDocumentation"/>
<itemData name="Delimiter" defStyleNum="dsKeyword"/> <!-- #FF9FEC -->
<itemData name="Operator" defStyleNum="dsOperator" bold="1"/> <!-- #FF9FEC -->
<itemData name="Error" defStyleNum="dsError"/>
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="#" position="afterwhitespace"/>
</comments>
<keywords casesensitive="1" weakDeliminator="!?"/>
</general>
</language>
<!-- kate: replace-tabs off; -->
|