Mercurial > hg > RemoteEditor > vim7
annotate runtime/syntax/tilde.vim @ 34:e170173ecb68 current-release
before ack base protocol.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 26 Nov 2008 15:02:10 +0900 |
parents | 76efa0be13f1 |
children | c16898406ff2 |
rev | line source |
---|---|
0 | 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 | |
34
e170173ecb68
before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
6 " CVS: $Id: tilde.vim,v 1.2 2008/08/29 06:41:30 axmo Exp $ |
0 | 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" |