Mercurial > vim
annotate runtime/syntax/rib.vim @ 19163:63beef1ca62c
Update runtime files.
Commit: https://github.com/vim/vim/commit/ade0d39468014fd55d30f7647a1ac104baff4bc5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 21 22:33:58 2020 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Jan 2020 22:45:04 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Renderman Interface Bytestream | |
3 " Maintainer: Andrew Bromage <ajb@spamcop.net> | |
4 " Last Change: 2003 May 11 | |
5 " | |
6 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
7 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
8 if exists("b:current_syntax") |
7 | 9 finish |
10 endif | |
11 | |
12 syn case match | |
13 | |
14 " Comments | |
15 syn match ribLineComment "#.*$" | |
16 syn match ribStructureComment "##.*$" | |
17 | |
18 syn case ignore | |
19 syn match ribCommand /[A-Z][a-zA-Z]*/ | |
20 syn case match | |
21 | |
22 syn region ribString start=/"/ skip=/\\"/ end=/"/ | |
23 | |
24 syn match ribStructure "[A-Z][a-zA-Z]*Begin\>\|[A-Z][a-zA-Z]*End" | |
25 syn region ribSectionFold start="FrameBegin" end="FrameEnd" fold transparent keepend extend | |
26 syn region ribSectionFold start="WorldBegin" end="WorldEnd" fold transparent keepend extend | |
27 syn region ribSectionFold start="TransformBegin" end="TransformEnd" fold transparent keepend extend | |
28 syn region ribSectionFold start="AttributeBegin" end="AttributeEnd" fold transparent keepend extend | |
29 syn region ribSectionFold start="MotionBegin" end="MotionEnd" fold transparent keepend extend | |
30 syn region ribSectionFold start="SolidBegin" end="SolidEnd" fold transparent keepend extend | |
31 syn region ribSectionFold start="ObjectBegin" end="ObjectEnd" fold transparent keepend extend | |
32 | |
33 syn sync fromstart | |
34 | |
35 "integer number, or floating point number without a dot and with "f". | |
36 syn case ignore | |
37 syn match ribNumbers display transparent "[-]\=\<\d\|\.\d" contains=ribNumber,ribFloat | |
38 syn match ribNumber display contained "[-]\=\d\+\>" | |
39 "floating point number, with dot, optional exponent | |
40 syn match ribFloat display contained "[-]\=\d\+\.\d*\(e[-+]\=\d\+\)\=" | |
41 "floating point number, starting with a dot, optional exponent | |
42 syn match ribFloat display contained "[-]\=\.\d\+\(e[-+]\=\d\+\)\=\>" | |
43 "floating point number, without dot, with exponent | |
44 syn match ribFloat display contained "[-]\=\d\+e[-+]\d\+\>" | |
45 syn case match | |
46 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
47 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
48 hi def link ribStructure Structure |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
49 hi def link ribCommand Statement |
7 | 50 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
51 hi def link ribStructureComment SpecialComment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
52 hi def link ribLineComment Comment |
7 | 53 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
54 hi def link ribString String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
55 hi def link ribNumber Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
56 hi def link ribFloat Float |
7 | 57 |
58 | |
59 | |
60 let b:current_syntax = "rib" | |
61 | |
62 " Options for vi: ts=8 sw=2 sts=2 nowrap noexpandtab ft=vim |