Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/d.xml
Show First 20 Lines • Show All 506 Lines • ▼ Show 20 Line(s) | 374 | <contexts> | |||
---|---|---|---|---|---|
507 | <context name="Linkage" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop"> | 507 | <context name="Linkage" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop"> | ||
508 | <DetectSpaces/> | 508 | <DetectSpaces/> | ||
509 | <DetectChar attribute="Normal Text" context="Linkage2" char="("/> | 509 | <DetectChar attribute="Normal Text" context="Linkage2" char="("/> | ||
510 | <IncludeRules context="CommentRules" /> | 510 | <IncludeRules context="CommentRules" /> | ||
511 | </context> | 511 | </context> | ||
512 | <context name="Linkage2" attribute="Normal Text" lineEndContext="#stay"> | 512 | <context name="Linkage2" attribute="Normal Text" lineEndContext="#stay"> | ||
513 | <DetectSpaces/> | 513 | <DetectSpaces/> | ||
514 | <StringDetect attribute="Linkage Type" context="#pop#pop" String="C++"/> | 514 | <StringDetect attribute="Linkage Type" context="#pop#pop" String="C++"/> | ||
515 | <keyword attribute="Linkage Type" context="#pop#pop" String="ltypes"/> | 515 | <keyword attribute="Linkage Type" context="#stay" String="ltypes"/> | ||
516 | <IncludeRules context="CommentRules" /> | 516 | <IncludeRules context="CommentRules" /> | ||
517 | <!-- Fall-through rules, highlighting errors: --> | 517 | <!-- Fall-through rules, highlighting errors: --> | ||
518 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | 518 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | ||
519 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | 519 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | ||
520 | </context> | 520 | </context> | ||
521 | 521 | | |||
522 | <context name="Version" attribute="Normal Text" lineEndContext="#stay"> | 522 | <context name="Version" attribute="Normal Text" lineEndContext="#stay"> | ||
523 | <DetectSpaces/> | 523 | <DetectSpaces/> | ||
524 | <DetectChar attribute="Normal Text" context="Version2" char="="/> | 524 | <DetectChar attribute="Normal Text" context="Version2" char="="/> | ||
525 | <DetectChar attribute="Normal Text" context="Version2" char="("/> | 525 | <DetectChar attribute="Normal Text" context="Version2" char="("/> | ||
526 | <IncludeRules context="CommentRules" /> | 526 | <IncludeRules context="CommentRules" /> | ||
527 | <!-- Fall-through rules, highlighting errors: --> | 527 | <!-- Fall-through rules, highlighting errors: --> | ||
528 | <RegExpr String="[^\s\n]+" attribute="Error" context="#pop"/> | 528 | <RegExpr String="[^\s\n]+" attribute="Error" context="#pop"/> | ||
529 | </context> | 529 | </context> | ||
530 | <context name="Version2" attribute="Normal Text" lineEndContext="#stay"> | 530 | <context name="Version2" attribute="Normal Text" lineEndContext="#stay"> | ||
531 | <DetectSpaces/> | 531 | <DetectSpaces/> | ||
532 | <keyword attribute="Version Type" context="#pop#pop" String="vtypes"/> | 532 | <keyword attribute="Version Type" context="#stay" String="vtypes"/> | ||
533 | <DetectIdentifier attribute="Normal Text" context="#pop#pop"/> | 533 | <DetectIdentifier attribute="Normal Text" context="#stay"/> | ||
534 | <RegExpr attribute="Integer" context="#pop#pop" String="\d+[\d_]*(L[uU]?|[uU]L?)?"/> | 534 | <RegExpr attribute="Integer" context="#stay" String="\d+[\d_]*(L[uU]?|[uU]L?)?"/> | ||
535 | <IncludeRules context="CommentRules" /> | 535 | <IncludeRules context="CommentRules" /> | ||
536 | <!-- Fall-through rules, highlighting errors: --> | 536 | <!-- Fall-through rules, highlighting errors: --> | ||
537 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | 537 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | ||
538 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | 538 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | ||
539 | </context> | 539 | </context> | ||
540 | 540 | | |||
541 | <context name="Scope" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop"> | 541 | <context name="Scope" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop"> | ||
542 | <DetectSpaces/> | 542 | <DetectSpaces/> | ||
543 | <DetectChar attribute="Normal Text" context="Scope2" char="("/> | 543 | <DetectChar attribute="Normal Text" context="Scope2" char="("/> | ||
544 | <IncludeRules context="CommentRules" /> | 544 | <IncludeRules context="CommentRules" /> | ||
545 | </context> | 545 | </context> | ||
546 | <context name="Scope2" attribute="Normal Text" lineEndContext="#stay"> | 546 | <context name="Scope2" attribute="Normal Text" lineEndContext="#stay"> | ||
547 | <DetectSpaces/> | 547 | <DetectSpaces/> | ||
548 | <keyword String="scope_keywords" attribute="Expression" context="#pop#pop"/> | 548 | <keyword String="scope_keywords" attribute="Expression" context="#stay"/> | ||
549 | <IncludeRules context="CommentRules" /> | 549 | <IncludeRules context="CommentRules" /> | ||
550 | <!-- Fall-through rules, highlighting errors: --> | 550 | <!-- Fall-through rules, highlighting errors: --> | ||
551 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | 551 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | ||
552 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | 552 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | ||
553 | </context> | 553 | </context> | ||
554 | 554 | | |||
555 | <context name="Pragma" attribute="Pragma" lineEndContext="#stay"> | 555 | <context name="Pragma" attribute="Pragma" lineEndContext="#stay"> | ||
556 | <DetectSpaces/> | 556 | <DetectSpaces/> | ||
557 | <DetectChar attribute="Normal Text" context="Pragma2" char="("/> | 557 | <DetectChar attribute="Normal Text" context="Pragma2" char="("/> | ||
558 | <IncludeRules context="CommentRules" /> | 558 | <IncludeRules context="CommentRules" /> | ||
559 | <!-- Fall-through rules, highlighting errors: --> | 559 | <!-- Fall-through rules, highlighting errors: --> | ||
560 | <RegExpr String="[^\s\n]+" attribute="Error" context="#pop"/> | 560 | <RegExpr String="[^\s\n]+" attribute="Error" context="#pop"/> | ||
561 | </context> | 561 | </context> | ||
562 | <context name="Pragma2" attribute="Pragma" lineEndContext="#stay"> | 562 | <context name="Pragma2" attribute="Pragma" lineEndContext="#stay"> | ||
563 | <DetectSpaces/> | 563 | <DetectSpaces/> | ||
564 | <keyword attribute="Version Type" context="#pop#pop" String="ptypes"/> | 564 | <keyword attribute="Version Type" context="#stay" String="ptypes"/> | ||
565 | <DetectIdentifier attribute="Normal Text" context="#pop#pop"/> | 565 | <DetectIdentifier attribute="Normal Text" context="#stay"/> | ||
566 | <IncludeRules context="CommentRules" /> | 566 | <IncludeRules context="CommentRules" /> | ||
567 | <!-- Fall-through rules, highlighting errors: --> | 567 | <!-- Fall-through rules, highlighting errors: --> | ||
568 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | 568 | <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/> | ||
569 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | 569 | <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/> | ||
570 | </context> | 570 | </context> | ||
571 | 571 | | |||
572 | <!-- Strings --> | 572 | <!-- Strings --> | ||
573 | <!-- r"..." --> | 573 | <!-- r"..." --> | ||
▲ Show 20 Lines • Show All 246 Lines • Show Last 20 Lines |