CS-Notes/docs/_style/prism-master/tests/languages/powershell/issue1407.test

43 lines
905 B
Plaintext
Raw Normal View History

2018-12-19 14:09:39 +08:00
While($true){
Write-Output "$($($InFiles | Where-Object {$_.ToCopy -eq 0}).count)"
}
----------------------------------------------------
[
["keyword", "While"],
["punctuation", "("],
["boolean", "$true"],
["punctuation", ")"],
["punctuation", "{"],
["function", "Write-Output"],
["string", [
"\"",
["function", [
"$",
["punctuation", "("],
"$",
["punctuation", "("],
["variable", "$InFiles"],
["punctuation", "|"],
["function", "Where-Object"],
["punctuation", "{"],
["variable", "$_"],
["punctuation", "."],
"ToCopy ",
["operator", "-eq"],
" 0",
["punctuation", "}"],
["punctuation", ")"],
["punctuation", "."],
"count",
["punctuation", ")"]
]],
"\""
]],
["punctuation", "}"]
]
----------------------------------------------------
Checks for nested expressions in strings. See #1407