aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-08-27 10:38:18 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-08-27 10:39:52 -0400
commit2b49371548a0377c93187f85642ed951f0bcf546 (patch)
tree138ddb300d04832efbf965038c9a5c373b658b10
parentd9a037d96dfec21ad83f29658c185e37657b633a (diff)
Fix Kakoune highlighting for ∞ and ¯∞
-rw-r--r--editors/kak/autoload/filetype/bqn.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/kak/autoload/filetype/bqn.kak b/editors/kak/autoload/filetype/bqn.kak
index 03225a75..6882a34f 100644
--- a/editors/kak/autoload/filetype/bqn.kak
+++ b/editors/kak/autoload/filetype/bqn.kak
@@ -65,7 +65,7 @@ add-highlighter shared/bqn/code/ regex "[()]" 0:bright-black
add-highlighter shared/bqn/code/ regex "[:;]" 0:bright-black
add-highlighter shared/bqn/code/ regex "[←↩→]" 0:normal
add-highlighter shared/bqn/code/ regex "·" 0:value
-add-highlighter shared/bqn/code/ regex "¯?\b((\d+\.)?\d+(e¯?\d+)?|π|∞)(i¯?((\d+\.)?\d+(e¯?\d+)?|π|∞))?" 0:value
+add-highlighter shared/bqn/code/ regex "(?<![A-Z_a-z0-9π∞¯])¯?((\d+\.)?\d+(e¯?\d+)?|π|∞)(i¯?((\d+\.)?\d+(e¯?\d+)?|π|∞))?" 0:value
add-highlighter shared/bqn/code/ regex "[𝕗𝕘𝕨𝕩𝕤]" 0:normal
add-highlighter shared/bqn/code/ regex "•|•?\b[a-z][A-Z_a-z0-9π∞¯]*|𝕣" 0:normal
add-highlighter shared/bqn/code/ regex "[𝔽𝔾𝕎𝕏𝕊+\-×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍↑↓↕⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!⍕⍎]" 0:green