# HG changeset patch # User Ruslan Ermilov # Date 1319096841 0 # Node ID 72524ae5310635ae53d4889246eb74586e369b57 # Parent ee725af08951537e03ec77e7c0779440ff9a26c7 Explicitly marked directives with the block syntax. Such directives will have curly braces around their syntax and defaults appear automatically. Other directives will have a semicolon after their syntax and defaults. diff -r ee725af08951 -r 72524ae53106 dtd/module.dtd --- a/dtd/module.dtd Wed Oct 19 12:39:11 2011 +0000 +++ b/dtd/module.dtd Thu Oct 20 07:47:21 2011 +0000 @@ -19,6 +19,9 @@ > + diff -r ee725af08951 -r 72524ae53106 xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml Wed Oct 19 12:39:11 2011 +0000 +++ b/xml/en/docs/http/ngx_http_core_module.xml Thu Oct 20 07:47:21 2011 +0000 @@ -658,7 +658,7 @@ -method ... { ... } +method ... location @@ -986,14 +986,14 @@ -[ +[ = | ~ | ~* | ^~ ] uri -{ ... } -@name { ... } + +@name server location @@ -1621,7 +1621,7 @@ -{ ... } + http @@ -2016,13 +2016,11 @@ -{ ... } + -{ text/html html; image/gif gif; image/jpeg jpg; -} http server diff -r ee725af08951 -r 72524ae53106 xml/ru/docs/http/ngx_http_charset_module.xml --- a/xml/ru/docs/http/ngx_http_charset_module.xml Wed Oct 19 12:39:11 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_charset_module.xml Thu Oct 20 07:47:21 2011 +0000 @@ -90,7 +90,7 @@ -кодировка1 кодировка2 { ... } +кодировка1 кодировка2 http diff -r ee725af08951 -r 72524ae53106 xml/ru/docs/http/ngx_http_core_module.xml --- a/xml/ru/docs/http/ngx_http_core_module.xml Wed Oct 19 12:39:11 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_core_module.xml Thu Oct 20 07:47:21 2011 +0000 @@ -528,7 +528,7 @@ -методы { ... } +методы location @@ -733,8 +733,8 @@ -[=|~|~*|^~|@] /uri/ -{ ... } +[=|~|~*|^~|@] /uri/ + server @@ -1235,7 +1235,7 @@ -{ ... } + http @@ -1602,13 +1602,11 @@ -{ ... } + -{ text/html html; image/gif gif; image/jpeg jpg; -} http, server, location diff -r ee725af08951 -r 72524ae53106 xml/ru/docs/http/ngx_http_geo_module.xml --- a/xml/ru/docs/http/ngx_http_geo_module.xml Wed Oct 19 12:39:11 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_geo_module.xml Thu Oct 20 07:47:21 2011 +0000 @@ -35,7 +35,7 @@
-[$адрес] $переменная { ... } +[$адрес] $переменная http diff -r ee725af08951 -r 72524ae53106 xml/ru/docs/http/ngx_http_map_module.xml --- a/xml/ru/docs/http/ngx_http_map_module.xml Wed Oct 19 12:39:11 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_map_module.xml Thu Oct 20 07:47:21 2011 +0000 @@ -41,7 +41,7 @@
-$переменная1 $переменная2 { ... } +$переменная1 $переменная2 http diff -r ee725af08951 -r 72524ae53106 xml/ru/docs/http/ngx_http_rewrite_module.xml --- a/xml/ru/docs/http/ngx_http_rewrite_module.xml Wed Oct 19 12:39:11 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_rewrite_module.xml Thu Oct 20 07:47:21 2011 +0000 @@ -50,7 +50,7 @@ -(условие) { ... } +(условие) server, location diff -r ee725af08951 -r 72524ae53106 xml/ru/docs/http/ngx_http_split_clients_module.xml --- a/xml/ru/docs/http/ngx_http_split_clients_module.xml Wed Oct 19 12:39:11 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_split_clients_module.xml Thu Oct 20 07:47:21 2011 +0000 @@ -38,7 +38,7 @@
-$переменная1 $переменная2 { ... } +$переменная1 $переменная2 http diff -r ee725af08951 -r 72524ae53106 xml/ru/docs/http/ngx_http_upstream.xml --- a/xml/ru/docs/http/ngx_http_upstream.xml Wed Oct 19 12:39:11 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_upstream.xml Thu Oct 20 07:47:21 2011 +0000 @@ -159,7 +159,7 @@ -название { ... } +название http diff -r ee725af08951 -r 72524ae53106 xsls/directive.xsls --- a/xsls/directive.xsls Wed Oct 19 12:39:11 2011 +0000 +++ b/xsls/directive.xsls Thu Oct 20 07:47:21 2011 +0000 @@ -37,6 +37,11 @@ X:if "count(node()) != 0" { X:text{ } !!; } + X:if "@block = 'yes'" { + X:text{ \{ ... \}} + } else { + X:text{;} + }
X:if "position() = last()" { @@ -69,7 +74,14 @@ } else { - !{../@name} X:text{ } !!; + + !{../@name} + X:if "count(../syntax[@block='yes'])" { + X:text{ \{} !!; X:text{\}} + } else { + X:text{ } !!; X:text{;} + } + }
X:if "position() = last()" {