Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to syntax highlight #35

Open
SpyPower opened this issue May 24, 2023 · 0 comments
Open

Fail to syntax highlight #35

SpyPower opened this issue May 24, 2023 · 0 comments
Assignees

Comments

@SpyPower
Copy link

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.
@hangxingliu hangxingliu self-assigned this Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants