comparison src/core/ngx_conf_file.c @ 7177:d91a8c4ac6bb

Allowed configuration token to start with a variable. Specifically, it is now allowed to start with a variable expression with braces: ${name}. The opening curly bracket in such a token was previously considered the start of a new block. Variables located anywhere else in a token worked fine: foo${name}.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 21 Dec 2017 13:29:40 +0300
parents 577628e6b6a6
children f17e313009b0
comparison
equal deleted inserted replaced
7176:7f28b61c92f0 7177:d91a8c4ac6bb
707 start++; 707 start++;
708 s_quoted = 1; 708 s_quoted = 1;
709 last_space = 0; 709 last_space = 0;
710 continue; 710 continue;
711 711
712 case '$':
713 variable = 1;
714 last_space = 0;
715 continue;
716
712 default: 717 default:
713 last_space = 0; 718 last_space = 0;
714 } 719 }
715 720
716 } else { 721 } else {