Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
bdf.vim98 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:             BDF font definition3" Previous Maintainer:  Nikolai Weibull <now@bitwi.se>4" Latest Revision:      2006-04-195 6if exists("b:current_syntax")7  finish8endif9 10let s:cpo_save = &cpo11set cpo&vim12 13syn region  bdfFontDefinition transparent matchgroup=bdfKeyword14                              \ start='^STARTFONT\>' end='^ENDFONT\>'15                              \ contains=bdfComment,bdfFont,bdfSize,16                              \ bdfBoundingBox,bdfProperties,bdfChars,bdfChar17 18syn match   bdfNumber         contained display19                              \ '\<\%(\x\+\|[+-]\=\d\+\%(\.\d\+\)*\)'20 21syn keyword bdfTodo           contained FIXME TODO XXX NOTE22 23syn region  bdfComment        contained start='^COMMENT\>' end='$'24                              \ contains=bdfTodo,@Spell25 26syn region  bdfFont           contained matchgroup=bdfKeyword27                              \ start='^FONT\>' end='$'28 29syn region  bdfSize           contained transparent matchgroup=bdfKeyword30                              \ start='^SIZE\>' end='$' contains=bdfNumber31 32syn region  bdfBoundingBox    contained transparent matchgroup=bdfKeyword33                              \ start='^FONTBOUNDINGBOX' end='$'34                              \ contains=bdfNumber35 36syn region  bdfProperties     contained transparent matchgroup=bdfKeyword37                              \ start='^STARTPROPERTIES' end='^ENDPROPERTIES'38                              \ contains=bdfNumber,bdfString,bdfProperty,39                              \ bdfXProperty40 41syn keyword bdfProperty       contained FONT_ASCENT FONT_DESCENT DEFAULT_CHAR42syn match   bdfProperty       contained '^\S\+'43 44syn keyword bdfXProperty      contained FONT_ASCENT FONT_DESCENT DEFAULT_CHAR45                              \ FONTNAME_REGISTRY FOUNDRY FAMILY_NAME46                              \ WEIGHT_NAME SLANT SETWIDTH_NAME PIXEL_SIZE47                              \ POINT_SIZE RESOLUTION_X RESOLUTION_Y SPACING48                              \ CHARSET_REGISTRY CHARSET_ENCODING COPYRIGHT49                              \ ADD_STYLE_NAME WEIGHT RESOLUTION X_HEIGHT50                              \ QUAD_WIDTH FONT AVERAGE_WIDTH51 52syn region  bdfString         contained start=+"+ skip=+""+ end=+"+53 54syn region  bdfChars          contained display transparent55                              \ matchgroup=bdfKeyword start='^CHARS' end='$'56                              \ contains=bdfNumber57 58syn region  bdfChar           transparent matchgroup=bdfKeyword59                              \ start='^STARTCHAR' end='^ENDCHAR'60                              \ contains=bdfEncoding,bdfWidth,bdfAttributes,61                              \ bdfBitmap62 63syn region  bdfEncoding       contained transparent matchgroup=bdfKeyword64                              \ start='^ENCODING' end='$' contains=bdfNumber65 66syn region  bdfWidth          contained transparent matchgroup=bdfKeyword67                              \ start='^SWIDTH\|DWIDTH\|BBX' end='$'68                              \ contains=bdfNumber69 70syn region  bdfAttributes     contained transparent matchgroup=bdfKeyword71                              \ start='^ATTRIBUTES' end='$'72 73syn keyword bdfBitmap         contained BITMAP74 75if exists("bdf_minlines")76  let b:bdf_minlines = bdf_minlines77else78  let b:bdf_minlines = 3079endif80exec "syn sync ccomment bdfChar minlines=" . b:bdf_minlines81 82 83hi def link bdfKeyword        Keyword84hi def link bdfNumber         Number85hi def link bdfTodo           Todo86hi def link bdfComment        Comment87hi def link bdfFont           String88hi def link bdfProperty       Identifier89hi def link bdfXProperty      Identifier90hi def link bdfString         String91hi def link bdfChars          Keyword92hi def link bdfBitmap         Keyword93 94let b:current_syntax = "bdf"95 96let &cpo = s:cpo_save97unlet s:cpo_save98 
codekingpro/portable-devtools · Team Ai