aboutsummaryrefslogtreecommitdiff
path: root/md.bqn
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-26 10:27:22 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-26 10:27:22 -0500
commit5bf4db5fd2f8878ada425de063d42aafb70b8fe8 (patch)
tree7f4c60c929d9e2576455a6baccbbec30295d3ed3 /md.bqn
parent360309d0472c992c0199aa83caa494accbd21586 (diff)
Only import glyphs.bqn once
Diffstat (limited to 'md.bqn')
-rw-r--r--md.bqn3
1 files changed, 2 insertions, 1 deletions
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" , "𝕨𝕩𝕗𝕘𝕤"