Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
rnc.vim69 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:             Relax NG compact syntax3" Previous Maintainer:  Nikolai Weibull <now@bitwi.se>4" Latest Revision:      2007-06-175 6if exists("b:current_syntax")7  finish8endif9 10let s:cpo_save = &cpo11set cpo&vim12 13setlocal iskeyword+=-,.14 15syn keyword rncTodo         contained TODO FIXME XXX NOTE16 17syn region  rncComment      display oneline start='^\s*#' end='$'18                            \ contains=rncTodo,@Spell19 20syn match   rncOperator     display '[-|,&+?*~]'21syn match   rncOperator     display '\%(|&\)\=='22syn match   rncOperator     display '>>'23 24syn match   rncNamespace    display '\<\k\+:'25 26syn match   rncQuoted       display '\\\k\+\>'27 28syn match   rncSpecial      display '\\x{\x\+}'29 30syn region rncAnnotation    transparent start='\[' end='\]'31                            \ contains=ALLBUT,rncComment,rncTodo32 33syn region  rncLiteral      display oneline start=+"+ end=+"+34                            \ contains=rncSpecial35syn region  rncLiteral      display oneline start=+'+ end=+'+36syn region  rncLiteral      display oneline start=+"""+ end=+"""+37                            \ contains=rncSpecial38syn region  rncLiteral      display oneline start=+'''+ end=+'''+39 40syn match   rncDelimiter    display '[{},()]'41 42syn keyword rncKeyword      datatypes default div empty external grammar43syn keyword rncKeyword      include inherit list mixed name namespace44syn keyword rncKeyword      notAllowed parent start string text token45 46syn match   rncIdentifier   display '\k\+\_s*\%(=\|&=\||=\)\@='47                            \ nextgroup=rncOperator48syn keyword rncKeyword      element attribute49                            \ nextgroup=rncIdName skipwhite skipempty50syn match   rncIdName       contained '\k\+'51 52hi def link rncTodo         Todo53hi def link rncComment      Comment54hi def link rncOperator     Operator55hi def link rncNamespace    Identifier56hi def link rncQuoted       Special57hi def link rncSpecial      SpecialChar58hi def link rncAnnotation   Special59hi def link rncLiteral      String60hi def link rncDelimiter    Delimiter61hi def link rncKeyword      Keyword62hi def link rncIdentifier   Identifier63hi def link rncIdName       Identifier64 65let b:current_syntax = "rnc"66 67let &cpo = s:cpo_save68unlet s:cpo_save69 
codekingpro/portable-devtools · Team Ai