aboutsummaryrefslogtreecommitdiff
path: root/md.bqn
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-22 13:53:11 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-22 13:53:11 -0400
commit081237c27b912723438f498ffaa53a079a597b1b (patch)
tree20ea9bb06292c230670efca667577ee029ba69b0 /md.bqn
parent8279bb3326c49305444e0cbddac13b09113b68fc (diff)
Move glyph list to src/glyphs.bqn
Diffstat (limited to 'md.bqn')
-rw-r--r--md.bqn7
1 files changed, 4 insertions, 3 deletions
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" , "()"