neovim

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

tilde.vim (1539B)


      1 " Vim syntax file
      2 " This file works only for Vim6.x
      3 " Language:	Tilde
      4 " Maintainer:	Tobias Rundström <tobi@tildesoftware.net>
      5 " URL:		http://www.tildesoftware.net
      6 " CVS:		$Id: tilde.vim,v 1.1 2004/06/13 19:31:51 vimboss Exp $
      7 
      8 if exists("b:current_syntax")
      9  finish
     10 endif
     11 
     12 "tilde dosent care ...
     13 syn case ignore
     14 
     15 syn match	tildeFunction	"\~[a-z_0-9]\+"ms=s+1
     16 syn region	tildeParen	start="(" end=")" contains=tildeString,tildeNumber,tildeVariable,tildeField,tildeSymtab,tildeFunction,tildeParen,tildeHexNumber,tildeOperator
     17 syn region	tildeString	contained start=+"+ skip=+\\\\\|\\"+ end=+"+ keepend
     18 syn region	tildeString	contained start=+'+ skip=+\\\\\|\\"+ end=+'+ keepend
     19 syn match	tildeNumber	"\d" contained
     20 syn match	tildeOperator	"or\|and" contained
     21 syn match	tildeHexNumber  "0x[a-z0-9]\+" contained
     22 syn match	tildeVariable	"$[a-z_0-9]\+" contained
     23 syn match	tildeField	"%[a-z_0-9]\+" contained
     24 syn match	tildeSymtab	"@[a-z_0-9]\+" contained
     25 syn match	tildeComment	"^#.*"
     26 syn region	tildeCurly	start=+{+ end=+}+ contained contains=tildeLG,tildeString,tildeNumber,tildeVariable,tildeField,tildeFunction,tildeSymtab,tildeHexNumber
     27 syn match	tildeLG		"=>" contained
     28 
     29 
     30 hi def link	tildeComment	Comment
     31 hi def link	tildeFunction	Operator
     32 hi def link	tildeOperator	Operator
     33 hi def link	tildeString	String
     34 hi def link	tildeNumber	Number
     35 hi def link	tildeHexNumber	Number
     36 hi def link	tildeVariable	Identifier
     37 hi def link	tildeField	Identifier
     38 hi def link	tildeSymtab	Identifier
     39 hi def link	tildeError	Error
     40 
     41 let b:current_syntax = "tilde"