Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
spyce.vim105 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	   SPYCE3" Maintainer:	 Rimon Barr <rimon AT acm DOT org>4" URL:		     http://spyce.sourceforge.net5" Last Change: 2009 Nov 116 7" quit when a syntax file was already loaded8if exists("b:current_syntax")9  finish10endif11 12" we define it here so that included files can test for it13if !exists("main_syntax")14  let main_syntax='spyce'15endif16 17" Read the HTML syntax to start with18let b:did_indent = 1	     " don't perform HTML indentation!19let html_no_rendering = 1    " do not render <b>,<i>, etc...20runtime! syntax/html.vim21unlet b:current_syntax22syntax spell default  " added by Bram23 24" include python25syn include @Python <sfile>:p:h/python.vim26syn include @Html <sfile>:p:h/html.vim27 28" spyce definitions29syn keyword spyceDirectiveKeyword include compact module import contained30syn keyword spyceDirectiveArg name names file contained31syn region  spyceDirectiveString start=+"+ end=+"+ contained32syn match   spyceDirectiveValue "=[\t ]*[^'", \t>][^, \t>]*"hs=s+1 contained33 34syn match spyceBeginErrorS  ,\[\[,35syn match spyceBeginErrorA  ,<%,36syn cluster spyceBeginError contains=spyceBeginErrorS,spyceBeginErrorA37syn match spyceEndErrorS    ,\]\],38syn match spyceEndErrorA    ,%>,39syn cluster spyceEndError contains=spyceEndErrorS,spyceEndErrorA40 41syn match spyceEscBeginS       ,\\\[\[,42syn match spyceEscBeginA       ,\\<%,43syn cluster spyceEscBegin contains=spyceEscBeginS,spyceEscBeginA44syn match spyceEscEndS	       ,\\\]\],45syn match spyceEscEndA	       ,\\%>,46syn cluster spyceEscEnd contains=spyceEscEndS,spyceEscEndA47syn match spyceEscEndCommentS  ,--\\\]\],48syn match spyceEscEndCommentA  ,--\\%>,49syn cluster spyceEscEndComment contains=spyceEscEndCommentS,spyceEscEndCommentA50 51syn region spyceStmtS      matchgroup=spyceStmtDelim start=,\[\[, end=,\]\], contains=@Python,spyceLambdaS,spyceLambdaA,spyceBeginError keepend52syn region spyceStmtA      matchgroup=spyceStmtDelim start=,<%, end=,%>, contains=@Python,spyceLambdaS,spyceLambdaA,spyceBeginError keepend53syn region spyceChunkS     matchgroup=spyceChunkDelim start=,\[\[\\, end=,\]\], contains=@Python,spyceLambdaS,spyceLambdaA,spyceBeginError keepend54syn region spyceChunkA     matchgroup=spyceChunkDelim start=,<%\\, end=,%>, contains=@Python,spyceLambdaS,spyceLambdaA,spyceBeginError keepend55syn region spyceEvalS      matchgroup=spyceEvalDelim start=,\[\[=, end=,\]\], contains=@Python,spyceLambdaS,spyceLambdaA,spyceBeginError keepend56syn region spyceEvalA      matchgroup=spyceEvalDelim start=,<%=, end=,%>, contains=@Python,spyceLambdaS,spyceLambdaA,spyceBeginError keepend57syn region spyceDirectiveS matchgroup=spyceDelim start=,\[\[\., end=,\]\], contains=spyceBeginError,spyceDirectiveKeyword,spyceDirectiveArg,spyceDirectiveValue,spyceDirectiveString keepend58syn region spyceDirectiveA matchgroup=spyceDelim start=,<%@, end=,%>, contains=spyceBeginError,spyceDirectiveKeyword,spyceDirectiveArg,spyceDirectiveValue,spyceDirectiveString keepend59syn region spyceCommentS   matchgroup=spyceCommentDelim start=,\[\[--, end=,--\]\],60syn region spyceCommentA   matchgroup=spyceCommentDelim start=,<%--, end=,--%>,61syn region spyceLambdaS    matchgroup=spyceLambdaDelim start=,\[\[spy!\?, end=,\]\], contains=@Html,@spyce extend62syn region spyceLambdaA    matchgroup=spyceLambdaDelim start=,<%spy!\?, end=,%>, contains=@Html,@spyce extend63 64syn cluster spyce contains=spyceStmtS,spyceStmtA,spyceChunkS,spyceChunkA,spyceEvalS,spyceEvalA,spyceCommentS,spyceCommentA,spyceDirectiveS,spyceDirectiveA65 66syn cluster htmlPreproc contains=@spyce67 68hi link spyceDirectiveKeyword	Special69hi link spyceDirectiveArg	Type70hi link spyceDirectiveString	String71hi link spyceDirectiveValue	String72 73hi link spyceDelim		Special74hi link spyceStmtDelim		spyceDelim75hi link spyceChunkDelim		spyceDelim76hi link spyceEvalDelim		spyceDelim77hi link spyceLambdaDelim	spyceDelim78hi link spyceCommentDelim	Comment79 80hi link spyceBeginErrorS	Error81hi link spyceBeginErrorA	Error82hi link spyceEndErrorS		Error83hi link spyceEndErrorA		Error84 85hi link spyceStmtS		spyce86hi link spyceStmtA		spyce87hi link spyceChunkS		spyce88hi link spyceChunkA		spyce89hi link spyceEvalS		spyce90hi link spyceEvalA		spyce91hi link spyceDirectiveS		spyce92hi link spyceDirectiveA		spyce93hi link spyceCommentS		Comment94hi link spyceCommentA		Comment95hi link spyceLambdaS		Normal96hi link spyceLambdaA		Normal97 98hi link spyce			Statement99 100let b:current_syntax = "spyce"101if main_syntax == 'spyce'102  unlet main_syntax103endif104 105 
codekingpro/portable-devtools · Team Ai