BEGIN {
array["foo", "bar"] = "hello world"
print "index [\"foo\"] is" (("foo") in array ? "" : "n't") " part of the array"
print "index [\"foo\",\"bar\"] is" (("foo", "bar") in array ? "" : "n't") " part of the array"
}
The index ("foo", "bar") provides a Syntax error when editing the script with nvim and the awk-language-server plugin.
The index ("foo") doesn't show any error.
Given the following
test.awk
script:The index
("foo", "bar")
provides aSyntax error
when editing the script withnvim
and theawk-language-server
plugin. The index("foo")
doesn't show any error.