Skip to content

Commit

Permalink
Fix translation bug from cpp to js in TS highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
emilbayes committed Jan 18, 2025
1 parent ef7321e commit d57c145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llamafile/server/www/highlight_typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class HighlightTypescript extends Highlighter {
this.push("span", "comment");
this.append("/*");
this.state = HighlightTypescript.SLASH_STAR;
} else if (expect_ == HighlightTypescript.EXPECT_VALUE) {
} else if (this.expect == HighlightTypescript.EXPECT_VALUE) {
this.expect = HighlightTypescript.EXPECT_OPERATOR;
this.push("span", "string");
this.append('/');
Expand Down

0 comments on commit d57c145

Please sign in to comment.