Skip to content

Commit

Permalink
Remove the Prism.tokenize language parameter (#1654)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RunDevelopment authored and mAAdhaTTah committed Jan 22, 2019
1 parent cd058a9 commit fbf0b09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/prism-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ var _ = _self.Prism = {
}
},

tokenize: function(text, grammar, language) {
tokenize: function(text, grammar) {
var strarr = [text];

var rest = grammar.rest;
Expand Down
2 changes: 1 addition & 1 deletion prism.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ var _ = _self.Prism = {
}
},

tokenize: function(text, grammar, language) {
tokenize: function(text, grammar) {
var strarr = [text];

var rest = grammar.rest;
Expand Down

0 comments on commit fbf0b09

Please sign in to comment.