Skip to content

Commit

Permalink
Fix Ruby builtins in web gui
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Nov 14, 2024
1 parent 0f01eb7 commit 8413a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llamafile/server/www/highlight_ruby.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ class HighlightRuby extends Highlighter {
} else if (this.word == "class" || this.word == "module") {
this.expect = HighlightRuby.EXPECT_OPERATOR;
}
} else if (this.expect = HighlightRuby.EXPECT_EXPR &&
} else if (this.expect == HighlightRuby.EXPECT_EXPR &&
RUBY_BUILTINS.has(this.word)) {
this.push("span", "builtin");
this.append(this.word);
Expand Down

0 comments on commit 8413a21

Please sign in to comment.