From 71c33f5c053294d4aa6d3abb4bd41d723144e732 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Thu, 3 Sep 2020 22:47:48 -0400 Subject: Add editor highlighting for @ --- editors/kak/autoload/filetype/bqn.kak | 1 + editors/vim/syntax/bqn.vim | 2 ++ 2 files changed, 3 insertions(+) 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 "(?≠=≤≥≡≢⊣⊢⥊∾≍↑↓↕⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!⍕⍎]" 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 -- cgit v1.2.3