-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
There's a problem with syntax highlight on these examples:
The following example needs an additional quotation(") mark after the example in order to enable the syntax highlight for the rest of the config file.
map "$uri:$args" $proxy_cache_key {
default $uri$is_args$args;
"~^/get-file/file:.*XXX.*view.*" "$uri?sth=$anArgID?timestamp=$arg_timestamp";
}
and another example which makes the dolar sign to be orange as if it is a string.
log_format bak_cache '$proxy_protocol_addr - $upstream_cache_status [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
Required information for this issue:
- Your VS Code Version: 1.78.2
- Your OS Version: Pop!_OS 22.04 LTS
- Is this extension running on VS Code Remote or https://vscode.dev: No
Steps to Reproduce:
1.Copy pasta the following in an nginx config file
map "$uri:$args" $proxy_cache_key {
default $uri$is_args$args;
"~^/get-file/file:.*XXX.*view.*" "$uri?sth=$anArgID?timestamp=$arg_timestamp";
}
- Add a new server block after the map. The rest of the config file is treated as string, not highlighted.
Metadata
Metadata
Assignees
Labels
No labels