aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-03 22:47:48 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-03 22:47:48 -0400
commit71c33f5c053294d4aa6d3abb4bd41d723144e732 (patch)
tree3a2dfc1f0c5e61fca98e1f53a7c52a1a98d8c373 /editors
parent0ed161fa6b0aa5c24206a2b989a169340fd75e83 (diff)
Add editor highlighting for @
Diffstat (limited to 'editors')
-rw-r--r--editors/kak/autoload/filetype/bqn.kak1
-rw-r--r--editors/vim/syntax/bqn.vim2
2 files changed, 3 insertions, 0 deletions
diff --git a/editors/kak/autoload/filetype/bqn.kak b/editors/kak/autoload/filetype/bqn.kak
index ea53c812..f9351c10 100644
--- a/editors/kak/autoload/filetype/bqn.kak
+++ b/editors/kak/autoload/filetype/bqn.kak
@@ -65,6 +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 "@" 0:string
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
diff --git a/editors/vim/syntax/bqn.vim b/editors/vim/syntax/bqn.vim
index b1255028..466d2213 100644
--- a/editors/vim/syntax/bqn.vim
+++ b/editors/vim/syntax/bqn.vim
@@ -15,6 +15,7 @@ syn match bqn2md "[∘○⊸⟜⌾⊘◶⎉⚇⍟⎊]"
syn match bqnfun "[𝔽𝔾𝕎𝕏𝕊+\-×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍↑↓↕⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!⍕⍎]"
syn match bqnsub "[𝕗𝕘𝕨𝕩𝕤]"
syn match bqnnot "·"
+syn match bqnnul "@"
syn match bqnnum "\v\c¯?((\d+\.)?\d+(e¯?\d+)?|π|∞)(i¯?((\d+\.)?\d+(e¯?\d+)?|π|∞))?"
syn match bqnsid "\(•\|•\?[a-z][A-Z_a-z0-9π∞¯]*\|𝕣\)"
syn match bqnfid "•\?[A-Z][A-Z_a-z0-9π∞¯]*"
@@ -34,6 +35,7 @@ hi link bqnlst preproc
hi link bqnsep preproc
hi link bqnarw normal
hi link bqnchr string
+hi link bqnnul string
hi link bqnstr string
hi link bqnquo specialchar
hi link bqnnum number