annotate runtime/syntax/scilab.vim @ 15862:2ab6321fd355 v8.1.0938

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