Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/d.xml
Show First 20 Lines • Show All 308 Lines • ▼ Show 20 Line(s) | 105 | <highlighting> | |||
---|---|---|---|---|---|
309 | </list> | 309 | </list> | ||
310 | <list name="ltypes"> | 310 | <list name="ltypes"> | ||
311 | <item>C</item> | 311 | <item>C</item> | ||
312 | <!-- <item>C++</item> --><!-- is handled specially in Linkage rule --> | 312 | <!-- <item>C++</item> --><!-- is handled specially in Linkage rule --> | ||
313 | <item>D</item> | 313 | <item>D</item> | ||
314 | <item>Windows</item> | 314 | <item>Windows</item> | ||
315 | <item>Pascal</item> | 315 | <item>Pascal</item> | ||
316 | <item>System</item> | 316 | <item>System</item> | ||
317 | <!-- <item>Objective-C</item> --><!-- is handled specially in Linkage rule --> | ||||
317 | </list> | 318 | </list> | ||
318 | 319 | | |||
319 | <list name="ptypes"> | 320 | <list name="ptypes"> | ||
320 | <item>msg</item> | 321 | <item>inline</item> | ||
321 | <item>lib</item> | 322 | <item>lib</item> | ||
323 | <item>linkerDirective</item> | ||||
324 | <item>mangle</item> | ||||
325 | <item>msg</item> | ||||
326 | <item>startaddress</item> | ||||
322 | </list> | 327 | </list> | ||
323 | 328 | | |||
324 | <list name="scope_keywords"> | 329 | <list name="scope_keywords"> | ||
325 | <item>exit</item> | 330 | <item>exit</item> | ||
326 | <item>success</item> | 331 | <item>success</item> | ||
327 | <item>failure</item> | 332 | <item>failure</item> | ||
328 | </list> | 333 | </list> | ||
329 | 334 | | |||
▲ Show 20 Lines • Show All 179 Lines • ▼ Show 20 Line(s) | 382 | <contexts> | |||
509 | 514 | | |||
510 | <context name="Linkage" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop"> | 515 | <context name="Linkage" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop"> | ||
511 | <DetectSpaces/> | 516 | <DetectSpaces/> | ||
512 | <DetectChar attribute="Normal Text" context="Linkage2" char="("/> | 517 | <DetectChar attribute="Normal Text" context="Linkage2" char="("/> | ||
513 | <IncludeRules context="CommentRules" /> | 518 | <IncludeRules context="CommentRules" /> | ||
514 | </context> | 519 | </context> | ||
515 | <context name="Linkage2" attribute="Normal Text" lineEndContext="#stay"> | 520 | <context name="Linkage2" attribute="Normal Text" lineEndContext="#stay"> | ||
516 | <DetectSpaces/> | 521 | <DetectSpaces/> | ||
517 | <StringDetect attribute="Linkage Type" context="#pop#pop" String="C++"/> | 522 | <StringDetect attribute="Linkage Type" context="Linkage-C++" String="C++"/> | ||
523 | <StringDetect attribute="Linkage Type" context="#stay" String="Objective-C"/> | ||||
518 | <keyword attribute="Linkage Type" context="#stay" String="ltypes"/> | 524 | <keyword attribute="Linkage Type" context="#stay" String="ltypes"/> | ||
519 | <IncludeRules context="CommentRules" /> | 525 | <IncludeRules context="CommentRules" /> | ||
520 | <!-- Fall-through rules, highlighting errors: --> | 526 | <!-- Fall-through rules, highlighting errors: --> | ||
521 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | 527 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | ||
522 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | 528 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | ||
523 | </context> | 529 | </context> | ||
530 | <context name="Linkage-C++" attribute="Normal Text" lineEndContext="#stay"> | ||||
531 | <DetectSpaces/> | ||||
532 | <IncludeRules context="CommentRules" /> | ||||
533 | <DetectChar char="," attribute="Normal Text" context="Linkage-C++2"/> | ||||
534 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop#pop"/> | ||||
535 | <RegExpr String="." attribute="Error" context="#stay"/> | ||||
536 | </context> | ||||
537 | <context name="Linkage-C++2" attribute="Normal Text" lineEndContext="#stay"> | ||||
538 | <DetectSpaces/> | ||||
539 | <IncludeRules context="CommentRules" /> | ||||
540 | <DetectIdentifier attribute="Normal Text" context="#stay"/> | ||||
541 | <DetectChar char="." attribute="Normal Text" context="#stay"/> | ||||
542 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop#pop"/> | ||||
543 | <RegExpr String="." attribute="Error" context="#stay"/> | ||||
544 | </context> | ||||
524 | 545 | | |||
525 | <context name="Version" attribute="Normal Text" lineEndContext="#stay"> | 546 | <context name="Version" attribute="Normal Text" lineEndContext="#stay"> | ||
526 | <DetectSpaces/> | 547 | <DetectSpaces/> | ||
527 | <DetectChar attribute="Normal Text" context="Version2" char="="/> | 548 | <DetectChar attribute="Normal Text" context="VersionSpec" char="="/> | ||
528 | <DetectChar attribute="Normal Text" context="Version2" char="("/> | 549 | <DetectChar attribute="Normal Text" context="VersionCond" char="("/> | ||
529 | <IncludeRules context="CommentRules" /> | 550 | <IncludeRules context="CommentRules" /> | ||
530 | <!-- Fall-through rules, highlighting errors: --> | 551 | <!-- Fall-through rules, highlighting errors: --> | ||
531 | <RegExpr String="[^\s\n]+" attribute="Error" context="#pop"/> | 552 | <RegExpr String="[^\s\n]+" attribute="Error" context="#pop"/> | ||
532 | </context> | 553 | </context> | ||
533 | <context name="Version2" attribute="Normal Text" lineEndContext="#stay"> | 554 | <context name="VersionSpec" attribute="Normal Text" lineEndContext="#stay"> | ||
555 | <DetectSpaces/> | ||||
556 | <DetectIdentifier attribute="Normal Text" context="#stay"/> | ||||
557 | <RegExpr attribute="Integer" context="#stay" String="\d+[\d_]*(L[uU]?|[uU]L?)?"/> | ||||
558 | <DetectChar char=";" attribute="Normal Text" context="#pop#pop"/> | ||||
559 | <RegExpr String="." attribute="Error" context="#pop#pop"/> | ||||
560 | </context> | ||||
561 | <context name="VersionCond" attribute="Normal Text" lineEndContext="#stay"> | ||||
534 | <DetectSpaces/> | 562 | <DetectSpaces/> | ||
535 | <keyword attribute="Version Type" context="#stay" String="vtypes"/> | 563 | <keyword attribute="Version Type" context="#stay" String="vtypes"/> | ||
536 | <DetectIdentifier attribute="Normal Text" context="#stay"/> | 564 | <DetectIdentifier attribute="Normal Text" context="#stay"/> | ||
537 | <RegExpr attribute="Integer" context="#stay" String="\d+[\d_]*(L[uU]?|[uU]L?)?"/> | 565 | <RegExpr attribute="Integer" context="#stay" String="\d+[\d_]*(L[uU]?|[uU]L?)?"/> | ||
538 | <IncludeRules context="CommentRules" /> | 566 | <IncludeRules context="CommentRules" /> | ||
539 | <!-- Fall-through rules, highlighting errors: --> | 567 | <!-- Fall-through rules, highlighting errors: --> | ||
540 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | 568 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | ||
541 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | 569 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | ||
Show All 17 Lines | 586 | <context name="Pragma" attribute="Pragma" lineEndContext="#stay"> | |||
559 | <DetectSpaces/> | 587 | <DetectSpaces/> | ||
560 | <DetectChar attribute="Normal Text" context="Pragma2" char="("/> | 588 | <DetectChar attribute="Normal Text" context="Pragma2" char="("/> | ||
561 | <IncludeRules context="CommentRules" /> | 589 | <IncludeRules context="CommentRules" /> | ||
562 | <!-- Fall-through rules, highlighting errors: --> | 590 | <!-- Fall-through rules, highlighting errors: --> | ||
563 | <RegExpr String="[^\s\n]+" attribute="Error" context="#pop"/> | 591 | <RegExpr String="[^\s\n]+" attribute="Error" context="#pop"/> | ||
564 | </context> | 592 | </context> | ||
565 | <context name="Pragma2" attribute="Pragma" lineEndContext="#stay"> | 593 | <context name="Pragma2" attribute="Pragma" lineEndContext="#stay"> | ||
566 | <DetectSpaces/> | 594 | <DetectSpaces/> | ||
567 | <keyword attribute="Version Type" context="#stay" String="ptypes"/> | 595 | <keyword attribute="Version Type" context="Pragma3" String="ptypes"/> | ||
568 | <DetectIdentifier attribute="Normal Text" context="#stay"/> | 596 | <DetectIdentifier attribute="Normal Text" context="Pragma3"/> | ||
569 | <IncludeRules context="CommentRules" /> | 597 | <IncludeRules context="CommentRules" /> | ||
570 | <!-- Fall-through rules, highlighting errors: --> | 598 | <!-- Fall-through rules, highlighting errors: --> | ||
571 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | 599 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | ||
572 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | 600 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | ||
573 | </context> | 601 | </context> | ||
602 | <context name="Pragma3" attribute="Pragma" lineEndContext="#stay"> | ||||
603 | <DetectSpaces/> | ||||
604 | <DetectChar char="," attribute="Normal Text" context="Pragma4"/> | ||||
605 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop#pop"/> | ||||
606 | <RegExpr String="." attribute="Error" context="#pop#pop#pop"/> | ||||
607 | </context> | ||||
608 | <context name="Pragma4" attribute="Pragma" lineEndContext="#stay"> | ||||
609 | <DetectChar char="(" attribute="Normal Text" context="Parenthetical"/> | ||||
610 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop#pop#pop"/> | ||||
611 | <IncludeRules context="normal" /> | ||||
612 | </context> | ||||
613 | <context name="Parenthetical" attribute="Normal Text"> | ||||
614 | <DetectChar char="(" attribute="Normal Text" context="Parenthetical"/> | ||||
615 | <DetectChar char=")" attribute="Normal Text" context="#pop"/> | ||||
616 | <IncludeRules context="normal" /> | ||||
617 | </context> | ||||
574 | 618 | | |||
575 | <!-- Strings --> | 619 | <!-- Strings --> | ||
576 | <!-- r"..." --> | 620 | <!-- r"..." --> | ||
577 | <context name="RawString" attribute="RawString" lineEndContext="#stay"> | 621 | <context name="RawString" attribute="RawString" lineEndContext="#stay"> | ||
578 | <DetectChar attribute="RawString" context="#pop" char="""/> | 622 | <DetectChar attribute="RawString" context="#pop" char="""/> | ||
579 | </context> | 623 | </context> | ||
580 | <!-- `...` --> | 624 | <!-- `...` --> | ||
581 | <context name="BQString" attribute="BQString" lineEndContext="#stay"> | 625 | <context name="BQString" attribute="BQString" lineEndContext="#stay"> | ||
▲ Show 20 Lines • Show All 241 Lines • Show Last 20 Lines |