| author | |
| committer | |
| log | a92b14426027a893a6e03e42383693a637e2c1c0 |
| tree | 08e6272c336d0d418b7630d190127f5f257f0215 |
| parent | 0b440d9e297767c3f31460d569d84103d7dcdba9 |
2 files changed, 6 insertions(+), 6 deletions(-)
doc/docgen.zig+3-3| ... | @@ -313,7 +313,7 @@ const SyntaxBlock = struct { | ... | @@ -313,7 +313,7 @@ const SyntaxBlock = struct { |
| 313 | const SourceType = enum { | 313 | const SourceType = enum { |
| 314 | zig, | 314 | zig, |
| 315 | c, | 315 | c, |
| 316 | y, | 316 | peg, |
| 317 | javascript, | 317 | javascript, |
| 318 | }; | 318 | }; |
| 319 | }; | 319 | }; |
| ... | @@ -667,8 +667,8 @@ fn genToc(allocator: *Allocator, tokenizer: *Tokenizer) !Toc { | ... | @@ -667,8 +667,8 @@ fn genToc(allocator: *Allocator, tokenizer: *Tokenizer) !Toc { |
| 667 | source_type = SyntaxBlock.SourceType.zig; | 667 | source_type = SyntaxBlock.SourceType.zig; |
| 668 | } else if (mem.eql(u8, source_type_str, "c")) { | 668 | } else if (mem.eql(u8, source_type_str, "c")) { |
| 669 | source_type = SyntaxBlock.SourceType.c; | 669 | source_type = SyntaxBlock.SourceType.c; |
| 670 | } else if (mem.eql(u8, source_type_str, "y")) { | 670 | } else if (mem.eql(u8, source_type_str, "peg")) { |
| 671 | source_type = SyntaxBlock.SourceType.y; | 671 | source_type = SyntaxBlock.SourceType.peg; |
| 672 | } else if (mem.eql(u8, source_type_str, "javascript")) { | 672 | } else if (mem.eql(u8, source_type_str, "javascript")) { |
| 673 | source_type = SyntaxBlock.SourceType.javascript; | 673 | source_type = SyntaxBlock.SourceType.javascript; |
| 674 | } else { | 674 | } else { |
doc/langref.html.in+3-3| ... | @@ -170,7 +170,7 @@ | ... | @@ -170,7 +170,7 @@ |
| 170 | background: #a8b9cc; | 170 | background: #a8b9cc; |
| 171 | color: #000; | 171 | color: #000; |
| 172 | } | 172 | } |
| 173 | figcaption.y-cap { | 173 | figcaption.peg-cap { |
| 174 | background: #fcdba5; | 174 | background: #fcdba5; |
| 175 | } | 175 | } |
| 176 | figcaption.javascript-cap { | 176 | figcaption.javascript-cap { |
| ... | @@ -291,7 +291,7 @@ | ... | @@ -291,7 +291,7 @@ |
| 291 | background-color: #b27306; | 291 | background-color: #b27306; |
| 292 | color: #000; | 292 | color: #000; |
| 293 | } | 293 | } |
| 294 | figcaption.y-cap { | 294 | figcaption.peg-cap { |
| 295 | background-color: #b27306; | 295 | background-color: #b27306; |
| 296 | color: #000; | 296 | color: #000; |
| 297 | } | 297 | } |
| ... | @@ -11657,7 +11657,7 @@ fn readU32Be() u32 {} | ... | @@ -11657,7 +11657,7 @@ fn readU32Be() u32 {} |
| 11657 | {#header_close#} | 11657 | {#header_close#} |
| 11658 | 11658 | ||
| 11659 | {#header_open|Grammar#} | 11659 | {#header_open|Grammar#} |
| 11660 | {#syntax_block|y|grammar.y#}Root <- skip container_doc_comment? ContainerMembers eof | 11660 | {#syntax_block|peg|grammar.y#}Root <- skip container_doc_comment? ContainerMembers eof |
| 11661 | 11661 | ||
| 11662 | # *** Top level *** | 11662 | # *** Top level *** |
| 11663 | ContainerMembers <- ContainerDeclarations (ContainerField COMMA)* (ContainerField / ContainerDeclarations) | 11663 | ContainerMembers <- ContainerDeclarations (ContainerField COMMA)* (ContainerField / ContainerDeclarations) |