Skip to content

Instantly share code, notes, and snippets.

@marijnh
Last active March 22, 2023 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marijnh/b019eb361466477d78b1bebadd7610df to your computer and use it in GitHub Desktop.
Save marijnh/b019eb361466477d78b1bebadd7610df to your computer and use it in GitHub Desktop.
TTCN theme for CM6
import {HighlightStyle, syntaxHighlighting} from "@codemirror/language"
import {tags as t} from "@lezer/highlight"
export const ttcnHighlightStyle = HighlightStyle.define([
{tag: t.quote,
color: "#090"},
{tag: t.deleted,
color: "#d44"},
{tag: t.inserted,
color: "#292"},
{tag: t.strong,
fontWeight: "bold"},
{tag: t.emphasis,
fontStyle: "italic"},
{tag: t.link,
color: "#00c",
textDecoration: "underline"},
{tag: t.strikethrough,
textDecoration: "line-through"},
{tag: t.heading,
fontWeight: "bold",
color: "#00f"},
{tag: t.atom,
color: "#219"},
{tag: t.attributeName,
color: "#00c"},
{tag: t.comment,
color: "#333"},
{tag: t.definition(t.variableName),
color: "#00f"},
{tag: t.invalid,
color: "#f00"},
{tag: t.keyword,
fontWeight: "bold"},
{tag: t.meta,
color: "#555"},
{tag: t.string,
color: "#060"},
{tag: [t.special(t.string), t.escape, t.character],
color: "#f50"},
{tag: t.tagName,
color: "#170"},
{tag: t.variableName,
color: "#05a"},
{tag: [t.function(t.variableName), t.special(t.variableName), t.local(t.variableName), t.typeName],
color: "#8b2252"},
{tag: [t.self, t.labelName],
color: "#085"}
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment