codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Texinfo (documentation format)3" Maintainer: Robert Dodier <robert.dodier@gmail.com>4" Latest Revision: 2021-12-155 6if exists("b:current_syntax")7 finish8endif9 10let s:cpo_save = &cpo11set cpo&vim12 13syn match texinfoControlSequence display '\(@end [a-zA-Z@]\+\|@[a-zA-Z@]\+\)'14 15syn match texinfoComment display '^\s*\(@comment\|@c\)\>.*$'16 17syn region texinfoCode matchgroup=texinfoControlSequence start="@code{" end="}" contains=ALL18syn region texinfoVerb matchgroup=texinfoControlSequence start="@verb{" end="}" contains=ALL19 20syn region texinfoArgument matchgroup=texinfoBrace start="{" end="}" contains=ALLBUT21 22syn region texinfoExample matchgroup=texinfoControlSequence start="^@example\s*$" end="^@end example\s*$" contains=ALL23 24syn region texinfoVerbatim matchgroup=texinfoControlSequence start="^@verbatim\s*$" end="^@end verbatim\s*$"25 26syn region texinfoMenu matchgroup=texinfoControlSequence start="^@menu\s*$" end="^@end menu\s*$"27 28if exists("g:texinfo_delimiters")29 syn match texinfoDelimiter display '[][{}]'30endif31 32hi def link texinfoDelimiter Delimiter33hi def link texinfoComment Comment34hi def link texinfoControlSequence Identifier35hi def link texinfoBrace Operator36hi def link texinfoArgument Special37hi def link texinfoExample String38hi def link texinfoVerbatim String39hi def link texinfoVerb String40hi def link texinfoCode String41hi def link texinfoMenu String42 43let b:current_syntax = "texinfo"44 45let &cpo = s:cpo_save46unlet s:cpo_save47 