The official NGINX Open Source repository.
Go to file
Maxim Dounin bfe36ba318 Contrib: proper syntax parsing in vim syntax highlighting.
Instead of highlighting directives in arbitrary positions, proper
parsing of nginx.conf syntax was implemented, matching what nginx does
internally.  This allows vim to correctly highlight various complex cases,
including:

    return 301 http://example.com/path#fragment";

and also avoids highlighting of parameters as directives, as in

    server_name missing.semicolon.example.com
    index index.php;

where "index" is not a directive but a parameter of the "server_name"
directive due to missing semicolon.

Most important downside of this approach seems to be that there is no
easy way to introduce directive-specific parameters.  As such, only "listen"
directive parameters were preserved.
2017-05-22 16:34:47 +03:00
auto Configure: recent Sun C versions. 2017-05-15 20:09:44 +03:00
conf Added the REQUEST_SCHEME parameter. 2015-06-05 22:23:26 +03:00
contrib Contrib: proper syntax parsing in vim syntax highlighting. 2017-05-22 16:34:47 +03:00
docs nginx-1.13.0-RELEASE 2017-04-25 17:18:21 +03:00
misc Added HTTP/2 to win32 builds. 2017-03-21 17:28:15 +03:00
src Cache: ignore long locked entries during forced expire. 2017-05-18 18:39:16 +03:00
.hgtags release-1.13.0 tag 2017-04-25 17:18:22 +03:00