-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdigsilent_programing_language.tmLanguage
178 lines (178 loc) · 5.18 KB
/
digsilent_programing_language.tmLanguage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>DPL</string>
<string>dpl</string>
</array>
<key>name</key>
<string>DIgSILENT Programming Language</string>
<key>patterns</key>
<array>
<dict>
<key>comment</key>
<string>Falta de punto y coma al final de la linea.</string>
<key>match</key>
<string>(?<!;|,|\{|\}|\s)(?!^\s)\s*$|(?<!;|,|\{|\}|\s)(?!^\s)\s*(?=!.*$)</string>
<key>name</key>
<string>invalid.illegal.ssraw</string>
</dict>
<dict>
<key>comment</key>
<string>String de texto.</string>
<key>match</key>
<string>('[^']*')</string>
<key>name</key>
<string>string.quoted.single.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>comentario de la sintaxis.</string>
<key>match</key>
<string>\!.*\n*</string>
<key>name</key>
<string>comment.line.exclamation.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>números</string>
<key>match</key>
<string>(?<=[\s\-\+\*\/\\=:\[\(\{,]|^)\d*\.?\d+([eE][+-]?\d)?([0-9&&[^\.]])*(i|j)?\b</string>
<key>name</key>
<string>constant.numeric.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Controles de Flujo</string>
<key>match</key>
<string>(do\s*|while\s*|for\s*|select|if\s*)(?=\()|(?<=})(?<=\})\s*else\s*(?=\{)|(break|continue)</string>
<key>name</key>
<string>keyword.control.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Exceptions for scripts</string>
<key>match</key>
<string>(exit)(?=\()</string>
<key>name</key>
<string>keyword.control.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Operadores lógicos.</string>
<key>match</key>
<string>\.(and|or|nand|nor|eor)\.</string>
<key>name</key>
<string>keyword.control.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Definición de parámetros.</string>
<key>match</key>
<string>\w+:(e|m|P|c|bus1|loc_name|nntap|outserv|GPSlat|GPSlon)(:\w+)*</string>
<key>name</key>
<string>variable.complex.ssraw</string>
</dict>
<dict>
<key>comment</key>
<string>Inicialización de Variables.</string>
<key>match</key>
<string>(int|double|string|set|object)\s</string>
<key>name</key>
<string>keyword.other.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Funciones de Variables.</string>
<key>match</key>
<string>(vardef|inc0|inc|intervalinc)(?=\()</string>
<key>name</key>
<string>keyword.other.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Objetos principales.</string>
<key>match</key>
<string>(SEL)(?=\.)</string>
<key>name</key>
<string>keyword.other.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Metodos de Objetos.</string>
<key>match</key>
<string>(?<=\.)(ShowFullName|Execute|Add|GetFullName|GetContents|GetChildren|First|Next|GetParent)(?=\()</string>
<key>name</key>
<string>keyword.other.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Metodos de SetSelect.</string>
<key>match</key>
<string>(?<=\.)(All|GetAll|AddRed|Clear|AllElm|AllLines|AllBars|AllLoads|AllAsm|AllSym|AllTypeLne|AllBreakers|AllCloseBreakers|AllOpenBreakers)(?=\()</string>
<key>name</key>
<string>keyword.other.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Funciones del Sistema.</string>
<key>match</key>
<string>(SetOutputWindowState|incfix|fopen|fclose|AllRelevant|GetActiveScenario|ResetCalculation|EchoOff|EchoOn|GetActiveProject)(?=\()</string>
<key>name</key>
<string>keyword.other.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Funciones del Sistema para imprimir.</string>
<key>match</key>
<string>(ClearOutput|output|[sf]*printf|Info|Warn|Error)(?=\()</string>
<key>name</key>
<string>keyword.other.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Funciones del Sistema aceptar argumentos.</string>
<key>match</key>
<string>(input)(?=\()</string>
<key>name</key>
<string>keyword.other.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Funciones de *.IntScenario.</string>
<key>match</key>
<string>(Activate|Deactivate)(?=\()</string>
<key>name</key>
<string>keyword.other.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Funciones de *.IntPrjfolder.</string>
<key>match</key>
<string>(GetProjectFolder)(?=\()</string>
<key>name</key>
<string>keyword.other.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Funciones Matemáticas.</string>
<key>match</key>
<string>(exp|min|max|strcmp)(?=\()</string>
<key>name</key>
<string>keyword.other.DPL</string>
</dict>
<dict>
<key>comment</key>
<string>Funciones con Excel.</string>
<key>match</key>
<string>(xlStart|xlOpenWorkbook|xlSetValue|xlSetTextStyle|xlSetFillColor|xlSetBorder|xlSaveWorkbookAs|xlCloseWorkbook|xlTerminate|xlNewWorkbook|xlAddWorksheet|xlSetWorksheetName|xlSetValues)(?=\()</string>
<key>name</key>
<string>keyword.other.DPL</string>
</dict>
</array>
<key>scopeName</key>
<string>source.DPL</string>
</dict>
</plist>