Mercurial > vim
view runtime/syntax/srt.vim @ 33762:7b26c36e9b3b v9.0.2102
patch 9.0.2102: matchparen highlight not cleared in completion mode
Commit: https://github.com/vim/vim/commit/9588666360e94de3ff58d4bc79aa9148fbf5fc44
Author: Christian Brabandt <cb@256bit.org>
Date: Sun Nov 12 16:55:01 2023 +0100
patch 9.0.2102: matchparen highlight not cleared in completion mode
Problem: matchparen highlight not cleared in completion mode
Solution: Clear matchparen highlighting in completion mode
Remove hard-coded hack in insexpand.c to clear the :3match before
displaying the completion menu.
Add a test for matchparen highlighting. While at it, move all test tests
related to the matchparen plugin into a separate test file.
closes: #13493
closes: #13524
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 12 Nov 2023 17:00:04 +0100 |
parents | 0827d3d6d8c0 |
children |
line wrap: on
line source
" Vim syntax file " Language: SubRip " Maintainer: ObserverOfTime <chronobserver@disroot.org> " Filenames: *.srt " Last Change: 2022 Sep 12 if exists('b:current_syntax') finish endif syn spell toplevel syn cluster srtSpecial contains=srtBold,srtItalics,srtStrikethrough,srtUnderline,srtFont,srtTag,srtEscape " Number syn match srtNumber /^\d\+$/ contains=@NoSpell " Range syn match srtRange /\d\d:\d\d:\d\d[,.]\d\d\d --> \d\d:\d\d:\d\d[,.]\d\d\d/ skipwhite contains=srtArrow,srtTime nextgroup=srtCoordinates syn match srtArrow /-->/ contained contains=@NoSpell syn match srtTime /\d\d:\d\d:\d\d[,.]\d\d\d/ contained contains=@NoSpell syn match srtCoordinates /X1:\d\+ X2:\d\+ Y1:\d\+ Y2:\d\+/ contained contains=@NoSpell " Bold syn region srtBold matchgroup=srtFormat start=+<b>+ end=+</b>+ contains=@srtSpecial syn region srtBold matchgroup=srtFormat start=+{b}+ end=+{/b}+ contains=@srtSpecial " Italics syn region srtItalics matchgroup=srtFormat start=+<i>+ end=+</i>+ contains=@srtSpecial syn region srtItalics matchgroup=srtFormat start=+{i}+ end=+{/i}+ contains=@srtSpecial " Strikethrough syn region srtStrikethrough matchgroup=srtFormat start=+<s>+ end=+</s>+ contains=@srtSpecial syn region srtStrikethrough matchgroup=srtFormat start=+{s}+ end=+{/s}+ contains=@srtSpecial " Underline syn region srtUnderline matchgroup=srtFormat start=+<u>+ end=+</u>+ contains=@srtSpecial syn region srtUnderline matchgroup=srtFormat start=+{u}+ end=+{/u}+ contains=@srtSpecial " Font syn region srtFont matchgroup=srtFormat start=+<font[^>]\{-}>+ end=+</font>+ contains=@srtSpecial " ASS tags syn match srtTag /{\\[^}]\{1,}}/ contains=@NoSpell " Special characters syn match srtEscape /\\[nNh]/ contains=@NoSpell hi def link srtArrow Delimiter hi def link srtCoordinates Label hi def link srtEscape SpecialChar hi def link srtFormat Special hi def link srtNumber Number hi def link srtTag PreProc hi def link srtTime String hi srtBold cterm=bold gui=bold hi srtItalics cterm=italic gui=italic hi srtStrikethrough cterm=strikethrough gui=strikethrough hi srtUnderline cterm=underline gui=underline let b:current_syntax = 'srt'