annotate runtime/syntax/art.vim @ 49:000769ce6c9d default tip

Added tag v7-3-618 for changeset 67300faee616
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 01 Aug 2012 18:08:37 +0900
parents 67300faee616
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1 " Vim syntax file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2 " Language: ART-IM and ART*Enterprise
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3 " Maintainer: Dorai Sitaram <ds26@gte.com>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
4 " URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html
48
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
5 " Last Change: 2011 Dec 28 by Thilo Six
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 if exists("b:current_syntax")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8 finish
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
9 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
10
48
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
11 let s:cpo_save = &cpo
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
12 set cpo&vim
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
13
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14 syn case ignore
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16 syn keyword artspform => and assert bind
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17 syn keyword artspform declare def-art-fun deffacts defglobal defrule defschema do
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18 syn keyword artspform else for if in$ not or
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19 syn keyword artspform progn retract salience schema test then while
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21 syn match artvariable "?[^ \t";()|&~]\+"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
22
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23 syn match artglobalvar "?\*[^ \t";()|&~]\+\*"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
24
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
25 syn match artinstance "![^ \t";()|&~]\+"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
26
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
27 syn match delimiter "[()|&~]"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
28
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
29 syn region string start=/"/ skip=/\\[\\"]/ end=/"/
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
30
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
31 syn match number "\<[-+]\=\([0-9]\+\(\.[0-9]*\)\=\|\.[0-9]\+\)\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
32
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
33 syn match comment ";.*$"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
34
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
35 syn match comment "#+:\=ignore" nextgroup=artignore skipwhite skipnl
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
36
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
37 syn region artignore start="(" end=")" contained contains=artignore,comment
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
38
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
39 syn region artignore start=/"/ skip=/\\[\\"]/ end=/"/ contained
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
40
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
41 hi def link artinstance type
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
42 hi def link artglobalvar preproc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
43 hi def link artignore comment
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
44 hi def link artspform statement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
45 hi def link artvariable function
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
46
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
47 let b:current_syntax = "art"
48
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
48
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
49 let &cpo = s:cpo_save
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
50 unlet s:cpo_save