Mercurial > vim
view runtime/syntax/jgraph.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 | 46763b01cd9a |
children |
line wrap: on
line source
" Vim syntax file " Language: jgraph (graph plotting utility) " Maintainer: Jonas Munsin jmunsin@iki.fi " Last Change: 2003 May 04 " this syntax file is not yet complete " quit when a syntax file was already loaded if exists("b:current_syntax") finish endif syn case match " comments syn region jgraphComment start="(\* " end=" \*)" syn keyword jgraphCmd newcurve newgraph marktype syn keyword jgraphType xaxis yaxis syn keyword jgraphType circle box diamond triangle x cross ellipse syn keyword jgraphType xbar ybar text postscript eps none general syn keyword jgraphType solid dotted dashed longdash dotdash dodotdash syn keyword jgraphType dotdotdashdash pts "integer number, or floating point number without a dot. - or no - syn match jgraphNumber "\<-\=\d\+\>" "floating point number, with dot - or no - syn match jgraphNumber "\<-\=\d\+\.\d*\>" "floating point number, starting with a dot - or no - syn match jgraphNumber "\-\=\.\d\+\>" " Define the default highlighting. " Only when an item doesn't have highlighting yet hi def link jgraphComment Comment hi def link jgraphCmd Identifier hi def link jgraphType Type hi def link jgraphNumber Number let b:current_syntax = "jgraph"