Skip to content

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

@synhi

Description

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

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions