Mercurial > vim
view runtime/syntax/chatito.vim @ 34576:563b0a3bd697 v9.1.0186
patch 9.1.0186: cursor pos wrong on mouse click after eol with 'rl', 've' and conceal
Commit: https://github.com/vim/vim/commit/deb2204bffa075ed5485415fc2dbd20e75d87ea4
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun Mar 17 19:44:30 2024 +0100
patch 9.1.0186: cursor pos wrong on mouse click after eol with 'rl', 've' and conceal
Problem: Wrong cursor position when clicking after end of line with
'rightleft', 'virtualedit' and conceal.
Solution: Set values in ScreenCols[] also with SLF_RIGHTLEFT. Also fix
off-by-one cursor position with 'colorcolumn' (zeertzjq).
closes: #14218
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 17 Mar 2024 20:00:02 +0100 |
parents | 1e91e26ceebf |
children |
line wrap: on
line source
" Vim syntax file " Language: Chatito " Maintainer: ObserverOfTime <chronobserver@disroot.org> " Filenames: *.chatito " Last Change: 2022 Sep 19 if exists('b:current_syntax') finish endif " Comment syn keyword chatitoTodo contained TODO FIXME XXX syn match chatitoComment /^#.*/ contains=chatitoTodo,@Spell syn match chatitoComment +^//.*+ contains=chatitoTodo,@Spell " Import syn match chatitoImport /^import \+.*$/ transparent contains=chatitoImportKeyword,chatitoImportFile syn keyword chatitoImportKeyword import contained nextgroup=chatitoImportFile syn match chatitoImportFile /.*$/ contained skipwhite " Intent syn match chatitoIntent /^%\[[^\]?]\+\]\((.\+)\)\=$/ contains=chatitoArgs " Slot syn match chatitoSlot /^@\[[^\]?#]\+\(#[^\]?#]\+\)\=\]\((.\+)\)\=$/ contains=chatitoArgs,chatitoVariation syn match chatitoSlot /@\[[^\]?#]\+\(#[^\]?#]\+\)\=?\=\]/ contained contains=chatitoOpt,chatitoVariation " Alias syn match chatitoAlias /^\~\[[^\]?]\+\]\=$/ syn match chatitoAlias /\~\[[^\]?]\+?\=\]/ contained contains=chatitoOpt " Probability syn match chatitoProbability /\*\[\d\+\(\.\d\+\)\=%\=\]/ contained " Optional syn match chatitoOpt '?' contained " Arguments syn match chatitoArgs /(.\+)/ contained " Variation syn match chatitoVariation /#[^\]?#]\+/ contained " Value syn match chatitoValue /^ \{4\}\zs.\+$/ contains=chatitoProbability,chatitoSlot,chatitoAlias,@Spell " Errors syn match chatitoError /^\t/ hi def link chatitoAlias String hi def link chatitoArgs Special hi def link chatitoComment Comment hi def link chatitoError Error hi def link chatitoImportKeyword Include hi def link chatitoIntent Statement hi def link chatitoOpt SpecialChar hi def link chatitoProbability Number hi def link chatitoSlot Identifier hi def link chatitoTodo Todo hi def link chatitoVariation Special let b:current_syntax = 'chatito'