|
| 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": "entity.name.safe-ds", |
| 39 | + "begin": "\\`", |
| 40 | + "end": "\\`" |
| 41 | + }, |
| 42 | + { |
| 43 | + "name": "string.quoted.double.safe-ds", |
| 44 | + "begin": "\"", |
| 45 | + "end": "\"", |
| 46 | + "patterns": [ |
| 47 | + { |
| 48 | + "include": "#string-character-escape" |
| 49 | + } |
| 50 | + ] |
| 51 | + } |
| 52 | + ], |
| 53 | + "repository": { |
| 54 | + "comments": { |
| 55 | + "patterns": [ |
| 56 | + { |
| 57 | + "name": "comment.line.double-slash.safe-ds", |
| 58 | + "begin": "//", |
| 59 | + "beginCaptures": { |
| 60 | + "1": { |
| 61 | + "name": "punctuation.whitespace.comment.leading.safe-ds" |
| 62 | + } |
| 63 | + }, |
| 64 | + "end": "(?=$)" |
| 65 | + }, |
| 66 | + { |
| 67 | + "name": "comment.block.safe-ds", |
| 68 | + "begin": "/\\*", |
| 69 | + "beginCaptures": { |
| 70 | + "0": { |
| 71 | + "name": "punctuation.definition.comment.safe-ds" |
| 72 | + } |
| 73 | + }, |
| 74 | + "end": "\\*/", |
| 75 | + "endCaptures": { |
| 76 | + "0": { |
| 77 | + "name": "punctuation.definition.comment.safe-ds" |
| 78 | + } |
| 79 | + } |
| 80 | + } |
| 81 | + ] |
| 82 | + }, |
| 83 | + "string-character-escape": { |
| 84 | + "name": "constant.character.escape.safe-ds", |
| 85 | + "match": "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|u\\{[0-9A-Fa-f]+\\}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)" |
| 86 | + } |
| 87 | + } |
| 88 | +} |
0 commit comments