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
|
{
"name": "CIE Pseudocode",
"scopeName": "source.cie-pseudocode",
"patterns": [
{
"include": "#line_comment"
},
{
"include": "#strings"
},
{
"match": "(?<!\\w)(?:IF|THEN|ELSE|ENDIF|WHILE|DO|ENDWHILE|REPEAT|UNTIL|FOR|TO|STEP|NEXT|RETURN|CALL)(?!\\w)",
"name": "keyword.control.cie-pseudocode"
},
{
"match": "(?<!\\w)(?:DECLARE|TYPE|ENDTYPE|FUNCTION|ENDFUNCTION|PROCEDURE|ENDPROCEDURE|RETURNS|BYREF|BYVAL|OF)(?!\\w)",
"name": "storage.modifier.cie-pseudocode"
},
{
"match": "(?<!\\w)(?:INTEGER|REAL|BOOLEAN|STRING|CHAR|ARRAY)(?!\\w)",
"name": "storage.type.cie-pseudocode"
},
{
"match": "(?<!\\w)(?:TRUE|FALSE)(?!\\w)",
"name": "constant.language.cie-pseudocode"
},
{
"match": "(?<!\\w)(?:INPUT|OUTPUT|OPENFILE|READFILE|WRITEFILE|CLOSEFILE|READ|WRITE|APPEND)(?!\\w)",
"name": "keyword.other.cie-pseudocode"
},
{
"match": "(?<!\\w)(?:LENGTH|MID|RIGHT|LEFT|LCASE|UCASE|ASC|CHR|IS_NUM|NUM_TO_STR|STR_TO_NUM|EOF)(?!\\w)(?=\\s*\\()",
"name": "entity.name.function.cie-pseudocode"
},
{
"match": "(?<!\\w)(?:DIV|MOD|AND|OR|NOT)(?!\\w)",
"name": "keyword.operator.word.cie-pseudocode"
},
{
"match": "<-|<>|<=|>=|[+*/=&^<>-]",
"name": "keyword.operator.cie-pseudocode"
},
{
"match": "(?<!\\w)\\d+(?:\\.\\d*)?(?!\\w)",
"name": "constant.numeric.cie-pseudocode"
},
{
"match": "\\b[A-Za-z][A-Za-z0-9_]*(?=\\s*\\()",
"name": "entity.name.function.cie-pseudocode"
},
{
"match": "[()]",
"name": "punctuation.section.parens.cie-pseudocode"
},
{
"match": "[\\[\\]]",
"name": "punctuation.section.brackets.cie-pseudocode"
},
{
"match": ",",
"name": "punctuation.separator.delimiter.comma.cie-pseudocode"
},
{
"match": "[:.]",
"name": "punctuation.separator.cie-pseudocode"
}
],
"repository": {
"line_comment": {
"begin": "(//)",
"end": "$",
"beginCaptures": {
"1": {
"name": "punctuation.definition.comment.cie-pseudocode"
}
},
"endCaptures": {},
"name": "comment.line.double-slash.cie-pseudocode",
"patterns": []
},
"strings": {
"patterns": [
{
"begin": "\"",
"end": "\"|$",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.cie-pseudocode"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.cie-pseudocode"
}
},
"name": "string.quoted.double.cie-pseudocode",
"patterns": []
},
{
"begin": "'",
"end": "'|$",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.cie-pseudocode"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.cie-pseudocode"
}
},
"name": "string.quoted.single.cie-pseudocode",
"patterns": []
}
]
}
}
}
|