Mercurial > vim
annotate runtime/syntax/scilab.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | 3fc0f57ecb91 |
children | 46763b01cd9a |
rev | line source |
---|---|
7 | 1 " |
2 " Vim syntax file | |
3 " Language : Scilab | |
4 " Maintainer : Benoit Hamelin | |
5 " File type : *.sci (see :help filetype) | |
6 " History | |
7 " 28jan2002 benoith 0.1 Creation. Adapted from matlab.vim. | |
8 " 04feb2002 benoith 0.5 Fixed bugs with constant highlighting. | |
9 " | |
10 | |
11 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
12 " 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
|
13 if exists("b:current_syntax") |
7 | 14 finish |
15 endif | |
16 | |
17 | |
18 " Reserved words. | |
19 syn keyword scilabStatement abort clear clearglobal end exit global mode predef quit resume | |
20 syn keyword scilabStatement return | |
21 syn keyword scilabFunction function endfunction funptr | |
22 syn keyword scilabPredicate null iserror isglobal | |
23 syn keyword scilabKeyword typename | |
24 syn keyword scilabDebug debug pause what where whereami whereis who whos | |
25 syn keyword scilabRepeat for while break | |
26 syn keyword scilabConditional if then else elseif | |
27 syn keyword scilabMultiplex select case | |
28 | |
29 " Reserved constants. | |
30 syn match scilabConstant "\(%\)[0-9A-Za-z?!#$]\+" | |
31 syn match scilabBoolean "\(%\)[FTft]\>" | |
32 | |
33 " Delimiters and operators. | |
34 syn match scilabDelimiter "[][;,()]" | |
35 syn match scilabComparison "[=~]=" | |
36 syn match scilabComparison "[<>]=\=" | |
37 syn match scilabComparison "<>" | |
38 syn match scilabLogical "[&|~]" | |
39 syn match scilabAssignment "=" | |
40 syn match scilabArithmetic "[+-]" | |
41 syn match scilabArithmetic "\.\=[*/\\]\.\=" | |
42 syn match scilabArithmetic "\.\=^" | |
43 syn match scilabRange ":" | |
44 syn match scilabMlistAccess "\." | |
45 | |
46 syn match scilabLineContinuation "\.\{2,}" | |
47 | |
48 syn match scilabTransposition "[])a-zA-Z0-9?!_#$.]'"lc=1 | |
49 | |
50 " Comments and tools. | |
51 syn keyword scilabTodo TODO todo FIXME fixme TBD tbd contained | |
52 syn match scilabComment "//.*$" contains=scilabTodo | |
53 | |
54 " Constants. | |
55 syn match scilabNumber "[0-9]\+\(\.[0-9]*\)\=\([DEde][+-]\=[0-9]\+\)\=" | |
56 syn match scilabNumber "\.[0-9]\+\([DEde][+-]\=[0-9]\+\)\=" | |
57 syn region scilabString start=+'+ skip=+''+ end=+'+ oneline | |
58 syn region scilabString start=+"+ end=+"+ oneline | |
59 | |
60 " Identifiers. | |
61 syn match scilabIdentifier "\<[A-Za-z?!_#$][A-Za-z0-9?!_#$]*\>" | |
62 syn match scilabOverload "%[A-Za-z0-9?!_#$]\+_[A-Za-z0-9?!_#$]\+" | |
63 | |
64 | |
65 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
66 " Only when an item doesn't have highlighting yet |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
67 command -nargs=+ HiLink hi def link <args> |
7 | 68 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
69 HiLink scilabStatement Statement |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
70 HiLink scilabFunction Keyword |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
71 HiLink scilabPredicate Keyword |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
72 HiLink scilabKeyword Keyword |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
73 HiLink scilabDebug Debug |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
74 HiLink scilabRepeat Repeat |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
75 HiLink scilabConditional Conditional |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
76 HiLink scilabMultiplex Conditional |
7 | 77 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
78 HiLink scilabConstant Constant |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
79 HiLink scilabBoolean Boolean |
7 | 80 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
81 HiLink scilabDelimiter Delimiter |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
82 HiLink scilabMlistAccess Delimiter |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
83 HiLink scilabComparison Operator |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
84 HiLink scilabLogical Operator |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
85 HiLink scilabAssignment Operator |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
86 HiLink scilabArithmetic Operator |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
87 HiLink scilabRange Operator |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
88 HiLink scilabLineContinuation Underlined |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
89 HiLink scilabTransposition Operator |
7 | 90 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
91 HiLink scilabTodo Todo |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
92 HiLink scilabComment Comment |
7 | 93 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
94 HiLink scilabNumber Number |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
95 HiLink scilabString String |
7 | 96 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
97 HiLink scilabIdentifier Identifier |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
98 HiLink scilabOverload Special |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
99 |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
100 delcommand HiLink |
7 | 101 |
102 let b:current_syntax = "scilab" | |
103 | |
104 "EOF vim: ts=4 noet tw=100 sw=4 sts=0 |