mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
autodoc: Added line_comment tokens to ziglexer.js tokenizer
This commit is contained in:
parent
c4e62be62e
commit
b317ca4d6f
2 changed files with 6 additions and 4 deletions
|
|
@ -836,7 +836,8 @@
|
|||
}
|
||||
|
||||
.zig_doc_comment,
|
||||
.zig_container_doc_comment {
|
||||
.zig_container_doc_comment,
|
||||
.zig_line_comment {
|
||||
color: #545454;
|
||||
font-style: italic;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ const Tag = {
|
|||
number_literal: "number_literal",
|
||||
doc_comment: "doc_comment",
|
||||
container_doc_comment: "container_doc_comment",
|
||||
line_comment: "line_comment",
|
||||
invalid_periodasterisks: "invalid_periodasterisks",
|
||||
bang: "bang",
|
||||
pipe: "pipe",
|
||||
|
|
@ -1699,9 +1700,9 @@ function InnerTokenizer(raw_source) {
|
|||
return result;
|
||||
}
|
||||
case '\n': {
|
||||
state = State.start;
|
||||
result.loc.start = this.index + 1;
|
||||
break;
|
||||
result.tag = Tag.line_comment;
|
||||
result.loc.end = this.index;
|
||||
return result;
|
||||
}
|
||||
case '\t': break;
|
||||
//TODO: PORT
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue