File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 836836 }
837837
838838 .zig_doc_comment ,
839- .zig_container_doc_comment {
839+ .zig_container_doc_comment ,
840+ .zig_line_comment {
840841 color : # 545454 ;
841842 font-style : italic;
842843 }
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const Tag = {
1212 number_literal : "number_literal" ,
1313 doc_comment : "doc_comment" ,
1414 container_doc_comment : "container_doc_comment" ,
15+ line_comment : "line_comment" ,
1516 invalid_periodasterisks : "invalid_periodasterisks" ,
1617 bang : "bang" ,
1718 pipe : "pipe" ,
@@ -1699,9 +1700,9 @@ function InnerTokenizer(raw_source) {
16991700 return result ;
17001701 }
17011702 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 ;
17051706 }
17061707 case '\t' : break ;
17071708 //TODO: PORT
You can’t perform that action at this time.
0 commit comments