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

Support variables with braces 希望添加更好的变量支持 #27

Open
synhi opened this issue Dec 27, 2021 · 1 comment
Open

Support variables with braces 希望添加更好的变量支持 #27

synhi opened this issue Dec 27, 2021 · 1 comment

Comments

@synhi
Copy link

synhi commented Dec 27, 2021

server {
  listen 80;
  server_name ~^(?<sub>.+).example.com$;
  location / {
    proxy_pass http://${sub}.google.com;
  }
}

对于 ${sub} 形式的变量,不论是格式化还是高亮都支持的不太好,尤其是格式化,会出错。
如果放入引号中 "http://${sub}.google.com" 会无法格式化

@hangxingliu
Copy link
Owner

可能 0.4.0 吧

@hangxingliu hangxingliu changed the title 希望添加更好的变量支持 Support variables with braces 希望添加更好的变量支持 Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants