annotate runtime/syntax/texinfo.vim @ 29071:b90bca860b5a v8.2.5057

patch 8.2.5057: using gettimeofday() for timeout is very inefficient Commit: https://github.com/vim/vim/commit/6574577cacd393ab7591fc776ea060eebc939e55 Author: Paul Ollis <paul@cleversheep.org> Date: Sun Jun 5 16:55:54 2022 +0100 patch 8.2.5057: using gettimeofday() for timeout is very inefficient Problem: Using gettimeofday() for timeout is very inefficient. Solution: Set a platform dependent timer. (Paul Ollis, closes https://github.com/vim/vim/issues/10505)
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Jun 2022 18:00:08 +0200
parents 3a63b1e4a6f4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
26591
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
2 " Language: Texinfo (documentation format)
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
3 " Maintainer: Robert Dodier <robert.dodier@gmail.com>
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
4 " Latest Revision: 2021-12-15
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
26591
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
10 let s:cpo_save = &cpo
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
11 set cpo&vim
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
12
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
13 syn match texinfoControlSequence display '\(@end [a-zA-Z@]\+\|@[a-zA-Z@]\+\)'
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
14
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
15 syn match texinfoComment display '^\s*\(@comment\|@c\)\>.*$'
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
16
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
17 syn region texinfoCode matchgroup=texinfoControlSequence start="@code{" end="}" contains=ALL
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
18 syn region texinfoVerb matchgroup=texinfoControlSequence start="@verb{" end="}" contains=ALL
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
19
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
20 syn region texinfoArgument matchgroup=texinfoBrace start="{" end="}" contains=ALLBUT
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
21
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
22 syn region texinfoExample matchgroup=texinfoControlSequence start="^@example\s*$" end="^@end example\s*$" contains=ALL
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
23
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
24 syn region texinfoVerbatim matchgroup=texinfoControlSequence start="^@verbatim\s*$" end="^@end verbatim\s*$"
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
25
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
26 syn region texinfoMenu matchgroup=texinfoControlSequence start="^@menu\s*$" end="^@end menu\s*$"
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
27
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
28 if exists("g:texinfo_delimiters")
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
29 syn match texinfoDelimiter display '[][{}]'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
26591
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
32 hi def link texinfoDelimiter Delimiter
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
33 hi def link texinfoComment Comment
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
34 hi def link texinfoControlSequence Identifier
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
35 hi def link texinfoBrace Operator
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
36 hi def link texinfoArgument Special
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
37 hi def link texinfoExample String
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
38 hi def link texinfoVerbatim String
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
39 hi def link texinfoVerb String
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
40 hi def link texinfoCode String
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
41 hi def link texinfoMenu String
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 let b:current_syntax = "texinfo"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
26591
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
45 let &cpo = s:cpo_save
3a63b1e4a6f4 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
46 unlet s:cpo_save