diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-11-14 21:47:23 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-11-14 21:47:23 -0500 |
| commit | 26927eeb81f13aa4cefb80dacda6e5b35e4d6abb (patch) | |
| tree | 8e174e7f8826d9f7172867e0f0e12af98cdccbc5 | |
| parent | bdc9878f8b1d120aeb2e173e9138ab26da3ca938 (diff) | |
Fix syntax highlighting when # appears in a string
| -rw-r--r-- | md.bqn | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -562,8 +562,8 @@ GetHighlights ← { # Turn non-whitespace classes into ⟨open,close⟩ html tags. classTag ← ""‿"" ∾ > {⟨"<span class='"∾𝕩∾"'>","</span>"⟩}¨ 1↓classes - # Find each character's group, sending unknowns to 1. - col ← (≠chars) (⊢--⟜1×=) chars FindGroup 𝕩 + # Find each character's group, sending unknowns to 1 and # to 0. + col ← (1-˜≠chars) (⊢-⊣×≤) chars FindGroup 𝕩 # Locate comments and strings. c ← 𝕩='#' |
