mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Makefile colorizing tests - handling variable expansion in a variable name in assignment: var-$(another-var) := value
This commit is contained in:
parent
30afe8898a
commit
e911796b8a
|
@ -75,3 +75,10 @@ var:=123
|
||||||
var!=echo val
|
var!=echo val
|
||||||
var:=val \
|
var:=val \
|
||||||
notvar=butval
|
notvar=butval
|
||||||
|
|
||||||
|
var-$(nested-var)=val
|
||||||
|
|
||||||
|
# Spaces in a nested shell will hurt a colorizing of variable,
|
||||||
|
# but not so much.
|
||||||
|
var-$(shell printf 2) := val2
|
||||||
|
$(info Should be 'val2' here: $(var-2))
|
||||||
|
|
|
@ -3012,5 +3012,258 @@
|
||||||
"light_vs": "default: #000000",
|
"light_vs": "default: #000000",
|
||||||
"hc_black": "default: #FFFFFF"
|
"hc_black": "default: #FFFFFF"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "var-",
|
||||||
|
"t": "source.makefile variable.other.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "variable: #9CDCFE",
|
||||||
|
"light_plus": "variable: #001080",
|
||||||
|
"dark_vs": "default: #D4D4D4",
|
||||||
|
"light_vs": "default: #000000",
|
||||||
|
"hc_black": "variable: #9CDCFE"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "$(",
|
||||||
|
"t": "source.makefile variable.other.makefile string.interpolated.makefile punctuation.definition.variable.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "string: #CE9178",
|
||||||
|
"light_plus": "string: #A31515",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "string: #CE9178"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "nested-var",
|
||||||
|
"t": "source.makefile variable.other.makefile string.interpolated.makefile variable.other.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "variable: #9CDCFE",
|
||||||
|
"light_plus": "variable: #001080",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "variable: #9CDCFE"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": ")",
|
||||||
|
"t": "source.makefile variable.other.makefile string.interpolated.makefile punctuation.definition.variable.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "string: #CE9178",
|
||||||
|
"light_plus": "string: #A31515",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "string: #CE9178"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "=",
|
||||||
|
"t": "source.makefile punctuation.separator.key-value.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "default: #D4D4D4",
|
||||||
|
"light_plus": "default: #000000",
|
||||||
|
"dark_vs": "default: #D4D4D4",
|
||||||
|
"light_vs": "default: #000000",
|
||||||
|
"hc_black": "default: #FFFFFF"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "val",
|
||||||
|
"t": "source.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "default: #D4D4D4",
|
||||||
|
"light_plus": "default: #000000",
|
||||||
|
"dark_vs": "default: #D4D4D4",
|
||||||
|
"light_vs": "default: #000000",
|
||||||
|
"hc_black": "default: #FFFFFF"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "#",
|
||||||
|
"t": "source.makefile comment.line.number-sign.makefile punctuation.definition.comment.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "comment: #6A9955",
|
||||||
|
"light_plus": "comment: #008000",
|
||||||
|
"dark_vs": "comment: #6A9955",
|
||||||
|
"light_vs": "comment: #008000",
|
||||||
|
"hc_black": "comment: #7CA668"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": " Spaces in a nested shell will hurt a colorizing of variable,",
|
||||||
|
"t": "source.makefile comment.line.number-sign.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "comment: #6A9955",
|
||||||
|
"light_plus": "comment: #008000",
|
||||||
|
"dark_vs": "comment: #6A9955",
|
||||||
|
"light_vs": "comment: #008000",
|
||||||
|
"hc_black": "comment: #7CA668"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "#",
|
||||||
|
"t": "source.makefile comment.line.number-sign.makefile punctuation.definition.comment.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "comment: #6A9955",
|
||||||
|
"light_plus": "comment: #008000",
|
||||||
|
"dark_vs": "comment: #6A9955",
|
||||||
|
"light_vs": "comment: #008000",
|
||||||
|
"hc_black": "comment: #7CA668"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": " but not so much.",
|
||||||
|
"t": "source.makefile comment.line.number-sign.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "comment: #6A9955",
|
||||||
|
"light_plus": "comment: #008000",
|
||||||
|
"dark_vs": "comment: #6A9955",
|
||||||
|
"light_vs": "comment: #008000",
|
||||||
|
"hc_black": "comment: #7CA668"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "var-",
|
||||||
|
"t": "source.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "default: #D4D4D4",
|
||||||
|
"light_plus": "default: #000000",
|
||||||
|
"dark_vs": "default: #D4D4D4",
|
||||||
|
"light_vs": "default: #000000",
|
||||||
|
"hc_black": "default: #FFFFFF"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "$(",
|
||||||
|
"t": "source.makefile string.interpolated.makefile punctuation.definition.variable.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "string: #CE9178",
|
||||||
|
"light_plus": "string: #A31515",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "string: #CE9178"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "shell",
|
||||||
|
"t": "source.makefile string.interpolated.makefile meta.scope.function-call.makefile support.function.shell.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "support.function: #DCDCAA",
|
||||||
|
"light_plus": "support.function: #795E26",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "support.function: #DCDCAA"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": " printf 2",
|
||||||
|
"t": "source.makefile string.interpolated.makefile meta.scope.function-call.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "string: #CE9178",
|
||||||
|
"light_plus": "string: #A31515",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "string: #CE9178"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": ")",
|
||||||
|
"t": "source.makefile string.interpolated.makefile punctuation.definition.variable.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "string: #CE9178",
|
||||||
|
"light_plus": "string: #A31515",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "string: #CE9178"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": " := val2",
|
||||||
|
"t": "source.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "default: #D4D4D4",
|
||||||
|
"light_plus": "default: #000000",
|
||||||
|
"dark_vs": "default: #D4D4D4",
|
||||||
|
"light_vs": "default: #000000",
|
||||||
|
"hc_black": "default: #FFFFFF"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "$(",
|
||||||
|
"t": "source.makefile string.interpolated.makefile punctuation.definition.variable.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "string: #CE9178",
|
||||||
|
"light_plus": "string: #A31515",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "string: #CE9178"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "info",
|
||||||
|
"t": "source.makefile string.interpolated.makefile meta.scope.function-call.makefile support.function.info.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "support.function: #DCDCAA",
|
||||||
|
"light_plus": "support.function: #795E26",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "support.function: #DCDCAA"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": " Should be 'val2' here: ",
|
||||||
|
"t": "source.makefile string.interpolated.makefile meta.scope.function-call.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "string: #CE9178",
|
||||||
|
"light_plus": "string: #A31515",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "string: #CE9178"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "$(",
|
||||||
|
"t": "source.makefile string.interpolated.makefile meta.scope.function-call.makefile string.interpolated.makefile punctuation.definition.variable.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "string: #CE9178",
|
||||||
|
"light_plus": "string: #A31515",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "string: #CE9178"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": "var-2",
|
||||||
|
"t": "source.makefile string.interpolated.makefile meta.scope.function-call.makefile string.interpolated.makefile variable.other.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "variable: #9CDCFE",
|
||||||
|
"light_plus": "variable: #001080",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "variable: #9CDCFE"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": ")",
|
||||||
|
"t": "source.makefile string.interpolated.makefile meta.scope.function-call.makefile string.interpolated.makefile punctuation.definition.variable.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "string: #CE9178",
|
||||||
|
"light_plus": "string: #A31515",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "string: #CE9178"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"c": ")",
|
||||||
|
"t": "source.makefile string.interpolated.makefile punctuation.definition.variable.makefile",
|
||||||
|
"r": {
|
||||||
|
"dark_plus": "string: #CE9178",
|
||||||
|
"light_plus": "string: #A31515",
|
||||||
|
"dark_vs": "string: #CE9178",
|
||||||
|
"light_vs": "string: #A31515",
|
||||||
|
"hc_black": "string: #CE9178"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
Reference in a new issue