Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
bst.vim71 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:     BibTeX Bibliography Style3" Maintainer:   Tim Pope <vimNOSPAM@tpope.info>4" Filenames:    *.bst5" $Id: bst.vim,v 1.2 2007/05/05 18:24:42 vimboss Exp $6 7" quit when a syntax file was already loaded8if exists("b:current_syntax")9    finish10endif11 12setlocal iskeyword=48-57,#,$,',.,A-Z,a-z13 14syn case ignore15 16syn match   bstString +"[^"]*\%("\|$\)+ contains=bstField,bstType,bstError17" Highlight the last character of an unclosed string, but only when the cursor18" is not beyond it (i.e., it is still being edited). Imperfect.19syn match   bstError     '[^"]\%#\@!$' contained20 21syn match   bstNumber         "#-\=\d\+\>"22syn keyword bstNumber         entry.max$ global.max$23syn match   bstComment        "%.*"24 25syn keyword bstCommand        ENTRY FUNCTION INTEGERS MACRO STRINGS26syn keyword bstCommand        READ EXECUTE ITERATE REVERSE SORT27syn match   bstBuiltIn        "\s[-<>=+*]\|\s:="28syn keyword bstBuiltIn        add.period$29syn keyword bstBuiltIn        call.type$ change.case$ chr.to.int$ cite$30syn keyword bstBuiltIn        duplicate$ empty$ format.name$31syn keyword bstBuiltIn        if$ int.to.chr$ int.to.str$32syn keyword bstBuiltIn        missing$33syn keyword bstBuiltIn        newline$ num.names$34syn keyword bstBuiltIn        pop$ preamble$ purify$ quote$35syn keyword bstBuiltIn        skip$ stack$ substring$ swap$36syn keyword bstBuiltIn        text.length$ text.prefix$ top$ type$37syn keyword bstBuiltIn        warning$ while$ width$ write$38syn match   bstIdentifier     "'\k*"39syn keyword bstType           article book booklet conference40syn keyword bstType           inbook incollection inproceedings41syn keyword bstType           manual mastersthesis misc42syn keyword bstType           phdthesis proceedings43syn keyword bstType           techreport unpublished44syn keyword bstField          abbr address annote author45syn keyword bstField          booktitle chapter crossref comment46syn keyword bstField          edition editor47syn keyword bstField          howpublished institution journal key month48syn keyword bstField          note number49syn keyword bstField          organization50syn keyword bstField          pages publisher51syn keyword bstField          school series52syn keyword bstField          title type53syn keyword bstField          volume year54 55" Define the default highlighting.56" Only when an item doesn't have highlighting yet57 58hi def link bstComment           Comment59hi def link bstString            String60hi def link bstCommand           PreProc61hi def link bstBuiltIn           Statement62hi def link bstField             Special63hi def link bstNumber            Number64hi def link bstType              Type65hi def link bstIdentifier        Identifier66hi def link bstError             Error67 68let b:current_syntax = "bst"69 70" vim:set ft=vim sts=4 sw=4:71 
codekingpro/portable-devtools · Team Ai