mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Add Makefile tests for upgraded grammar: comma, comment, shebang (#154625)
Add Makefile tests for upgraded grammar: comma, comment, shebang. 1. Add comma separator for function calls and conditions. 2. Escaping a comment with an odd count of backslashes (\#, \\\#). 3. Match debian/rules files based on shebang. Co-authored-by: Alex Ross <alros@microsoft.com>
This commit is contained in:
parent
acd1db24f2
commit
491a83446e
|
@ -77,6 +77,10 @@ var!=echo val
|
|||
var:=val \
|
||||
notvar=butval
|
||||
var:=$(val:.c=.o)
|
||||
var:=blah#comment
|
||||
var?=blah\#not_a_comment
|
||||
var:=blah\\#comment
|
||||
var!=blah\\\#not_a_comment
|
||||
|
||||
var-$(nested-var)=val
|
||||
|
||||
|
|
|
@ -3527,6 +3527,198 @@
|
|||
"hc_light": "string: #0F4A85"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"hc_light": "variable: #001080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"hc_light": "default: #292929"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "blah",
|
||||
"t": "source.makefile",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF",
|
||||
"hc_light": "default: #292929"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"hc_light": "comment: #515151"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "comment",
|
||||
"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",
|
||||
"hc_light": "comment: #515151"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"hc_light": "variable: #001080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"hc_light": "default: #292929"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "blah\\#not_a_comment",
|
||||
"t": "source.makefile",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF",
|
||||
"hc_light": "default: #292929"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"hc_light": "variable: #001080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"hc_light": "default: #292929"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "blah\\\\",
|
||||
"t": "source.makefile",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF",
|
||||
"hc_light": "default: #292929"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"hc_light": "comment: #515151"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "comment",
|
||||
"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",
|
||||
"hc_light": "comment: #515151"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"hc_light": "variable: #001080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"hc_light": "default: #292929"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "blah\\\\\\#not_a_comment",
|
||||
"t": "source.makefile",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF",
|
||||
"hc_light": "default: #292929"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "var-",
|
||||
"t": "source.makefile variable.other.makefile",
|
||||
|
|
Loading…
Reference in a new issue