8000 Remove the Prism.tokenize language parameter (#1654) · PrismJS/prism@fbf0b09 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit fbf0b09

Browse files
RunDevelopmentmAAdhaTTah
authored andcommitted
Remove the Prism.tokenize language parameter (#1654)
The `language` parameter of `tokenize` was unused and the only one calling `tokenize` with a value for the said parameter is Markup-templating (removed in #1653). It's not [documented](https://prismjs.com/extending.html#api) either.
1 parent cd058a9 commit fbf0b09

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/prism-core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ var _ = _self.Prism = {
402402
}
403403
},
404404

405-
tokenize: function(text, grammar, language) {
405+
tokenize: function(text, grammar) {
406406
var strarr = [text];
407407

408408
var rest = grammar.rest;

prism.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ var _ = _self.Prism = {
407407
}
408408
},
409409

410-
tokenize: function(text, grammar, language) {
410+
tokenize: function(text, grammar) {
411411
var strarr = [text];
412412

413413
var rest = grammar.rest;

0 commit comments

Comments
 (0)
0