Skip to content

Commit 6adc143

Browse files
authored
Merge pull request #681 from emilbayes/fix/js-translate-bug
Fix translation bug from cpp to js in TS highlight
2 parents da28043 + d57c145 commit 6adc143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llamafile/server/www/highlight_typescript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class HighlightTypescript extends Highlighter {
205205
this.push("span", "comment");
206206
this.append("/*");
207207
this.state = HighlightTypescript.SLASH_STAR;
208-
} else if (expect_ == HighlightTypescript.EXPECT_VALUE) {
208+
} else if (this.expect == HighlightTypescript.EXPECT_VALUE) {
209209
this.expect = HighlightTypescript.EXPECT_OPERATOR;
210210
this.push("span", "string");
211211
this.append('/');

0 commit comments

Comments
 (0)