MCPcopy Create free account
hub / github.com/arctic-cli/interface / getSyntaxRules

Function getSyntaxRules

packages/arctic/src/cli/cmd/tui/context/theme.tsx:650–1152  ·  view source on GitHub ↗
(theme: Theme)

Source from the content-addressed store, hash-verified

648}
649
650function getSyntaxRules(theme: Theme) {
651 return [
652 {
653 scope: ["default"],
654 style: {
655 foreground: theme.text,
656 },
657 },
658 {
659 scope: ["prompt"],
660 style: {
661 foreground: theme.accent,
662 },
663 },
664 {
665 scope: ["extmark.file"],
666 style: {
667 foreground: theme.warning,
668 bold: true,
669 },
670 },
671 {
672 scope: ["extmark.agent"],
673 style: {
674 foreground: theme.secondary,
675 bold: true,
676 },
677 },
678 {
679 scope: ["extmark.paste"],
680 style: {
681 foreground: theme.warning,
682 background: RGBA.fromInts(0, 0, 0, 0),
683 bold: true,
684 },
685 },
686 {
687 scope: ["comment"],
688 style: {
689 foreground: theme.syntaxComment,
690 italic: true,
691 },
692 },
693 {
694 scope: ["comment.documentation"],
695 style: {
696 foreground: theme.syntaxComment,
697 italic: true,
698 },
699 },
700 {
701 scope: ["string", "symbol"],
702 style: {
703 foreground: theme.syntaxString,
704 },
705 },
706 {
707 scope: ["number", "boolean"],

Callers 2

generateSyntaxFunction · 0.85
generateSubtleSyntaxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected