From 6e1e83ff7b96c62e480729189bc27a6510f032dd Mon Sep 17 00:00:00 2001 From: rhiannon morris Date: Tue, 12 Jul 2022 21:19:03 +0200 Subject: [PATCH] beluga syntax --- style/page.css | 22 +++++---- syntax/beluga.xml | 123 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 135 insertions(+), 10 deletions(-) create mode 100644 syntax/beluga.xml diff --git a/style/page.css b/style/page.css index 712ffb4..d04bd7b 100644 --- a/style/page.css +++ b/style/page.css @@ -393,13 +393,15 @@ aside { } -/* syntax highlighting for maude - * [todo] does this also look ok for other langs */ -.maude .pp { color: hsl(343deg, 100%, 40%); font-weight: 500; } -.maude .dt { color: hsl(173deg, 100%, 24%); font-weight: 500; } -.maude .fu { color: hsl(34deg, 100%, 30%); font-weight: 500; } -.maude .va { color: hsl(203deg, 100%, 30%); font-weight: 500; } -.maude .cf { color: hsl(276deg, 75%, 35%); font-weight: 500; } -.maude .op { color: hsl(220deg, 10%, 28%); } -.maude .co { color: hsl(221deg, 10%, 39%); font-style: italic; } -.maude :is(.st, .fl, .dv, .sc) { color: hsl(143deg, 100%, 20%); } +.kw { color: hsl(300deg, 60%, 30%); } +.pp { color: hsl(343deg, 100%, 40%); font-weight: 500; } +.dt { color: hsl(173deg, 100%, 24%); font-weight: 500; } +.fu { color: hsl(34deg, 100%, 30%); font-weight: 500; } +.va { color: hsl(203deg, 100%, 30%); font-weight: 500; } +.cf { color: hsl(276deg, 75%, 35%); font-weight: 500; } +.op { color: hsl(220deg, 40%, 33%); } +.co { color: hsl(221deg, 10%, 39%); font-style: italic; } +.bu { color: hsl(100deg, 85%, 30%); font-weight: 500; } +:is(.st, .fl, .dv, .sc) { color: hsl(143deg, 100%, 20%); } +.wa { color: hsl(350deg, 80%, 25%); text-decoration: wavy 1.5px underline; } +.al { color: hsl(350deg, 80%, 25%); } diff --git a/syntax/beluga.xml b/syntax/beluga.xml new file mode 100644 index 0000000..fe93788 --- /dev/null +++ b/syntax/beluga.xml @@ -0,0 +1,123 @@ + + + +]> + + + + + LF + inductive coinductive + stratified typedef + schema + proof rec and + + + type ctype + + + module struct end + + + + fn fun mlam + case of impossible + let in + + + some block + + total + trust + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +