Skip to content

Commit

Permalink
Removed useless insertBefore call in Smarty (#1677)
Browse files Browse the repository at this point in the history
Removes a call to `insertBefore` which has no effect in Smarty.
  • Loading branch information
RunDevelopment committed Jan 24, 2019
1 parent 1090b25 commit bc49c36
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions components/prism-smarty.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,6 @@
'keyword': /\b(?:false|off|on|no|true|yes)\b/
};

// Comments are inserted at top so that they can
// surround markup
Prism.languages.insertBefore('smarty', 'tag', {
'smarty-comment': {
pattern: /\{\*[\s\S]*?\*\}/,
alias: ['smarty','comment']
}
});

// Tokenize all inline Smarty expressions
Prism.hooks.add('before-tokenize', function(env) {
var smartyPattern = /\{\*[\s\S]*?\*\}|\{[\s\S]+?\}/g;
Expand Down
2 changes: 1 addition & 1 deletion components/prism-smarty.min.js

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

0 comments on commit bc49c36

Please sign in to comment.