mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Update packages, including new highlight.js which supports our newer keywords and triple backticks (docs output is unchanged)
This commit is contained in:
parent
85b3be9ce3
commit
818d262843
2 changed files with 2 additions and 6 deletions
|
@ -13,10 +13,6 @@ module.exports = ->
|
|||
js = js.replace /^\/\/ generated.*?\n/i, ''
|
||||
|
||||
cshtml = "<pre><code>#{hljs.highlight('coffeescript', cs).value}</code></pre>"
|
||||
# Temporary fix until highlight.js adds support for newer CoffeeScript keywords
|
||||
# Added in https://github.com/isagalaev/highlight.js/pull/1357, awaiting release
|
||||
if file in ['generator_iteration', 'generators', 'modules']
|
||||
cshtml = cshtml.replace /(yield|import|export|from|as|default) /g, '<span class="keyword">$1</span> '
|
||||
jshtml = "<pre><code>#{hljs.highlight('javascript', js).value}</code></pre>"
|
||||
append = if executable is yes then '' else "alert(#{executable});".replace /"/g, '"'
|
||||
if executable and executable isnt yes
|
||||
|
|
|
@ -40,8 +40,8 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"docco": "~0.7.0",
|
||||
"google-closure-compiler-js": "^20161024.0.0",
|
||||
"highlight.js": "~9.8.0",
|
||||
"google-closure-compiler-js": "^20161201.0.0",
|
||||
"highlight.js": "~9.9.0",
|
||||
"jison": ">=0.4.17",
|
||||
"marked": "^0.3.6",
|
||||
"underscore": "~1.8.3"
|
||||
|
|
Loading…
Reference in a new issue