jacobbednarz / atom-language-varnish

Language support for Varnish configuration files
7 stars 2 forks source link

VCL Syntax Highlighting Does Not Work for Multi Line Conditions #5

Open pikedave opened 8 years ago

pikedave commented 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

seanogdev commented 7 years ago

Also having this issue