Open pikedave opened 8 years ago
all syntax highlighting is partial or non functional after encountering multi line conditions in conditional expressions
for example
if (!true || req.http.Authorization || req.method !~ "^(GET|HEAD|OPTIONS|PUT|POST|TRACE|DELETE|PURGE)$" || req.http.Cookie ~ "varnish_bypass=1" || req.http.Cookie ~ "adminhtml" ) { return (pipe); }
that if statement breaks the syntax highlighting. putting all conditions on the same line restores highlighting but makes code less readable
Also having this issue
all syntax highlighting is partial or non functional after encountering multi line conditions in conditional expressions
for example
if (!true || req.http.Authorization || req.method !~ "^(GET|HEAD|OPTIONS|PUT|POST|TRACE|DELETE|PURGE)$" || req.http.Cookie ~ "varnish_bypass=1" || req.http.Cookie ~ "adminhtml" ) { return (pipe); }
that if statement breaks the syntax highlighting. putting all conditions on the same line restores highlighting but makes code less readable