Skip to content

Fail to syntax highlight #35

@SpyrosPsarras

Description

@SpyrosPsarras

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";
}
  1. 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
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions