Mercurial > vim
annotate runtime/syntax/texinfo.vim @ 28451:e015d650ea9f v8.2.4750
patch 8.2.4750: small pieces of dead code
Commit: https://github.com/vim/vim/commit/b836658a04ee5456deca2ee523de9efe51252da3
Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
Date: Thu Apr 14 20:43:56 2022 +0100
patch 8.2.4750: small pieces of dead code
Problem: Small pieces of dead code.
Solution: Remove the dead code. (Goc Dundar, closes https://github.com/vim/vim/issues/10190) Rename the
qftf_cb struct member to avoid confusion.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 Apr 2022 21:45:02 +0200 |
parents | 3a63b1e4a6f4 |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
26591 | 2 " Language: Texinfo (documentation format) |
3 " Maintainer: Robert Dodier <robert.dodier@gmail.com> | |
4 " Latest Revision: 2021-12-15 | |
7 | 5 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
10
diff
changeset
|
6 if exists("b:current_syntax") |
7 | 7 finish |
8 endif | |
9 | |
26591 | 10 let s:cpo_save = &cpo |
11 set cpo&vim | |
12 | |
13 syn match texinfoControlSequence display '\(@end [a-zA-Z@]\+\|@[a-zA-Z@]\+\)' | |
14 | |
15 syn match texinfoComment display '^\s*\(@comment\|@c\)\>.*$' | |
16 | |
17 syn region texinfoCode matchgroup=texinfoControlSequence start="@code{" end="}" contains=ALL | |
18 syn region texinfoVerb matchgroup=texinfoControlSequence start="@verb{" end="}" contains=ALL | |
19 | |
20 syn region texinfoArgument matchgroup=texinfoBrace start="{" end="}" contains=ALLBUT | |
21 | |
22 syn region texinfoExample matchgroup=texinfoControlSequence start="^@example\s*$" end="^@end example\s*$" contains=ALL | |
23 | |
24 syn region texinfoVerbatim matchgroup=texinfoControlSequence start="^@verbatim\s*$" end="^@end verbatim\s*$" | |
25 | |
26 syn region texinfoMenu matchgroup=texinfoControlSequence start="^@menu\s*$" end="^@end menu\s*$" | |
27 | |
28 if exists("g:texinfo_delimiters") | |
29 syn match texinfoDelimiter display '[][{}]' | |
7 | 30 endif |
31 | |
26591 | 32 hi def link texinfoDelimiter Delimiter |
33 hi def link texinfoComment Comment | |
34 hi def link texinfoControlSequence Identifier | |
35 hi def link texinfoBrace Operator | |
36 hi def link texinfoArgument Special | |
37 hi def link texinfoExample String | |
38 hi def link texinfoVerbatim String | |
39 hi def link texinfoVerb String | |
40 hi def link texinfoCode String | |
41 hi def link texinfoMenu String | |
7 | 42 |
43 let b:current_syntax = "texinfo" | |
44 | |
26591 | 45 let &cpo = s:cpo_save |
46 unlet s:cpo_save |