Mercurial > vim
comparison runtime/syntax/datascript.vim @ 7013:349e6c01f35d
Update runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 11 Aug 2015 20:34:49 +0200 |
parents | c52a655d927d |
children | 43efa4f5a8ea |
comparison
equal
deleted
inserted
replaced
7012:0175e7cfea2e | 7013:349e6c01f35d |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Datascript | 2 " Language: DataScript |
3 " Maintainer: Dominique Pelle <dominique.pelle@gmail.com> | 3 " Maintainer: Dominique Pelle <dominique.pelle@gmail.com> |
4 " Last Change: 2014 Feb 26 | 4 " Last Change: 2015 Jul 30 |
5 " | 5 " |
6 " DataScript is a formal language for modelling binary datatypes, | 6 " DataScript is a formal language for modelling binary datatypes, |
7 " bitstreams or file formats. For more information, see: | 7 " bitstreams or file formats. For more information, see: |
8 " http://datascript.berlios.de/DataScriptLanguageOverview.html | 8 " |
9 " http://dstools.sourceforge.net/DataScriptLanguageOverview.html | |
9 | 10 |
10 if version < 600 | 11 if version < 600 |
11 syntax clear | 12 syntax clear |
12 elseif exists("b:current_syntax") | 13 elseif exists("b:current_syntax") |
13 finish | 14 finish |
17 | 18 |
18 syn keyword dsPackage import package | 19 syn keyword dsPackage import package |
19 syn keyword dsType bit bool string | 20 syn keyword dsType bit bool string |
20 syn keyword dsType int int8 int16 int32 int64 | 21 syn keyword dsType int int8 int16 int32 int64 |
21 syn keyword dsType uint8 uint16 uint32 uint64 | 22 syn keyword dsType uint8 uint16 uint32 uint64 |
23 syn keyword dsType varint16 varint32 varint64 | |
24 syn keyword dsType varuint16 varuint32 varuint64 | |
22 syn keyword dsType leint16 leint32 leint64 | 25 syn keyword dsType leint16 leint32 leint64 |
23 syn keyword dsType leuint16 leuint32 leuint64 | 26 syn keyword dsType leuint16 leuint32 leuint64 |
24 syn keyword dsEndian little big | 27 syn keyword dsEndian little big |
25 syn keyword dsAlign align | 28 syn keyword dsAlign align |
26 syn keyword dsLabel case default | 29 syn keyword dsLabel case default |
30 syn keyword dsKeyword function return | 33 syn keyword dsKeyword function return |
31 syn keyword dsOperator sizeof bitsizeof lengthof is sum forall in | 34 syn keyword dsOperator sizeof bitsizeof lengthof is sum forall in |
32 syn keyword dsStorageClass const | 35 syn keyword dsStorageClass const |
33 syn keyword dsTodo contained TODO FIXME XXX | 36 syn keyword dsTodo contained TODO FIXME XXX |
34 syn keyword dsSql sql sql_table sql_database sql_pragma sql_index | 37 syn keyword dsSql sql sql_table sql_database sql_pragma sql_index |
35 syn keyword dsSql sql_integer sql_metadata sql_key foreign_key | 38 syn keyword dsSql sql_integer sql_metadata sql_key sql_virtual |
39 syn keyword dsSql using reference_key foreign_key to | |
36 | 40 |
37 " dsCommentGroup allows adding matches for special things in comments. | 41 " dsCommentGroup allows adding matches for special things in comments. |
38 syn cluster dsCommentGroup contains=dsTodo | 42 syn cluster dsCommentGroup contains=dsTodo |
39 | 43 |
40 syn match dsOffset display "^\s*[a-zA-Z_:\.][a-zA-Z0-9_:\.]*\s*:" | 44 syn match dsOffset display "^\s*[a-zA-Z_:\.][a-zA-Z0-9_:\.]*\s*:" |
58 \ matchgroup=dsCommentStart start="/\*" end="\*/" | 62 \ matchgroup=dsCommentStart start="/\*" end="\*/" |
59 \ contains=@dsCommentGroup,dsCommentStartError,@Spell extend | 63 \ contains=@dsCommentGroup,dsCommentStartError,@Spell extend |
60 | 64 |
61 syn region dsString | 65 syn region dsString |
62 \ start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell | 66 \ start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell |
67 | |
68 syn sync ccomment dsComment | |
63 | 69 |
64 " Define the default highlighting. | 70 " Define the default highlighting. |
65 hi def link dsType Type | 71 hi def link dsType Type |
66 hi def link dsEndian StorageClass | 72 hi def link dsEndian StorageClass |
67 hi def link dsStorageClass StorageClass | 73 hi def link dsStorageClass StorageClass |