neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

kscript.vim (1985B)


      1 " Vim syntax file
      2 " Language:	kscript
      3 " Maintainer:	Thomas Capricelli <orzel@yalbi.com>
      4 " URL:		http://aquila.rezel.enst.fr/thomas/vim/kscript.vim
      5 " CVS:		$Id: kscript.vim,v 1.1 2004/06/13 17:40:02 vimboss Exp $
      6 
      7 " quit when a syntax file was already loaded
      8 if exists("b:current_syntax")
      9  finish
     10 endif
     11 
     12 syn keyword	kscriptPreCondit	import from
     13 
     14 syn keyword	kscriptHardCoded	print println connect length arg mid upper lower isEmpty toInt toFloat findApplication
     15 syn keyword	kscriptConditional	if else switch
     16 syn keyword	kscriptRepeat		while for do foreach
     17 syn keyword	kscriptExceptions	emit catch raise try signal
     18 syn keyword	kscriptFunction		class struct enum
     19 syn keyword	kscriptConst		FALSE TRUE false true
     20 syn keyword	kscriptStatement	return delete
     21 syn keyword	kscriptLabel		case default
     22 syn keyword	kscriptStorageClass	const
     23 syn keyword	kscriptType		in out inout var
     24 
     25 syn keyword	kscriptTodo		contained TODO FIXME XXX
     26 
     27 syn region	kscriptComment		start="/\*" end="\*/" contains=kscriptTodo
     28 syn match	kscriptComment		"//.*" contains=kscriptTodo
     29 syn match	kscriptComment		"#.*$" contains=kscriptTodo
     30 
     31 syn region	kscriptString		start=+'+  end=+'+ skip=+\\\\\|\\'+
     32 syn region	kscriptString		start=+"+  end=+"+ skip=+\\\\\|\\"+
     33 syn region	kscriptString		start=+"""+  end=+"""+
     34 syn region	kscriptString		start=+'''+  end=+'''+
     35 
     36 " Define the default highlighting.
     37 " Only when an item doesn't have highlighting yet
     38 
     39 hi def link kscriptConditional		Conditional
     40 hi def link kscriptRepeat			Repeat
     41 hi def link kscriptExceptions		Statement
     42 hi def link kscriptFunction		Function
     43 hi def link kscriptConst			Constant
     44 hi def link kscriptStatement		Statement
     45 hi def link kscriptLabel			Label
     46 hi def link kscriptStorageClass		StorageClass
     47 hi def link kscriptType			Type
     48 hi def link kscriptTodo			Todo
     49 hi def link kscriptComment		Comment
     50 hi def link kscriptString			String
     51 hi def link kscriptPreCondit		PreCondit
     52 hi def link kscriptHardCoded		Statement
     53 
     54 
     55 let b:current_syntax = "kscript"
     56 
     57 " vim: ts=8