📄 texinfo.vim
字号:
syn match texinfoAtCmd "^@syncodeindex" nextgroup=texinfoSIPar skipwhitesyn match texinfoAtCmd "^@synindex" nextgroup=texinfoSIPar skipwhite"special insertions (chap. 13 in Texinfo manual)syn match texinfoSpecialChar "@\(!\|?\|@\|\s\)"syn match texinfoSpecialChar "@{"syn match texinfoSpecialChar "@}""accentssyn match texinfoSpecialChar "@=."syn match texinfoSpecialChar "@\('\|\"\|\^\|`\)[aeiouyAEIOUY]"syn match texinfoSpecialChar "@\~[aeinouyAEINOUY]"syn match texinfoSpecialChar "@dotaccent{.}"syn match texinfoSpecialChar "@H{.}"syn match texinfoSpecialChar "@,{[cC]}"syn match texinfoSpecialChar "@AA{}"syn match texinfoSpecialChar "@aa{}"syn match texinfoSpecialChar "@L{}"syn match texinfoSpecialChar "@l{}"syn match texinfoSpecialChar "@O{}"syn match texinfoSpecialChar "@o{}"syn match texinfoSpecialChar "@ringaccent{.}"syn match texinfoSpecialChar "@tieaccent{..}"syn match texinfoSpecialChar "@u{.}"syn match texinfoSpecialChar "@ubaraccent{.}"syn match texinfoSpecialChar "@udotaccent{.}"syn match texinfoSpecialChar "@v{.}""ligaturessyn match texinfoSpecialChar "@AE{}"syn match texinfoSpecialChar "@ae{}"syn match texinfoSpecialChar "@copyright{}"syn match texinfoSpecialChar "@bullet" contained "for tables and listssyn match texinfoSpecialChar "@bullet{}"syn match texinfoSpecialChar "@dotless{i}"syn match texinfoSpecialChar "@dotless{j}"syn match texinfoSpecialChar "@dots{}"syn match texinfoSpecialChar "@enddots{}"syn match texinfoSpecialChar "@equiv" contained "for tables and listssyn match texinfoSpecialChar "@equiv{}"syn match texinfoSpecialChar "@error{}"syn match texinfoSpecialChar "@exclamdown{}"syn match texinfoSpecialChar "@expansion{}"syn match texinfoSpecialChar "@minus" contained "for tables and listssyn match texinfoSpecialChar "@minus{}"syn match texinfoSpecialChar "@OE{}"syn match texinfoSpecialChar "@oe{}"syn match texinfoSpecialChar "@point" contained "for tables and listssyn match texinfoSpecialChar "@point{}"syn match texinfoSpecialChar "@pounds{}"syn match texinfoSpecialChar "@print{}"syn match texinfoSpecialChar "@questiondown{}"syn match texinfoSpecialChar "@result" contained "for tables and listssyn match texinfoSpecialChar "@result{}"syn match texinfoSpecialChar "@ss{}"syn match texinfoSpecialChar "@TeX{}""othersyn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@dmn{" end="}"syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@footnote{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmdsyn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@image{" end="}"syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@math{" end="}"syn match texinfoAtCmd "@footnotestyle" nextgroup=texinfoSinglePar skipwhite"making and preventing breaks (chap. 14 in Texinfo manual)syn match texinfoSpecialChar "@\(\*\|-\|\.\)"syn match texinfoAtCmd "^@need" nextgroup=texinfoSinglePar skipwhitesyn match texinfoAtCmd "^@page\s*$"syn match texinfoAtCmd "^@sp" nextgroup=texinfoSinglePar skipwhitesyn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@group\s*$" end="^@end group\s*$" contains=ALLsyn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@hyphenation{" end="}"syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@w{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd"definition commands (chap. 15 in Texinfo manual)syn match texinfoMltlnAtCmdFLine "^@def\k\+" containedsyn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@def\k\+" end="^@end def\k\+$" contains=ALL"next 2 commands are from chap. 12; must be defined after @def* commands above to overwrite themsyn match texinfoAtCmd "@defcodeindex" nextgroup=texinfoIndexPar skipwhitesyn match texinfoAtCmd "@defindex" nextgroup=texinfoIndexPar skipwhite"conditionally visible text (chap. 16 in Texinfo manual)syn match texinfoAtCmd "^@clear" nextgroup=texinfoSinglePar skipwhitesyn region texinfoMltln2AtCmd matchgroup=texinfoAtCmd start="^@html\s*$" end="^@end html\s*$"syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifclear" end="^@end ifclear\s*$" contains=ALLsyn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifhtml" end="^@end ifhtml\s*$" contains=ALLsyn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifinfo" end="^@end ifinfo\s*$" contains=ALLsyn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifnothtml" end="^@end ifnothtml\s*$" contains=ALLsyn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifnotinfo" end="^@end ifnotinfo\s*$" contains=ALLsyn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifnottex" end="^@end ifnottex\s*$" contains=ALLsyn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifset" end="^@end ifset\s*$" contains=ALLsyn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@iftex" end="^@end iftex\s*$" contains=ALLsyn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@set " skip="\\$" end="$" contains=texinfoSpecialChar onelinesyn region texCommand start="\$\$" end="\$\$" containedsyn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@tex" end="^@end tex\s*$" contains=texCommandsyn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@value{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd"internationalization (chap. 17 in Texinfo manual)syn match texinfoAtCmd "@documentencoding" nextgroup=texinfoSinglePar skipwhitesyn match texinfoAtCmd "@documentlanguage" nextgroup=texinfoIndexPar skipwhite"defining new texinfo commands (chap. 18 in Texinfo manual)syn match texinfoAtCmd "@alias" nextgroup=texinfoAssignment skipwhitesyn match texinfoDIEPar "\S*\s*,\s*\S*\s*,\s*\S*\s*$" containedsyn match texinfoAtCmd "@definfoenclose" nextgroup=texinfoDIEPar skipwhitesyn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@macro" end="^@end macro\s*$" contains=ALL"formatting hardcopy (chap. 19 in Texinfo manual)syn match texinfoAtCmd "^@afourlatex\s*$"syn match texinfoAtCmd "^@afourpaper\s*$"syn match texinfoAtCmd "^@afourwide\s*$"syn match texinfoAtCmd "^@finalout\s*$"syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@pagesizes" end="$" oneline"creating and installing Info Files (chap. 20 in Texinfo manual)syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@dircategory" skip="\\$" end="$" onelinesyn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@direntry\s*$" end="^@end direntry\s*$" contains=texinfoSpecialCharsyn match texinfoAtCmd "^@novalidate\s*$""include files (appendix E in Texinfo manual)syn match texinfoAtCmd "^@include" nextgroup=texinfoSinglePar skipwhite"page headings (appendix F in Texinfo manual)syn match texinfoHFSpecialChar "@|" containedsyn match texinfoThisAtCmd "@thischapter" containedsyn match texinfoThisAtCmd "@thischaptername" containedsyn match texinfoThisAtCmd "@thisfile" containedsyn match texinfoThisAtCmd "@thispage" containedsyn match texinfoThisAtCmd "@thistitle" containedsyn match texinfoThisAtCmd "@today{}" containedsyn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@evenfooting" skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoThisAtCmd,texinfoHFSpecialChar onelinesyn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@evenheading" skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoThisAtCmd,texinfoHFSpecialChar onelinesyn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@everyfooting" skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoThisAtCmd,texinfoHFSpecialChar onelinesyn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@everyheading" skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoThisAtCmd,texinfoHFSpecialChar onelinesyn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@oddfooting" skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoThisAtCmd,texinfoHFSpecialChar onelinesyn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@oddheading" skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoThisAtCmd,texinfoHFSpecialChar oneline"refilling paragraphs (appendix H in Texinfo manual)syn match texinfoAtCmd "@refill"syn cluster texinfoAll contains=ALLBUT,{texinfoThisAtCmd,texinfoHFSpecialChar}syn cluster texinfoReducedAll contains=texinfoSpecialChar,texinfoBrcPrmAtCmd"==============================================================================" highlighting" For version 5.7 and earlier: only when not done already" For version 5.8 and later: only when an item doesn't have highlighting yetif version >= 508 || !exists("did_texinfo_syn_inits") if version < 508 let did_texinfo_syn_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif HiLink texinfoSpecialChar Special HiLink texinfoHFSpecialChar Special HiLink texinfoError Error HiLink texinfoIdent Identifier HiLink texinfoAssignment Identifier HiLink texinfoSinglePar Identifier HiLink texinfoIndexPar Identifier HiLink texinfoSIPar Identifier HiLink texinfoDIEPar Identifier HiLink texCommand PreProc HiLink texinfoAtCmd Statement "@-command HiLink texinfoPrmAtCmd String "@-command in one line with unknown nr. of parameters "is String because is found as a region and is 'matchgroup'-ed "to texinfoAtCmd HiLink texinfoBrcPrmAtCmd String "@-command with parameter(s) in braces ({}) "is String because is found as a region and is 'matchgroup'-ed to texinfoAtCmd HiLink texinfoMltlnAtCmdFLine texinfoAtCmd "repeated embedded First lines in @-commands HiLink texinfoMltlnAtCmd String "@-command in multiple lines "is String because is found as a region and is 'matchgroup'-ed to texinfoAtCmd HiLink texinfoMltln2AtCmd PreProc "@-command in multiple lines (same as texinfoMltlnAtCmd, just with other colors) HiLink texinfoMltlnDMAtCmd PreProc "@-command in multiple lines (same as texinfoMltlnAtCmd, just with other colors; used for @detailmenu, which can be included in @menu) HiLink texinfoMltlnNAtCmd Normal "@-command in multiple lines (same as texinfoMltlnAtCmd, just with other colors) HiLink texinfoThisAtCmd Statement "@-command used in headers and footers (@this... series) HiLink texinfoComment Comment delcommand HiLinkendiflet b:current_syntax = "texinfo"if main_syntax == 'texinfo' unlet main_syntaxendif" vim: ts=8
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -