Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added some JS punctuation to the highlighter

  • Loading branch information...
commit dc65c4866d64fade390f878ecbf9c93a95d5be9d 1 parent d2b1079
@LeaVerou authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  plugins/code-highlight.js
View
3  plugins/code-highlight.js
@@ -14,7 +14,8 @@ var _ = window.Highlight = {
'keyword': /\b(var|let|if|else|while|do|for|return|in|instanceof|function|new|with|typeof|try|catch|finally)\b/g,
'boolean': /\b(true|false)\b/g,
'number': /\b-?(0x)?\d*\.?\d+\b/g,
- 'regex': /\/.+?\/[gim]{0,3}/g
+ 'regex': /\/.+?\/[gim]{0,3}/g,
+ 'punctuation': /[\{\}\[\];\(\),\.]/g
},
css: {
'comment': /\/\*[\w\W]*?\*\//g,

0 comments on commit dc65c48

Please sign in to comment.
Something went wrong with that request. Please try again.