From 82f6b5eaaa32c8f6f6ea906b5082c19491e3b992 Mon Sep 17 00:00:00 2001 From: megalinter-bot <129584137+megalinter-bot@users.noreply.github.com> Date: Fri, 30 Jun 2023 08:49:52 +0000 Subject: [PATCH] style: apply automated linter fixes --- DSL/syntaxes/safe-ds.tmLanguage.json | 134 +++++++++++++-------------- 1 file changed, 65 insertions(+), 69 deletions(-) diff --git a/DSL/syntaxes/safe-ds.tmLanguage.json b/DSL/syntaxes/safe-ds.tmLanguage.json index 65cccd1f7..fe8df66e4 100644 --- a/DSL/syntaxes/safe-ds.tmLanguage.json +++ b/DSL/syntaxes/safe-ds.tmLanguage.json @@ -1,78 +1,74 @@ { - "name": "safe-ds", - "scopeName": "source.safe-ds", - "fileTypes": [ - ".sdspipe", - ".sdsstub", - ".sdstest" - ], - "patterns": [ - { - "include": "#comments" - }, - { - "name": "keyword.control.safe-ds", - "match": "\\b(and|annotation|as|attr|class|enum|false|fun|import|in|internal|not|null|or|out|package|pipeline|private|schema|static|step|sub|super|true|union|val|vararg|where|yield)\\b" - }, - { - "name": "string.quoted.double.safe-ds", - "begin": "\"", - "end": "\"", - "patterns": [ + "name": "safe-ds", + "scopeName": "source.safe-ds", + "fileTypes": [".sdspipe", ".sdsstub", ".sdstest"], + "patterns": [ { - "include": "#string-character-escape" - } - ] - } - ], - "repository": { - "comments": { - "patterns": [ - { - "name": "comment.block.safe-ds", - "begin": "/\\*", - "beginCaptures": { - "0": { - "name": "punctuation.definition.comment.safe-ds" - } - }, - "end": "\\*/", - "endCaptures": { - "0": { - "name": "punctuation.definition.comment.safe-ds" - } - } + "include": "#comments" }, { - "begin": "//", - "beginCaptures": { - "1": { - "name": "punctuation.whitespace.comment.leading.safe-ds" - } - }, - "end": "(?=$)", - "name": "comment.line.safe-ds" + "name": "keyword.control.safe-ds", + "match": "\\b(and|annotation|as|attr|class|enum|false|fun|import|in|internal|not|null|or|out|package|pipeline|private|schema|static|step|sub|super|true|union|val|vararg|where|yield)\\b" }, { - "name": "comment.block.safe-ds", - "begin": "[»«]", - "beginCaptures": { - "0": { - "name": "punctuation.definition.comment.safe-ds" - } - }, - "end": "[»«]", - "endCaptures": { - "0": { - "name": "punctuation.definition.comment.safe-ds" - } - } + "name": "string.quoted.double.safe-ds", + "begin": "\"", + "end": "\"", + "patterns": [ + { + "include": "#string-character-escape" + } + ] + } + ], + "repository": { + "comments": { + "patterns": [ + { + "name": "comment.block.safe-ds", + "begin": "/\\*", + "beginCaptures": { + "0": { + "name": "punctuation.definition.comment.safe-ds" + } + }, + "end": "\\*/", + "endCaptures": { + "0": { + "name": "punctuation.definition.comment.safe-ds" + } + } + }, + { + "begin": "//", + "beginCaptures": { + "1": { + "name": "punctuation.whitespace.comment.leading.safe-ds" + } + }, + "end": "(?=$)", + "name": "comment.line.safe-ds" + }, + { + "name": "comment.block.safe-ds", + "begin": "[»«]", + "beginCaptures": { + "0": { + "name": "punctuation.definition.comment.safe-ds" + } + }, + "end": "[»«]", + "endCaptures": { + "0": { + "name": "punctuation.definition.comment.safe-ds" + } + } + } + ] + }, + "string-character-escape": { + "name": "constant.character.escape.safe-ds", + "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]?|.|$)" } - ] - }, - "string-character-escape": { - "name": "constant.character.escape.safe-ds", - "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]?|.|$)" } - } }