Skip to content

Commit

Permalink
Remove useless insertBefore in LESS (#1629)
Browse files Browse the repository at this point in the history
Remove an `insertBefore` call which was intended to swap the order of `punctuation`
and `function`.  But as `function` is already before `punctuation` (in [CSS](https://github.com/PrismJS/prism/blob/master/components/prism-css.js#L18)), it doesn't do anything.
  • Loading branch information
RunDevelopment authored and mAAdhaTTah committed Dec 1, 2018
1 parent 654b527 commit 86d3179
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions components/prism-less.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ Prism.languages.less = Prism.languages.extend('css', {
'operator': /[+\-*\/]/
});

// Invert function and punctuation positions
Prism.languages.insertBefore('less', 'punctuation', {
'function': Prism.languages.less.function
});

Prism.languages.insertBefore('less', 'property', {
'variable': [
// Variable declaration (the colon must be consumed!)
Expand Down
2 changes: 1 addition & 1 deletion components/prism-less.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 86d3179

Please sign in to comment.