Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
tpp.vim84 linesDownload Raw Back to syntax
1" Vim syntax file2" Language: tpp - Text Presentation Program3" Maintainer: Debian Vim Maintainers4" Former Maintainer: Gerfried Fuchs <alfie@ist.org>5" Last Change: 2023 Jan 166" URL: https://salsa.debian.org/vim-team/vim-debian/blob/main/syntax/tpp.vim7" Filenames: *.tpp8" License: BSD9"10" XXX This file is in need of a new maintainer, Debian VIM Maintainers maintain11"     it only because patches have been submitted for it by Debian users and the12"     former maintainer was MIA (Missing In Action), taking over its13"     maintenance was thus the only way to include those patches.14"     If you care about this file, and have time to maintain it please do so!15"16" Comments are very welcome - but please make sure that you are commenting on17" the latest version of this file.18" SPAM is _NOT_ welcome - be ready to be reported!19 20" quit when a syntax file was already loaded21if exists('b:current_syntax')22  finish23endif24 25if !exists('main_syntax')26  let main_syntax = 'tpp'27endif28 29 30"" list of the legal switches/options31syn match tppAbstractOptionKey contained "^--\%(author\|title\|date\|footer\) *" nextgroup=tppString32syn match tppPageLocalOptionKey contained "^--\%(heading\|center\|right\|huge\|sethugefont\|exec\) *" nextgroup=tppString33syn match tppPageLocalSwitchKey contained "^--\%(horline\|-\|\%(begin\|end\)\%(\%(shell\)\?output\|slide\%(left\|right\|top\|bottom\)\)\|\%(bold\|rev\|ul\)\%(on\|off\)\|withborder\)"34syn match tppNewPageOptionKey contained "^--newpage *" nextgroup=tppString35syn match tppColorOptionKey contained "^--\%(\%(bg\|fg\)\?color\) *"36syn match tppTimeOptionKey contained "^--sleep *"37 38syn match tppString contained ".*"39syn match tppColor contained "\%(white\|yellow\|red\|green\|blue\|cyan\|magenta\|black\|default\)"40syn match tppTime contained "\d\+"41 42syn region tppPageLocalSwitch start="^--" end="$" contains=tppPageLocalSwitchKey oneline43syn region tppColorOption start="^--\%(\%(bg\|fg\)\?color\)" end="$" contains=tppColorOptionKey,tppColor oneline44syn region tppTimeOption start="^--sleep" end="$" contains=tppTimeOptionKey,tppTime oneline45syn region tppNewPageOption start="^--newpage" end="$" contains=tppNewPageOptionKey oneline46syn region tppPageLocalOption start="^--\%(heading\|center\|right\|huge\|sethugefont\|exec\)" end="$" contains=tppPageLocalOptionKey oneline47syn region tppAbstractOption start="^--\%(author\|title\|date\|footer\)" end="$" contains=tppAbstractOptionKey oneline48 49if main_syntax !=# 'sh'50  " shell command51  syn include @tppShExec syntax/sh.vim52  unlet b:current_syntax53 54  syn region shExec matchgroup=tppPageLocalOptionKey start='^--exec *' keepend end='$' contains=@tppShExec55 56endif57 58syn match tppComment "^--##.*$"59 60" Define the default highlighting.61" Only when an item doesn't have highlighting yet62 63hi def link tppAbstractOptionKey		Special64hi def link tppPageLocalOptionKey		Keyword65hi def link tppPageLocalSwitchKey		Keyword66hi def link tppColorOptionKey		Keyword67hi def link tppTimeOptionKey		Comment68hi def link tppNewPageOptionKey		PreProc69hi def link tppString			String70hi def link tppColor			String71hi def link tppTime			Number72hi def link tppComment			Comment73hi def link tppAbstractOption		Error74hi def link tppPageLocalOption		Error75hi def link tppPageLocalSwitch		Error76hi def link tppColorOption			Error77hi def link tppNewPageOption		Error78hi def link tppTimeOption			Error79 80 81let b:current_syntax = 'tpp'82 83" vim: ts=8 sw=284 
codekingpro/portable-devtools · Team Ai