File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 836
836
}
837
837
838
838
.zig_doc_comment ,
839
- .zig_container_doc_comment {
839
+ .zig_container_doc_comment ,
840
+ .zig_line_comment {
840
841
color : # 545454 ;
841
842
font-style : italic;
842
843
}
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const Tag = {
12
12
number_literal : "number_literal" ,
13
13
doc_comment : "doc_comment" ,
14
14
container_doc_comment : "container_doc_comment" ,
15
+ line_comment : "line_comment" ,
15
16
invalid_periodasterisks : "invalid_periodasterisks" ,
16
17
bang : "bang" ,
17
18
pipe : "pipe" ,
@@ -1699,9 +1700,9 @@ function InnerTokenizer(raw_source) {
1699
1700
return result ;
1700
1701
}
1701
1702
case '\n' : {
1702
- state = State . start ;
1703
- result . loc . start = this . index + 1 ;
1704
- break ;
1703
+ result . tag = Tag . line_comment ;
1704
+ result . loc . end = this . index ;
1705
+ return result ;
1705
1706
}
1706
1707
case '\t' : break ;
1707
1708
//TODO: PORT
You can’t perform that action at this time.
0 commit comments