annotate runtime/syntax/art.vim @ 21483:de74d764d36c v8.2.1292

patch 8.2.1292: AIDL filetype not recognized Commit: https://github.com/vim/vim/commit/2afc3b4f776a4fe2bb22d0a79e77012d79b4ec1e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 25 16:53:12 2020 +0200 patch 8.2.1292: AIDL filetype not recognized Problem: AIDL filetype not recognized. Solution: Add filetype detection. (Dominique Pell?, closes https://github.com/vim/vim/issues/6533)
author Bram Moolenaar <Bram@vim.org>
date Sat, 25 Jul 2020 17:00:04 +0200
parents 91e53bcb7946
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: ART-IM and ART*Enterprise
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Dorai Sitaram <ds26@gte.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html
3237
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
5 " Last Change: 2011 Dec 28 by Thilo Six
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3237
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
11 let s:cpo_save = &cpo
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
12 set cpo&vim
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
13
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn keyword artspform => and assert bind
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn keyword artspform declare def-art-fun deffacts defglobal defrule defschema do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword artspform else for if in$ not or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword artspform progn retract salience schema test then while
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match artvariable "?[^ \t";()|&~]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match artglobalvar "?\*[^ \t";()|&~]\+\*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match artinstance "![^ \t";()|&~]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match delimiter "[()|&~]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn region string start=/"/ skip=/\\[\\"]/ end=/"/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match number "\<[-+]\=\([0-9]\+\(\.[0-9]*\)\=\|\.[0-9]\+\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match comment ";.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match comment "#+:\=ignore" nextgroup=artignore skipwhite skipnl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn region artignore start="(" end=")" contained contains=artignore,comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn region artignore start=/"/ skip=/\\[\\"]/ end=/"/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 hi def link artinstance type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 hi def link artglobalvar preproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 hi def link artignore comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 hi def link artspform statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 hi def link artvariable function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 let b:current_syntax = "art"
3237
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
48
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
49 let &cpo = s:cpo_save
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
50 unlet s:cpo_save