From 081237c27b912723438f498ffaa53a079a597b1b Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Thu, 22 Apr 2021 13:53:11 -0400 Subject: Move glyph list to src/glyphs.bqn --- md.bqn | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'md.bqn') diff --git a/md.bqn b/md.bqn index dd24f240..bc0a65d7 100644 --- a/md.bqn +++ b/md.bqn @@ -542,12 +542,13 @@ idChars ← ⟨ # (include will be all 1s). GetHighlights ← { # Characters used by BQN, and the HTML class they are associated with. + func‿mod1‿mod2 ← •Import "src/glyphs.bqn" classes‿chars ← <˘ ⍉ ∘‿2⥊⟨ 0 , " "∾@+9‿10 # Should never be highlighted "Value" , ¯1⊏˘5‿2⥊"𝕨𝕩𝕗𝕘𝕤"# Hack around UTF-16 - "Function" , "+-×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!"∾¯1⊏˘5‿2⥊"𝕎𝕏𝔽𝔾𝕊" - "Modifier" , "˙˜˘¨⌜⁼´˝`" - "Modifier2" , "∘○⊸⟜⌾⊘◶⎉⚇⍟⎊" + "Function" , func∾¯1⊏˘5‿2⥊"𝕎𝕏𝔽𝔾𝕊" + "Modifier" , mod1 + "Modifier2" , mod2 "Number" , ∾idChars # Will be classified among ↑↑ later "Gets" , "←⇐↩→" "Paren" , "()" -- cgit v1.2.3