Skip to content

Commit

Permalink
Fix Incorrect Module Reference for TypeScriptHighlightRules (#5531)
Browse files Browse the repository at this point in the history
* fix module reference for tsx highlight mode

* fix formatting

---------

Co-authored-by: nightwing <amirjanyan@gmail.com>
  • Loading branch information
baguskah and nightwing committed Apr 13, 2024
1 parent 5671be6 commit 7869158
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/mode/tsx_highlight_rules.js
@@ -1,13 +1,12 @@
"use strict";

var oop = require("../lib/oop");
var TypeScriptHighlightRules = require("./javascript_highlight_rules").TypeScriptHighlightRules;

var TypeScriptHighlightRules = require("./typescript_highlight_rules").TypeScriptHighlightRules;

var TsxHighlightRules = function () {
TypeScriptHighlightRules.call(this, {
jsx: true
});
TypeScriptHighlightRules.call(this, {
jsx: true
});
};
oop.inherits(TsxHighlightRules, TypeScriptHighlightRules);

Expand Down

0 comments on commit 7869158

Please sign in to comment.