|
1 | 1 | {
|
2 |
| - "name": "safe-ds", |
3 |
| - "scopeName": "source.safe-ds", |
4 |
| - "fileTypes": [ |
5 |
| - ".sdspipe", |
6 |
| - ".sdsstub", |
7 |
| - ".sdstest" |
8 |
| - ], |
9 |
| - "patterns": [ |
10 |
| - { |
11 |
| - "include": "#comments" |
12 |
| - }, |
13 |
| - { |
14 |
| - "name": "constant.numeric.safe-ds", |
15 |
| - "match": "\\b([0-9]+(\\.[0-9]+)?([eE][+-]?[0-9]+)?)\\b" |
16 |
| - }, |
17 |
| - { |
18 |
| - "name": "constant.language.safe-ds", |
19 |
| - "match": "\\b(false|null|true)\\b" |
20 |
| - }, |
21 |
| - { |
22 |
| - "name": "storage.type.safe-ds", |
23 |
| - "match": "\\b(annotation|attr|class|enum|fun|package|pipeline|schema|segment|val)\\b" |
24 |
| - }, |
25 |
| - { |
26 |
| - "name": "storage.modifier.safe-ds", |
27 |
| - "match": "\\b(const|in|internal|out|private|static)\\b" |
28 |
| - }, |
29 |
| - { |
30 |
| - "name": "keyword.operator.safe-ds", |
31 |
| - "match": "\\b(and|not|or|sub|super)\\b" |
32 |
| - }, |
33 |
| - { |
34 |
| - "name": "keyword.other.safe-ds", |
35 |
| - "match": "\\b(as|from|import|literal|union|where|yield)\\b" |
36 |
| - }, |
37 |
| - { |
38 |
| - "name": "meta.safe-ds", |
39 |
| - "begin": "\\`", |
40 |
| - "end": "\\`" |
41 |
| - }, |
42 |
| - { |
43 |
| - "name": "string.interpolated.safe-ds", |
44 |
| - "begin": "\"|}}", |
45 |
| - "end": "{{|\"", |
46 |
| - "patterns": [ |
| 2 | + "name": "safe-ds", |
| 3 | + "scopeName": "source.safe-ds", |
| 4 | + "fileTypes": [ |
| 5 | + ".sdspipe", |
| 6 | + ".sdsstub", |
| 7 | + ".sdstest" |
| 8 | + ], |
| 9 | + "patterns": [ |
47 | 10 | {
|
48 |
| - "include": "#string-character-escape" |
49 |
| - } |
50 |
| - ] |
51 |
| - }, |
52 |
| - { |
53 |
| - "name": "string.quoted.double.safe-ds", |
54 |
| - "begin": "\"", |
55 |
| - "end": "\"", |
56 |
| - "patterns": [ |
| 11 | + "include": "#comments" |
| 12 | + }, |
57 | 13 | {
|
58 |
| - "include": "#string-character-escape" |
59 |
| - } |
60 |
| - ] |
61 |
| - } |
62 |
| - ], |
63 |
| - "repository": { |
64 |
| - "comments": { |
65 |
| - "patterns": [ |
| 14 | + "name": "constant.numeric.safe-ds", |
| 15 | + "match": "\\b([0-9]+(\\.[0-9]+)?([eE][+-]?[0-9]+)?)\\b" |
| 16 | + }, |
66 | 17 | {
|
67 |
| - "name": "comment.line.double-slash.safe-ds", |
68 |
| - "begin": "//", |
69 |
| - "beginCaptures": { |
70 |
| - "1": { |
71 |
| - "name": "punctuation.whitespace.comment.leading.safe-ds" |
72 |
| - } |
73 |
| - }, |
74 |
| - "end": "(?=$)" |
| 18 | + "name": "constant.language.safe-ds", |
| 19 | + "match": "\\b(false|null|true)\\b" |
75 | 20 | },
|
76 | 21 | {
|
77 |
| - "name": "comment.block.safe-ds", |
78 |
| - "begin": "/\\*", |
79 |
| - "beginCaptures": { |
80 |
| - "0": { |
81 |
| - "name": "punctuation.definition.comment.safe-ds" |
82 |
| - } |
83 |
| - }, |
84 |
| - "end": "\\*/", |
85 |
| - "endCaptures": { |
86 |
| - "0": { |
87 |
| - "name": "punctuation.definition.comment.safe-ds" |
88 |
| - } |
89 |
| - } |
| 22 | + "name": "storage.type.safe-ds", |
| 23 | + "match": "\\b(annotation|attr|class|enum|fun|package|pipeline|schema|segment|val)\\b" |
| 24 | + }, |
| 25 | + { |
| 26 | + "name": "storage.modifier.safe-ds", |
| 27 | + "match": "\\b(const|in|internal|out|private|static)\\b" |
| 28 | + }, |
| 29 | + { |
| 30 | + "name": "keyword.operator.safe-ds", |
| 31 | + "match": "\\b(and|not|or|sub|super)\\b" |
| 32 | + }, |
| 33 | + { |
| 34 | + "name": "keyword.other.safe-ds", |
| 35 | + "match": "\\b(as|from|import|literal|union|where|yield)\\b" |
| 36 | + }, |
| 37 | + { |
| 38 | + "name": "meta.safe-ds", |
| 39 | + "begin": "\\`", |
| 40 | + "end": "\\`" |
| 41 | + }, |
| 42 | + { |
| 43 | + "name": "string.interpolated.safe-ds", |
| 44 | + "begin": "\"|}}", |
| 45 | + "end": "{{|\"", |
| 46 | + "patterns": [ |
| 47 | + { |
| 48 | + "include": "#string-character-escape" |
| 49 | + } |
| 50 | + ] |
| 51 | + }, |
| 52 | + { |
| 53 | + "name": "string.quoted.double.safe-ds", |
| 54 | + "begin": "\"", |
| 55 | + "end": "\"", |
| 56 | + "patterns": [ |
| 57 | + { |
| 58 | + "include": "#string-character-escape" |
| 59 | + } |
| 60 | + ] |
| 61 | + } |
| 62 | + ], |
| 63 | + "repository": { |
| 64 | + "comments": { |
| 65 | + "patterns": [ |
| 66 | + { |
| 67 | + "name": "comment.line.double-slash.safe-ds", |
| 68 | + "begin": "//", |
| 69 | + "end": "(?=$)" |
| 70 | + }, |
| 71 | + { |
| 72 | + "name": "comment.block.documentation.safe-ds", |
| 73 | + "begin": "/\\*\\*", |
| 74 | + "end": "\\*/", |
| 75 | + "patterns": [ |
| 76 | + { |
| 77 | + "match": "(@param|@result)\\s+([_a-zA-Z][_a-zA-Z0-9]*)?", |
| 78 | + "captures": { |
| 79 | + "1": { |
| 80 | + "name": "keyword.other.safe-ds" |
| 81 | + }, |
| 82 | + "2": { |
| 83 | + "name": "variable.parameter.safe-ds" |
| 84 | + } |
| 85 | + } |
| 86 | + }, |
| 87 | + { |
| 88 | + "match": "(@since)\\b", |
| 89 | + "name": "keyword.other.safe-ds" |
| 90 | + }, |
| 91 | + { |
| 92 | + "match": "(@typeParam)\\s+([_a-zA-Z][_a-zA-Z0-9]*)?", |
| 93 | + "captures": { |
| 94 | + "1": { |
| 95 | + "name": "keyword.other.safe-ds" |
| 96 | + }, |
| 97 | + "2": { |
| 98 | + "name": "entity.name.type.parameter" |
| 99 | + } |
| 100 | + } |
| 101 | + } |
| 102 | + ] |
| 103 | + }, |
| 104 | + { |
| 105 | + "name": "comment.block.safe-ds", |
| 106 | + "begin": "/\\*", |
| 107 | + "end": "\\*/" |
| 108 | + } |
| 109 | + ] |
| 110 | + }, |
| 111 | + "string-character-escape": { |
| 112 | + "name": "constant.character.escape.safe-ds", |
| 113 | + "match": "\\\\(b|f|n|r|t|v|0|'|\"|{|\\\\|u[0-9a-fA-F]{4})" |
90 | 114 | }
|
91 |
| - ] |
92 |
| - }, |
93 |
| - "string-character-escape": { |
94 |
| - "name": "constant.character.escape.safe-ds", |
95 |
| - "match": "\\\\(b|f|n|r|t|v|0|'|\"|{|\\\\|u[0-9a-fA-F]{4})" |
96 | 115 | }
|
97 |
| - } |
98 | 116 | }
|
0 commit comments