From 5bf4db5fd2f8878ada425de063d42aafb70b8fe8 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Fri, 26 Nov 2021 10:27:22 -0500 Subject: Only import glyphs.bqn once --- md.bqn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'md.bqn') diff --git a/md.bqn b/md.bqn index 746ea83a..16791872 100644 --- a/md.bqn +++ b/md.bqn @@ -543,9 +543,10 @@ idChars ← ⟨ # Return BQN highlights for an string 𝕩, as an ⟨add,pos⟩ list for Modify # (include will be all 1s). +glyphs ← •Import "src/glyphs.bqn" GetHighlights ← { # Characters used by BQN, and the HTML class they are associated with. - func‿mod1‿mod2 ← •Import "src/glyphs.bqn" + func‿mod1‿mod2 ← glyphs classes‿chars ← <˘ ⍉ ∘‿2⥊⟨ 0 , " "∾@+9‿10 # Should never be highlighted "Value" , "𝕨𝕩𝕗𝕘𝕤" -- cgit v1.2.3