aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-13 15:35:00 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-13 15:35:00 -0400
commiteac14c44aa4c9654332b18ff35e40b94c2cf0e5e (patch)
treebaf7979163c93b2f33edbd575fc15974abafe556 /editors
parentd784a9cfb449b4dd9878713f6eb12a814142765f (diff)
Editor support for «»
Diffstat (limited to 'editors')
-rw-r--r--editors/kak/autoload/filetype/bqn.kak4
-rw-r--r--editors/vim/autoload/bqn.txt2
-rw-r--r--editors/vim/keymap/bqn.vim2
-rw-r--r--editors/vim/syntax/bqn.vim2
4 files changed, 6 insertions, 4 deletions
diff --git a/editors/kak/autoload/filetype/bqn.kak b/editors/kak/autoload/filetype/bqn.kak
index f9351c10..8ec3eab7 100644
--- a/editors/kak/autoload/filetype/bqn.kak
+++ b/editors/kak/autoload/filetype/bqn.kak
@@ -26,7 +26,7 @@ hook global WinSetOption filetype=bqn %¹
b='˜˘¨⁼⌜´˝7∞¯•×' ;b+='¬⎉⚇⍟◶⊘⎊⍎⍕⟨⟩√⋆'
b+='⌽𝕨∊↑∧y⊔⊏⊐π←→';b+='↙𝕎⍷𝕣⍋YU⊑⊒⍳⊣⊢'
- b+='⍉𝕤↕𝕗𝕘⊸∘○⟜⋄\' ;b+='↖𝕊D𝔽𝔾HJ⌾L·˙|'
+ b+='⍉𝕤↕𝕗𝕘⊸∘○⟜⋄\' ;b+='↖𝕊D𝔽𝔾«J⌾»·˙|'
b+='⥊𝕩↓∨⌊n≡∾≍≠' ;b+='Z𝕏C⍒⌈N≢≤≥?'
for (( i=0; i<${#a}; i++ )); do
@@ -69,7 +69,7 @@ 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
-add-highlighter shared/bqn/code/ regex "[𝔽𝔾𝕎𝕏𝕊+\-×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍↑↓↕⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!⍕⍎]" 0:green
+add-highlighter shared/bqn/code/ regex "[𝔽𝔾𝕎𝕏𝕊+\-×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!⍕⍎]" 0:green
add-highlighter shared/bqn/code/ regex "•?\b[A-Z][A-Z_a-z0-9π∞¯]*" 0:green
add-highlighter shared/bqn/code/ regex "[˙˜˘¨⌜⁼´˝`]" 0:magenta
add-highlighter shared/bqn/code/ regex "•?\b_[A-Za-z][A-Z_a-z0-9π∞¯]*|_𝕣" 0:magenta
diff --git a/editors/vim/autoload/bqn.txt b/editors/vim/autoload/bqn.txt
index 785bc281..1e63235b 100644
--- a/editors/vim/autoload/bqn.txt
+++ b/editors/vim/autoload/bqn.txt
@@ -57,6 +57,8 @@
↑ Prefixes ; Take
↓ Suffixes ; Drop
↕ Range ; Windows
+« Shift Before
+» Shift After
⌽ Reverse ; Rotate
⍉ Transpose ; Reorder axes
/ Indices ; Replicate
diff --git a/editors/vim/keymap/bqn.vim b/editors/vim/keymap/bqn.vim
index a8eb29b7..7a08aaba 100644
--- a/editors/vim/keymap/bqn.vim
+++ b/editors/vim/keymap/bqn.vim
@@ -11,7 +11,7 @@ let a.='zxcvbnm,./ ZXCVBNM<>? '
let b ='˜˘¨⁼⌜´˝7∞¯•÷× ¬⎉⚇⍟◶⊘⎊⍎⍕⟨⟩√⋆'
let b.='⌽𝕨∊↑∧y⊔⊏⊐π←→ ↙𝕎⍷𝕣⍋YU⊑⊒⍳⊣⊢ '
-let b.='⍉𝕤↕𝕗𝕘⊸∘○⟜⋄↩\ ↖𝕊D𝔽𝔾HJ⌾L·˙| '
+let b.='⍉𝕤↕𝕗𝕘⊸∘○⟜⋄↩\ ↖𝕊D𝔽𝔾«J⌾»·˙| '
let b.='⥊𝕩↓∨⌊n≡∾≍≠ Z𝕏C⍒⌈N≢≤≥? '
let[a,b]=map([a,b],{i,x->split(x,'\zs *')})
diff --git a/editors/vim/syntax/bqn.vim b/editors/vim/syntax/bqn.vim
index 466d2213..b75bbde8 100644
--- a/editors/vim/syntax/bqn.vim
+++ b/editors/vim/syntax/bqn.vim
@@ -12,7 +12,7 @@ syn match bqnarw "[←↩→]"
syn match bqnchr "'.'"
syn match bqn1md "[˙˜˘¨⌜⁼´˝`]"
syn match bqn2md "[∘○⊸⟜⌾⊘◶⎉⚇⍟⎊]"
-syn match bqnfun "[𝔽𝔾𝕎𝕏𝕊+\-×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍↑↓↕⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!⍕⍎]"
+syn match bqnfun "[𝔽𝔾𝕎𝕏𝕊+\-×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!⍕⍎]"
syn match bqnsub "[𝕗𝕘𝕨𝕩𝕤]"
syn match bqnnot "·"
syn match bqnnul "@"