Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
man.vim59 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	Man page3" Maintainer:	Jason Franklin <vim@justemail.net>4" Previous Maintainer:	SungHyun Nam <goweol@gmail.com>5" Previous Maintainer:	Gautam H. Mudunuri <gmudunur@informatica.com>6" Version Info:7" Last Change:	2020 Sep 198 9" Additional highlighting by Johannes Tanzler <johannes.tanzler@aon.at>:10"	* manSubHeading11"	* manSynopsis (only for sections 2 and 3)12 13" quit when a syntax file was already loaded14if exists("b:current_syntax")15  finish16endif17 18" Get the CTRL-H syntax to handle backspaced text19runtime! syntax/ctrlh.vim20 21syn case ignore22 23" See notes about hyphenation in s:ParseIntoPageAndSection of24" autoload/dist/man.vim.25syn match  manReference       "\%(\f\+[\u2010-]\%(\n\|\r\n\=\)\s\+\)\=\f\+([1-9]\l*)"26syn match  manSectionHeading  "^\a.*$"27syn match  manSubHeading      "^\s\{3\}\a.*$"28syn match  manOptionDesc      "^\s*[+-][a-z0-9]\S*"29syn match  manLongOptionDesc  "^\s*--[a-z0-9-]\S*"30" syn match  manHistory		"^[a-z].*last change.*$"31 32syn match manHeader '\%1l.*'33exe 'syn match manFooter ''\%' . line('$') . 'l.*'''34 35if getline(1) =~ '^[a-zA-Z_]\+([23])'36  syntax include @cCode <sfile>:p:h/c.vim37  syn match manCFuncDefinition  display "\<\h\w*\>\s*("me=e-1 contained38  syn region manSynopsis start="^SYNOPSIS"hs=s+8 end="^\u\+\s*$"me=e-12 keepend contains=manSectionHeading,@cCode,manCFuncDefinition39endif40 41 42" Define the default highlighting.43" Only when an item doesn't have highlighting yet44 45hi def link manHeader Title46hi def link manFooter PreProc47 48hi def link manSectionHeading  Statement49hi def link manOptionDesc	    Constant50hi def link manLongOptionDesc  Constant51hi def link manReference	    PreProc52hi def link manSubHeading      Function53hi def link manCFuncDefinition Function54 55 56let b:current_syntax = "man"57 58" vim:ts=8 sts=2 sw=2:59 
codekingpro/portable-devtools · Team Ai