Confusing Bash/Shell syntax highlighting (#179775)

Fixes #179749
This commit is contained in:
Alex Ross 2023-04-12 15:33:55 +02:00 committed by GitHub
parent d77e53a2b3
commit 0e8b1c8e09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 56 additions and 50 deletions

View file

@ -173,7 +173,10 @@
}
},
{
"scope": "constant.character",
"scope": [
"constant.character",
"constant.other.option"
],
"settings": {
"foreground": "#569cd6"
}

View file

@ -174,7 +174,10 @@
}
},
{
"scope": "constant.character",
"scope": [
"constant.character",
"constant.other.option"
],
"settings": {
"foreground": "#0000ff"
}

View file

@ -59,28 +59,28 @@
"c": "-",
"t": "source.shell meta.statement.shell meta.statement.command.shell string.unquoted.argument.shell constant.other.option.dash.shell",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_plus": "constant.other.option: #569CD6",
"light_plus": "constant.other.option: #0000FF",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178",
"dark_plus_experimental": "string: #CE9178",
"dark_plus_experimental": "constant.other.option: #569CD6",
"hc_light": "string: #0F4A85",
"light_plus_experimental": "string: #A31515"
"light_plus_experimental": "constant.other.option: #0000FF"
}
},
{
"c": "A",
"t": "source.shell meta.statement.shell meta.statement.command.shell string.unquoted.argument constant.other.option",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_plus": "constant.other.option: #569CD6",
"light_plus": "constant.other.option: #0000FF",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178",
"dark_plus_experimental": "string: #CE9178",
"dark_plus_experimental": "constant.other.option: #569CD6",
"hc_light": "string: #0F4A85",
"light_plus_experimental": "string: #A31515"
"light_plus_experimental": "constant.other.option: #0000FF"
}
},
{

View file

@ -1417,28 +1417,28 @@
"c": "-",
"t": "source.shell meta.scope.if-block.shell meta.statement.shell meta.expression.assignment.shell string.interpolated.dollar.shell meta.statement.shell meta.statement.command.shell meta.argument.shell string.interpolated.dollar.shell meta.statement.shell meta.statement.command.shell meta.argument.shell string.interpolated.dollar.shell meta.statement.shell meta.statement.command.shell string.unquoted.argument.shell constant.other.option.dash.shell",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_plus": "constant.other.option: #569CD6",
"light_plus": "constant.other.option: #0000FF",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178",
"dark_plus_experimental": "string: #CE9178",
"dark_plus_experimental": "constant.other.option: #569CD6",
"hc_light": "string: #0F4A85",
"light_plus_experimental": "string: #A31515"
"light_plus_experimental": "constant.other.option: #0000FF"
}
},
{
"c": "f",
"t": "source.shell meta.scope.if-block.shell meta.statement.shell meta.expression.assignment.shell string.interpolated.dollar.shell meta.statement.shell meta.statement.command.shell meta.argument.shell string.interpolated.dollar.shell meta.statement.shell meta.statement.command.shell meta.argument.shell string.interpolated.dollar.shell meta.statement.shell meta.statement.command.shell string.unquoted.argument constant.other.option",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_plus": "constant.other.option: #569CD6",
"light_plus": "constant.other.option: #0000FF",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178",
"dark_plus_experimental": "string: #CE9178",
"dark_plus_experimental": "constant.other.option: #569CD6",
"hc_light": "string: #0F4A85",
"light_plus_experimental": "string: #A31515"
"light_plus_experimental": "constant.other.option: #0000FF"
}
},
{
@ -1613,28 +1613,28 @@
"c": "-",
"t": "source.shell meta.statement.shell meta.expression.assignment.shell string.interpolated.dollar.shell meta.statement.shell meta.statement.command.shell string.unquoted.argument.shell constant.other.option.dash.shell",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_plus": "constant.other.option: #569CD6",
"light_plus": "constant.other.option: #0000FF",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178",
"dark_plus_experimental": "string: #CE9178",
"dark_plus_experimental": "constant.other.option: #569CD6",
"hc_light": "string: #0F4A85",
"light_plus_experimental": "string: #A31515"
"light_plus_experimental": "constant.other.option: #0000FF"
}
},
{
"c": "print-path",
"t": "source.shell meta.statement.shell meta.expression.assignment.shell string.interpolated.dollar.shell meta.statement.shell meta.statement.command.shell string.unquoted.argument constant.other.option",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_plus": "constant.other.option: #569CD6",
"light_plus": "constant.other.option: #0000FF",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178",
"dark_plus_experimental": "string: #CE9178",
"dark_plus_experimental": "constant.other.option: #569CD6",
"hc_light": "string: #0F4A85",
"light_plus_experimental": "string: #A31515"
"light_plus_experimental": "constant.other.option: #0000FF"
}
},
{
@ -1725,28 +1725,28 @@
"c": "-",
"t": "source.shell meta.statement.shell meta.expression.assignment.shell string.interpolated.dollar.shell meta.statement.shell meta.statement.command.shell string.unquoted.argument.shell constant.other.option.dash.shell",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_plus": "constant.other.option: #569CD6",
"light_plus": "constant.other.option: #0000FF",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178",
"dark_plus_experimental": "string: #CE9178",
"dark_plus_experimental": "constant.other.option: #569CD6",
"hc_light": "string: #0F4A85",
"light_plus_experimental": "string: #A31515"
"light_plus_experimental": "constant.other.option: #0000FF"
}
},
{
"c": "sdk",
"t": "source.shell meta.statement.shell meta.expression.assignment.shell string.interpolated.dollar.shell meta.statement.shell meta.statement.command.shell string.unquoted.argument constant.other.option",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_plus": "constant.other.option: #569CD6",
"light_plus": "constant.other.option: #0000FF",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178",
"dark_plus_experimental": "string: #CE9178",
"dark_plus_experimental": "constant.other.option: #569CD6",
"hc_light": "string: #0F4A85",
"light_plus_experimental": "string: #A31515"
"light_plus_experimental": "constant.other.option: #0000FF"
}
},
{
@ -1795,28 +1795,28 @@
"c": "-",
"t": "source.shell meta.statement.shell meta.expression.assignment.shell string.interpolated.dollar.shell meta.statement.shell meta.statement.command.shell string.unquoted.argument.shell constant.other.option.dash.shell",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_plus": "constant.other.option: #569CD6",
"light_plus": "constant.other.option: #0000FF",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178",
"dark_plus_experimental": "string: #CE9178",
"dark_plus_experimental": "constant.other.option: #569CD6",
"hc_light": "string: #0F4A85",
"light_plus_experimental": "string: #A31515"
"light_plus_experimental": "constant.other.option: #0000FF"
}
},
{
"c": "find",
"t": "source.shell meta.statement.shell meta.expression.assignment.shell string.interpolated.dollar.shell meta.statement.shell meta.statement.command.shell string.unquoted.argument constant.other.option",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_plus": "constant.other.option: #569CD6",
"light_plus": "constant.other.option: #0000FF",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178",
"dark_plus_experimental": "string: #CE9178",
"dark_plus_experimental": "constant.other.option: #569CD6",
"hc_light": "string: #0F4A85",
"light_plus_experimental": "string: #A31515"
"light_plus_experimental": "constant.other.option: #0000FF"
}
},
{
@ -2271,28 +2271,28 @@
"c": "-",
"t": "source.shell meta.function.shell meta.function.body.shell meta.statement.shell meta.statement.command.shell string.unquoted.argument.shell constant.other.option.dash.shell",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_plus": "constant.other.option: #569CD6",
"light_plus": "constant.other.option: #0000FF",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178",
"dark_plus_experimental": "string: #CE9178",
"dark_plus_experimental": "constant.other.option: #569CD6",
"hc_light": "string: #0F4A85",
"light_plus_experimental": "string: #A31515"
"light_plus_experimental": "constant.other.option: #0000FF"
}
},
{
"c": "d",
"t": "source.shell meta.function.shell meta.function.body.shell meta.statement.shell meta.statement.command.shell string.unquoted.argument constant.other.option",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_plus": "constant.other.option: #569CD6",
"light_plus": "constant.other.option: #0000FF",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178",
"dark_plus_experimental": "string: #CE9178",
"dark_plus_experimental": "constant.other.option: #569CD6",
"hc_light": "string: #0F4A85",
"light_plus_experimental": "string: #A31515"
"light_plus_experimental": "constant.other.option: #0000FF"
}
},
{