| ... | ... | @@ -52,255 +52,255 @@ |
| 52 | 52 | #contents-wrapper { |
| 53 | 53 | margin-left: calc(var(--nav-width) + var(--nav-margin-l)); |
| 54 | 54 | } |
| 55 | | } |
| 56 | | |
| 57 | | a:hover,a:focus { |
| 58 | | background: #fff2a8; |
| 59 | | } |
| 60 | | dt { |
| 61 | | font-weight: bold; |
| 62 | | } |
| 63 | | table, th, td { |
| 64 | | border-collapse: collapse; |
| 65 | | border: 1px solid grey; |
| 66 | | } |
| 67 | | th, td { |
| 68 | | padding: 0.1em; |
| 69 | | } |
| 70 | | th[scope=row] { |
| 71 | | text-align: left; |
| 72 | | font-weight: normal; |
| 73 | | } |
| 74 | | .t0_1, .t37, .t37_1 { |
| 75 | | font-weight: bold; |
| 76 | | } |
| 77 | | .t2_0 { |
| 78 | | color: #575757; |
| 79 | | } |
| 80 | | .t31_1 { |
| 81 | | color: #b40000; |
| 82 | | } |
| 83 | | .t32_1 { |
| 84 | | color: green; |
| 85 | | } |
| 86 | | .t36_1 { |
| 87 | | color: #005C7A; |
| 88 | | } |
| 89 | | .file { |
| 90 | | font-weight: bold; |
| 91 | | border: unset; |
| 92 | | } |
| 93 | | code { |
| 94 | | background: #f8f8f8; |
| 95 | | border: 1px dotted silver; |
| 96 | | padding-left: 0.3em; |
| 97 | | padding-right: 0.3em; |
| 98 | | } |
| 99 | | pre > code { |
| 100 | | display: block; |
| 101 | | overflow: auto; |
| 102 | | padding: 0.5em; |
| 103 | | border: 1px solid #eee; |
| 104 | | line-height: normal; |
| 105 | | } |
| 106 | | samp { |
| 107 | | background: #fafafa; |
| 108 | | } |
| 109 | | pre > samp { |
| 110 | | display: block; |
| 111 | | overflow: auto; |
| 112 | | padding: 0.5em; |
| 113 | | border: 1px solid #eee; |
| 114 | | line-height: normal; |
| 115 | | } |
| 116 | | kbd { |
| 117 | | font-weight: bold; |
| 118 | | } |
| 119 | | .table-wrapper { |
| 120 | | width: 100%; |
| 121 | | overflow-x: auto; |
| 122 | | } |
| 55 | } |
| 123 | 56 | |
| 124 | | .tok-kw { |
| 125 | | color: #333; |
| 126 | | font-weight: bold; |
| 127 | | } |
| 128 | | .tok-str { |
| 129 | | color: #d14; |
| 130 | | } |
| 131 | | .tok-builtin { |
| 132 | | color: #005C7A; |
| 133 | | } |
| 134 | | .tok-comment { |
| 135 | | color: #545454; |
| 136 | | font-style: italic; |
| 137 | | } |
| 138 | | .tok-fn { |
| 139 | | color: #900; |
| 140 | | font-weight: bold; |
| 141 | | } |
| 142 | | .tok-null { |
| 143 | | color: #005C5C; |
| 144 | | } |
| 145 | | .tok-number { |
| 146 | | color: #005C5C; |
| 147 | | } |
| 148 | | .tok-type { |
| 149 | | color: #458; |
| 57 | a:hover,a:focus { |
| 58 | background: #fff2a8; |
| 59 | } |
| 60 | dt { |
| 150 | 61 | font-weight: bold; |
| 151 | | } |
| 152 | | |
| 153 | | figure { |
| 154 | | margin: auto 0; |
| 155 | | } |
| 156 | | figure pre { |
| 157 | | margin-top: 0; |
| 158 | | } |
| 159 | | |
| 160 | | figcaption { |
| 161 | | padding-left: 0.5em; |
| 162 | | font-size: small; |
| 163 | | border-top-left-radius: 5px; |
| 164 | | border-top-right-radius: 5px; |
| 165 | | } |
| 166 | | figcaption.zig-cap { |
| 167 | | background: #fcdba5; |
| 168 | | } |
| 169 | | figcaption.c-cap { |
| 170 | | background: #a8b9cc; |
| 171 | | color: #000; |
| 172 | | } |
| 173 | | figcaption.peg-cap { |
| 174 | | background: #fcdba5; |
| 175 | | } |
| 176 | | figcaption.javascript-cap { |
| 177 | | background: #365d95; |
| 178 | | color: #fff; |
| 179 | | } |
| 180 | | figcaption.shell-cap { |
| 181 | | background: #ccc; |
| 182 | | color: #000; |
| 183 | | } |
| 184 | | |
| 185 | | aside { |
| 186 | | border-left: 0.25em solid #f7a41d; |
| 187 | | padding: 0 1em 0 1em; |
| 188 | | } |
| 189 | | |
| 190 | | h1 a, h2 a, h3 a, h4 a, h5 a { |
| 191 | | text-decoration: none; |
| 192 | | color: #333; |
| 193 | | } |
| 194 | | |
| 195 | | a.hdr { |
| 196 | | visibility: hidden; |
| 197 | | } |
| 198 | | h1:hover > a.hdr, h2:hover > a.hdr, h3:hover > a.hdr, h4:hover > a.hdr, h5:hover > a.hdr { |
| 199 | | visibility: visible; |
| 200 | | } |
| 201 | | |
| 202 | | pre { |
| 203 | | counter-reset: line; |
| 204 | | } |
| 205 | | pre .line:before { |
| 206 | | counter-increment: line; |
| 207 | | content: counter(line); |
| 208 | | display: inline-block; |
| 209 | | padding-right: 1em; |
| 210 | | width: 2em; |
| 211 | | text-align: right; |
| 212 | | color: #999; |
| 213 | | } |
| 214 | | th pre code { |
| 215 | | background: none; |
| 216 | | } |
| 217 | | th .line:before { |
| 218 | | display: none; |
| 219 | | } |
| 220 | | |
| 221 | | @media (prefers-color-scheme: dark) { |
| 222 | | body{ |
| 223 | | background:#121212; |
| 224 | | color: #ccc; |
| 225 | 62 | } |
| 226 | | a { |
| 227 | | color: #88f; |
| 63 | table, th, td { |
| 64 | border-collapse: collapse; |
| 65 | border: 1px solid grey; |
| 228 | 66 | } |
| 229 | | a:hover,a:focus { |
| 230 | | color: #000; |
| 67 | th, td { |
| 68 | padding: 0.1em; |
| 231 | 69 | } |
| 232 | | table, th, td { |
| 233 | | border-color: grey; |
| 70 | th[scope=row] { |
| 71 | text-align: left; |
| 72 | font-weight: normal; |
| 73 | } |
| 74 | .t0_1, .t37, .t37_1 { |
| 75 | font-weight: bold; |
| 234 | 76 | } |
| 235 | 77 | .t2_0 { |
| 236 | | color: grey; |
| 78 | color: #575757; |
| 237 | 79 | } |
| 238 | 80 | .t31_1 { |
| 239 | | color: red; |
| 81 | color: #b40000; |
| 240 | 82 | } |
| 241 | 83 | .t32_1 { |
| 242 | | color: #00B800; |
| 84 | color: green; |
| 243 | 85 | } |
| 244 | 86 | .t36_1 { |
| 245 | | color: #0086b3; |
| 87 | color: #005C7A; |
| 88 | } |
| 89 | .file { |
| 90 | font-weight: bold; |
| 91 | border: unset; |
| 246 | 92 | } |
| 247 | 93 | code { |
| 248 | | background: #222; |
| 249 | | border-color: #444; |
| 94 | background: #f8f8f8; |
| 95 | border: 1px dotted silver; |
| 96 | padding-left: 0.3em; |
| 97 | padding-right: 0.3em; |
| 250 | 98 | } |
| 251 | 99 | pre > code { |
| 252 | | color: #ccc; |
| 253 | | background: #222; |
| 254 | | border: unset; |
| 100 | display: block; |
| 101 | overflow: auto; |
| 102 | padding: 0.5em; |
| 103 | border: 1px solid #eee; |
| 104 | line-height: normal; |
| 255 | 105 | } |
| 256 | 106 | samp { |
| 257 | | background: #000; |
| 258 | | color: #ccc; |
| 107 | background: #fafafa; |
| 259 | 108 | } |
| 260 | 109 | pre > samp { |
| 261 | | border: unset; |
| 110 | display: block; |
| 111 | overflow: auto; |
| 112 | padding: 0.5em; |
| 113 | border: 1px solid #eee; |
| 114 | line-height: normal; |
| 115 | } |
| 116 | kbd { |
| 117 | font-weight: bold; |
| 118 | } |
| 119 | .table-wrapper { |
| 120 | width: 100%; |
| 121 | overflow-x: auto; |
| 262 | 122 | } |
| 123 | |
| 263 | 124 | .tok-kw { |
| 264 | | color: #eee; |
| 125 | color: #333; |
| 126 | font-weight: bold; |
| 265 | 127 | } |
| 266 | 128 | .tok-str { |
| 267 | | color: #2e5; |
| 129 | color: #d14; |
| 268 | 130 | } |
| 269 | 131 | .tok-builtin { |
| 270 | | color: #ff894c; |
| 132 | color: #005C7A; |
| 271 | 133 | } |
| 272 | 134 | .tok-comment { |
| 273 | | color: #aa7; |
| 135 | color: #545454; |
| 136 | font-style: italic; |
| 274 | 137 | } |
| 275 | 138 | .tok-fn { |
| 276 | | color: #B1A0F8; |
| 139 | color: #900; |
| 140 | font-weight: bold; |
| 277 | 141 | } |
| 278 | 142 | .tok-null { |
| 279 | | color: #ff8080; |
| 143 | color: #005C5C; |
| 280 | 144 | } |
| 281 | 145 | .tok-number { |
| 282 | | color: #ff8080; |
| 146 | color: #005C5C; |
| 283 | 147 | } |
| 284 | 148 | .tok-type { |
| 285 | | color: #68f; |
| 149 | color: #458; |
| 150 | font-weight: bold; |
| 286 | 151 | } |
| 287 | | h1 a, h2 a, h3 a, h4 a, h5 a { |
| 288 | | color: #aaa; |
| 152 | |
| 153 | figure { |
| 154 | margin: auto 0; |
| 155 | } |
| 156 | figure pre { |
| 157 | margin-top: 0; |
| 158 | } |
| 159 | |
| 160 | figcaption { |
| 161 | padding-left: 0.5em; |
| 162 | font-size: small; |
| 163 | border-top-left-radius: 5px; |
| 164 | border-top-right-radius: 5px; |
| 289 | 165 | } |
| 290 | 166 | figcaption.zig-cap { |
| 291 | | background-color: #b27306; |
| 292 | | color: #000; |
| 167 | background: #fcdba5; |
| 168 | } |
| 169 | figcaption.c-cap { |
| 170 | background: #a8b9cc; |
| 171 | color: #000; |
| 293 | 172 | } |
| 294 | 173 | figcaption.peg-cap { |
| 295 | | background-color: #b27306; |
| 296 | | color: #000; |
| 174 | background: #fcdba5; |
| 297 | 175 | } |
| 298 | | figcaption.shell-cap { |
| 299 | | background: #2a2a2a; |
| 176 | figcaption.javascript-cap { |
| 177 | background: #365d95; |
| 300 | 178 | color: #fff; |
| 301 | 179 | } |
| 302 | | } |
| 303 | | </style> |
| 180 | figcaption.shell-cap { |
| 181 | background: #ccc; |
| 182 | color: #000; |
| 183 | } |
| 184 | |
| 185 | aside { |
| 186 | border-left: 0.25em solid #f7a41d; |
| 187 | padding: 0 1em 0 1em; |
| 188 | } |
| 189 | |
| 190 | h1 a, h2 a, h3 a, h4 a, h5 a { |
| 191 | text-decoration: none; |
| 192 | color: #333; |
| 193 | } |
| 194 | |
| 195 | a.hdr { |
| 196 | visibility: hidden; |
| 197 | } |
| 198 | h1:hover > a.hdr, h2:hover > a.hdr, h3:hover > a.hdr, h4:hover > a.hdr, h5:hover > a.hdr { |
| 199 | visibility: visible; |
| 200 | } |
| 201 | |
| 202 | pre { |
| 203 | counter-reset: line; |
| 204 | } |
| 205 | pre .line:before { |
| 206 | counter-increment: line; |
| 207 | content: counter(line); |
| 208 | display: inline-block; |
| 209 | padding-right: 1em; |
| 210 | width: 2em; |
| 211 | text-align: right; |
| 212 | color: #999; |
| 213 | } |
| 214 | th pre code { |
| 215 | background: none; |
| 216 | } |
| 217 | th .line:before { |
| 218 | display: none; |
| 219 | } |
| 220 | |
| 221 | @media (prefers-color-scheme: dark) { |
| 222 | body{ |
| 223 | background:#121212; |
| 224 | color: #ccc; |
| 225 | } |
| 226 | a { |
| 227 | color: #88f; |
| 228 | } |
| 229 | a:hover,a:focus { |
| 230 | color: #000; |
| 231 | } |
| 232 | table, th, td { |
| 233 | border-color: grey; |
| 234 | } |
| 235 | .t2_0 { |
| 236 | color: grey; |
| 237 | } |
| 238 | .t31_1 { |
| 239 | color: red; |
| 240 | } |
| 241 | .t32_1 { |
| 242 | color: #00B800; |
| 243 | } |
| 244 | .t36_1 { |
| 245 | color: #0086b3; |
| 246 | } |
| 247 | code { |
| 248 | background: #222; |
| 249 | border-color: #444; |
| 250 | } |
| 251 | pre > code { |
| 252 | color: #ccc; |
| 253 | background: #222; |
| 254 | border: unset; |
| 255 | } |
| 256 | samp { |
| 257 | background: #000; |
| 258 | color: #ccc; |
| 259 | } |
| 260 | pre > samp { |
| 261 | border: unset; |
| 262 | } |
| 263 | .tok-kw { |
| 264 | color: #eee; |
| 265 | } |
| 266 | .tok-str { |
| 267 | color: #2e5; |
| 268 | } |
| 269 | .tok-builtin { |
| 270 | color: #ff894c; |
| 271 | } |
| 272 | .tok-comment { |
| 273 | color: #aa7; |
| 274 | } |
| 275 | .tok-fn { |
| 276 | color: #B1A0F8; |
| 277 | } |
| 278 | .tok-null { |
| 279 | color: #ff8080; |
| 280 | } |
| 281 | .tok-number { |
| 282 | color: #ff8080; |
| 283 | } |
| 284 | .tok-type { |
| 285 | color: #68f; |
| 286 | } |
| 287 | h1 a, h2 a, h3 a, h4 a, h5 a { |
| 288 | color: #aaa; |
| 289 | } |
| 290 | figcaption.zig-cap { |
| 291 | background-color: #b27306; |
| 292 | color: #000; |
| 293 | } |
| 294 | figcaption.peg-cap { |
| 295 | background-color: #b27306; |
| 296 | color: #000; |
| 297 | } |
| 298 | figcaption.shell-cap { |
| 299 | background: #2a2a2a; |
| 300 | color: #fff; |
| 301 | } |
| 302 | } |
| 303 | </style> |
| 304 | 304 | </head> |
| 305 | 305 | <body> |
| 306 | 306 | <header><h1>Zig Language Reference</h1></header> |
| ... | ... | @@ -535,8 +535,8 @@ const Timestamp = struct { |
| 535 | 535 | {#header_close#} |
| 536 | 536 | {#header_open|Top-Level Doc Comments#} |
| 537 | 537 | <p>User documentation that doesn't belong to whatever |
| 538 | | immediately follows it, like package-level documentation, goes |
| 539 | | in top-level doc comments. A top-level doc comment is one that |
| 538 | immediately follows it, like container level documentation, goes |
| 539 | in top level doc comments. A top level doc comment is one that |
| 540 | 540 | begins with two slashes and an exclamation point: |
| 541 | 541 | {#syntax#}//!{#endsyntax#}.</p> |
| 542 | 542 | {#code_begin|syntax|tldoc_comments#} |