Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Jun 30, 2023
1 parent bc61d3a commit 82f6b5e
Showing 1 changed file with 65 additions and 69 deletions.
134 changes: 65 additions & 69 deletions DSL/syntaxes/safe-ds.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -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]?|.|$)"
}
}
}

0 comments on commit 82f6b5e

Please sign in to comment.