From b28d68efbf216243390f3b878190239eb2f9c500 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Mon, 14 Jan 2019 12:46:35 -0500 Subject: [PATCH] DEV: Use yarn to manage Highlight.js dependency Moves Highlight.js files to vendor/assets/javascripts Adds Highlight.js in yarn package management Removes old rake task and reliance on NPM to build Highlight.js Highlight.js is now integrated in the "javascript:update" rake task --- lib/highlight_js/assets/lang/xquery.js | 1 - lib/highlight_js/highlight_js.rb | 15 ++++++----- lib/tasks/highlight.rake | 25 ------------------- lib/tasks/javascript.rake | 15 +++++++++++ package.json | 1 + .../javascripts/highlightjs/highlight.min.js | 0 .../highlightjs/languages/1c.min.js | 0 .../highlightjs/languages/abnf.min.js | 0 .../highlightjs/languages/accesslog.min.js | 0 .../highlightjs/languages/actionscript.min.js | 0 .../highlightjs/languages/ada.min.js | 0 .../highlightjs/languages/angelscript.min.js | 0 .../highlightjs/languages/apache.min.js | 0 .../highlightjs/languages/applescript.min.js | 0 .../highlightjs/languages/arcade.min.js | 0 .../highlightjs/languages/arduino.min.js | 0 .../highlightjs/languages/armasm.min.js | 0 .../highlightjs/languages/asciidoc.min.js | 0 .../highlightjs/languages/aspectj.min.js | 0 .../highlightjs/languages/autohotkey.min.js | 0 .../highlightjs/languages/autoit.min.js | 0 .../highlightjs/languages/avrasm.min.js | 0 .../highlightjs/languages/awk.min.js | 0 .../highlightjs/languages/axapta.min.js | 0 .../highlightjs/languages/bash.min.js | 0 .../highlightjs/languages/basic.min.js | 0 .../highlightjs/languages/bnf.min.js | 0 .../highlightjs/languages/brainfuck.min.js | 0 .../highlightjs/languages/cal.min.js | 0 .../highlightjs/languages/capnproto.min.js | 0 .../highlightjs/languages/ceylon.min.js | 0 .../highlightjs/languages/clean.min.js | 0 .../highlightjs/languages/clojure-repl.min.js | 0 .../highlightjs/languages/clojure.min.js | 0 .../highlightjs/languages/cmake.min.js | 0 .../highlightjs/languages/coffeescript.min.js | 0 .../highlightjs/languages/coq.min.js | 0 .../highlightjs/languages/cos.min.js | 0 .../highlightjs/languages/cpp.min.js | 0 .../highlightjs/languages/crmsh.min.js | 0 .../highlightjs/languages/crystal.min.js | 0 .../highlightjs/languages/cs.min.js | 0 .../highlightjs/languages/csp.min.js | 0 .../highlightjs/languages/css.min.js | 0 .../highlightjs/languages/d.min.js | 0 .../highlightjs/languages/dart.min.js | 0 .../highlightjs/languages/delphi.min.js | 0 .../highlightjs/languages/diff.min.js | 0 .../highlightjs/languages/django.min.js | 0 .../highlightjs/languages/dns.min.js | 0 .../highlightjs/languages/dockerfile.min.js | 0 .../highlightjs/languages/dos.min.js | 0 .../highlightjs/languages/dsconfig.min.js | 0 .../highlightjs/languages/dts.min.js | 0 .../highlightjs/languages/dust.min.js | 0 .../highlightjs/languages/ebnf.min.js | 0 .../highlightjs/languages/elixir.min.js | 0 .../highlightjs/languages/elm.min.js | 0 .../highlightjs/languages/erb.min.js | 0 .../highlightjs/languages/erlang-repl.min.js | 0 .../highlightjs/languages/erlang.min.js | 0 .../highlightjs/languages/excel.min.js | 0 .../highlightjs/languages/fix.min.js | 0 .../highlightjs/languages/flix.min.js | 0 .../highlightjs/languages/fortran.min.js | 0 .../highlightjs/languages/fsharp.min.js | 0 .../highlightjs/languages/gams.min.js | 0 .../highlightjs/languages/gauss.min.js | 0 .../highlightjs/languages/gcode.min.js | 0 .../highlightjs/languages/gherkin.min.js | 0 .../highlightjs/languages/glsl.min.js | 0 .../highlightjs/languages/gml.min.js | 0 .../highlightjs/languages/go.min.js | 0 .../highlightjs/languages/golo.min.js | 0 .../highlightjs/languages/gradle.min.js | 0 .../highlightjs/languages/groovy.min.js | 0 .../highlightjs/languages/haml.min.js | 0 .../highlightjs/languages/handlebars.min.js | 0 .../highlightjs/languages/haskell.min.js | 0 .../highlightjs/languages/haxe.min.js | 0 .../highlightjs/languages/hsp.min.js | 0 .../highlightjs/languages/htmlbars.min.js | 0 .../highlightjs/languages/http.min.js | 0 .../highlightjs/languages/hy.min.js | 0 .../highlightjs/languages/inform7.min.js | 0 .../highlightjs/languages/ini.min.js | 0 .../highlightjs/languages/irpf90.min.js | 0 .../highlightjs/languages/isbl.min.js | 0 .../highlightjs/languages/java.min.js | 0 .../highlightjs/languages/javascript.min.js | 0 .../highlightjs/languages/jboss-cli.min.js | 0 .../highlightjs/languages/json.min.js | 0 .../highlightjs/languages/julia-repl.min.js | 0 .../highlightjs/languages/julia.min.js | 0 .../highlightjs/languages/kotlin.min.js | 0 .../highlightjs/languages/lasso.min.js | 0 .../highlightjs/languages/ldif.min.js | 0 .../highlightjs/languages/leaf.min.js | 0 .../highlightjs/languages/less.min.js | 0 .../highlightjs/languages/lisp.min.js | 0 .../languages/livecodeserver.min.js | 0 .../highlightjs/languages/livescript.min.js | 0 .../highlightjs/languages/llvm.min.js | 0 .../highlightjs/languages/lsl.min.js | 0 .../highlightjs/languages/lua.min.js | 0 .../highlightjs/languages/makefile.min.js | 0 .../highlightjs/languages/markdown.min.js | 0 .../highlightjs/languages/mathematica.min.js | 0 .../highlightjs/languages/matlab.min.js | 0 .../highlightjs/languages/maxima.min.js | 0 .../highlightjs/languages/mel.min.js | 0 .../highlightjs/languages/mercury.min.js | 0 .../highlightjs/languages/mipsasm.min.js | 0 .../highlightjs/languages/mizar.min.js | 0 .../highlightjs/languages/mojolicious.min.js | 0 .../highlightjs/languages/monkey.min.js | 0 .../highlightjs/languages/moonscript.min.js | 0 .../highlightjs/languages/n1ql.min.js | 0 .../highlightjs/languages/nginx.min.js | 0 .../highlightjs/languages/nimrod.min.js | 0 .../highlightjs/languages/nix.min.js | 0 .../highlightjs/languages/nsis.min.js | 0 .../highlightjs/languages/objectivec.min.js | 0 .../highlightjs/languages/ocaml.min.js | 0 .../highlightjs/languages/openscad.min.js | 0 .../highlightjs/languages/oxygene.min.js | 0 .../highlightjs/languages/parser3.min.js | 0 .../highlightjs/languages/perl.min.js | 0 .../highlightjs/languages/pf.min.js | 0 .../highlightjs/languages/pgsql.min.js | 0 .../highlightjs/languages/php.min.js | 0 .../highlightjs/languages/plaintext.min.js | 0 .../highlightjs/languages/pony.min.js | 2 +- .../highlightjs/languages/powershell.min.js | 0 .../highlightjs/languages/processing.min.js | 0 .../highlightjs/languages/profile.min.js | 0 .../highlightjs/languages/prolog.min.js | 0 .../highlightjs/languages/properties.min.js | 0 .../highlightjs/languages/protobuf.min.js | 0 .../highlightjs/languages/puppet.min.js | 0 .../highlightjs/languages/purebasic.min.js | 0 .../highlightjs/languages/python.min.js | 0 .../highlightjs/languages/q.min.js | 0 .../highlightjs/languages/qml.min.js | 0 .../highlightjs/languages/r.min.js | 0 .../highlightjs/languages/reasonml.min.js | 0 .../highlightjs/languages/rib.min.js | 0 .../highlightjs/languages/roboconf.min.js | 0 .../highlightjs/languages/routeros.min.js | 0 .../highlightjs/languages/rsl.min.js | 0 .../highlightjs/languages/ruby.min.js | 0 .../languages/ruleslanguage.min.js | 0 .../highlightjs/languages/rust.min.js | 0 .../highlightjs/languages/sas.min.js | 0 .../highlightjs/languages/scala.min.js | 0 .../highlightjs/languages/scheme.min.js | 0 .../highlightjs/languages/scilab.min.js | 0 .../highlightjs/languages/scss.min.js | 0 .../highlightjs/languages/shell.min.js | 0 .../highlightjs/languages/smali.min.js | 0 .../highlightjs/languages/smalltalk.min.js | 0 .../highlightjs/languages/sml.min.js | 0 .../highlightjs/languages/sqf.min.js | 0 .../highlightjs/languages/sql.min.js | 0 .../highlightjs/languages/stan.min.js | 0 .../highlightjs/languages/stata.min.js | 0 .../highlightjs/languages/step21.min.js | 0 .../highlightjs/languages/stylus.min.js | 0 .../highlightjs/languages/subunit.min.js | 0 .../highlightjs/languages/swift.min.js | 0 .../highlightjs/languages/taggerscript.min.js | 0 .../highlightjs/languages/tap.min.js | 0 .../highlightjs/languages/tcl.min.js | 0 .../highlightjs/languages/tex.min.js | 0 .../highlightjs/languages/thrift.min.js | 0 .../highlightjs/languages/tp.min.js | 0 .../highlightjs/languages/twig.min.js | 0 .../highlightjs/languages/typescript.min.js | 0 .../highlightjs/languages/vala.min.js | 0 .../highlightjs/languages/vbnet.min.js | 0 .../languages/vbscript-html.min.js | 0 .../highlightjs/languages/vbscript.min.js | 0 .../highlightjs/languages/verilog.min.js | 0 .../highlightjs/languages/vhdl.min.js | 0 .../highlightjs/languages/vim.min.js | 0 .../highlightjs/languages/x86asm.min.js | 0 .../highlightjs/languages/xl.min.js | 0 .../highlightjs/languages/xml.min.js | 0 .../highlightjs/languages/xquery.min.js | 1 + .../highlightjs/languages/yaml.min.js | 0 .../highlightjs/languages/zephir.min.js | 0 yarn.lock | 4 +++ 192 files changed, 31 insertions(+), 33 deletions(-) delete mode 100644 lib/highlight_js/assets/lang/xquery.js delete mode 100644 lib/tasks/highlight.rake rename lib/highlight_js/assets/highlight.js => vendor/assets/javascripts/highlightjs/highlight.min.js (100%) rename lib/highlight_js/assets/lang/1c.js => vendor/assets/javascripts/highlightjs/languages/1c.min.js (100%) rename lib/highlight_js/assets/lang/abnf.js => vendor/assets/javascripts/highlightjs/languages/abnf.min.js (100%) rename lib/highlight_js/assets/lang/accesslog.js => vendor/assets/javascripts/highlightjs/languages/accesslog.min.js (100%) rename lib/highlight_js/assets/lang/actionscript.js => vendor/assets/javascripts/highlightjs/languages/actionscript.min.js (100%) rename lib/highlight_js/assets/lang/ada.js => vendor/assets/javascripts/highlightjs/languages/ada.min.js (100%) rename lib/highlight_js/assets/lang/angelscript.js => vendor/assets/javascripts/highlightjs/languages/angelscript.min.js (100%) rename lib/highlight_js/assets/lang/apache.js => vendor/assets/javascripts/highlightjs/languages/apache.min.js (100%) rename lib/highlight_js/assets/lang/applescript.js => vendor/assets/javascripts/highlightjs/languages/applescript.min.js (100%) rename lib/highlight_js/assets/lang/arcade.js => vendor/assets/javascripts/highlightjs/languages/arcade.min.js (100%) rename lib/highlight_js/assets/lang/arduino.js => vendor/assets/javascripts/highlightjs/languages/arduino.min.js (100%) rename lib/highlight_js/assets/lang/armasm.js => vendor/assets/javascripts/highlightjs/languages/armasm.min.js (100%) rename lib/highlight_js/assets/lang/asciidoc.js => vendor/assets/javascripts/highlightjs/languages/asciidoc.min.js (100%) rename lib/highlight_js/assets/lang/aspectj.js => vendor/assets/javascripts/highlightjs/languages/aspectj.min.js (100%) rename lib/highlight_js/assets/lang/autohotkey.js => vendor/assets/javascripts/highlightjs/languages/autohotkey.min.js (100%) rename lib/highlight_js/assets/lang/autoit.js => vendor/assets/javascripts/highlightjs/languages/autoit.min.js (100%) rename lib/highlight_js/assets/lang/avrasm.js => vendor/assets/javascripts/highlightjs/languages/avrasm.min.js (100%) rename lib/highlight_js/assets/lang/awk.js => vendor/assets/javascripts/highlightjs/languages/awk.min.js (100%) rename lib/highlight_js/assets/lang/axapta.js => vendor/assets/javascripts/highlightjs/languages/axapta.min.js (100%) rename lib/highlight_js/assets/lang/bash.js => vendor/assets/javascripts/highlightjs/languages/bash.min.js (100%) rename lib/highlight_js/assets/lang/basic.js => vendor/assets/javascripts/highlightjs/languages/basic.min.js (100%) rename lib/highlight_js/assets/lang/bnf.js => vendor/assets/javascripts/highlightjs/languages/bnf.min.js (100%) rename lib/highlight_js/assets/lang/brainfuck.js => vendor/assets/javascripts/highlightjs/languages/brainfuck.min.js (100%) rename lib/highlight_js/assets/lang/cal.js => vendor/assets/javascripts/highlightjs/languages/cal.min.js (100%) rename lib/highlight_js/assets/lang/capnproto.js => vendor/assets/javascripts/highlightjs/languages/capnproto.min.js (100%) rename lib/highlight_js/assets/lang/ceylon.js => vendor/assets/javascripts/highlightjs/languages/ceylon.min.js (100%) rename lib/highlight_js/assets/lang/clean.js => vendor/assets/javascripts/highlightjs/languages/clean.min.js (100%) rename lib/highlight_js/assets/lang/clojure-repl.js => vendor/assets/javascripts/highlightjs/languages/clojure-repl.min.js (100%) rename lib/highlight_js/assets/lang/clojure.js => vendor/assets/javascripts/highlightjs/languages/clojure.min.js (100%) rename lib/highlight_js/assets/lang/cmake.js => vendor/assets/javascripts/highlightjs/languages/cmake.min.js (100%) rename lib/highlight_js/assets/lang/coffeescript.js => vendor/assets/javascripts/highlightjs/languages/coffeescript.min.js (100%) rename lib/highlight_js/assets/lang/coq.js => vendor/assets/javascripts/highlightjs/languages/coq.min.js (100%) rename lib/highlight_js/assets/lang/cos.js => vendor/assets/javascripts/highlightjs/languages/cos.min.js (100%) rename lib/highlight_js/assets/lang/cpp.js => vendor/assets/javascripts/highlightjs/languages/cpp.min.js (100%) rename lib/highlight_js/assets/lang/crmsh.js => vendor/assets/javascripts/highlightjs/languages/crmsh.min.js (100%) rename lib/highlight_js/assets/lang/crystal.js => vendor/assets/javascripts/highlightjs/languages/crystal.min.js (100%) rename lib/highlight_js/assets/lang/cs.js => vendor/assets/javascripts/highlightjs/languages/cs.min.js (100%) rename lib/highlight_js/assets/lang/csp.js => vendor/assets/javascripts/highlightjs/languages/csp.min.js (100%) rename lib/highlight_js/assets/lang/css.js => vendor/assets/javascripts/highlightjs/languages/css.min.js (100%) rename lib/highlight_js/assets/lang/d.js => vendor/assets/javascripts/highlightjs/languages/d.min.js (100%) rename lib/highlight_js/assets/lang/dart.js => vendor/assets/javascripts/highlightjs/languages/dart.min.js (100%) rename lib/highlight_js/assets/lang/delphi.js => vendor/assets/javascripts/highlightjs/languages/delphi.min.js (100%) rename lib/highlight_js/assets/lang/diff.js => vendor/assets/javascripts/highlightjs/languages/diff.min.js (100%) rename lib/highlight_js/assets/lang/django.js => vendor/assets/javascripts/highlightjs/languages/django.min.js (100%) rename lib/highlight_js/assets/lang/dns.js => vendor/assets/javascripts/highlightjs/languages/dns.min.js (100%) rename lib/highlight_js/assets/lang/dockerfile.js => vendor/assets/javascripts/highlightjs/languages/dockerfile.min.js (100%) rename lib/highlight_js/assets/lang/dos.js => vendor/assets/javascripts/highlightjs/languages/dos.min.js (100%) rename lib/highlight_js/assets/lang/dsconfig.js => vendor/assets/javascripts/highlightjs/languages/dsconfig.min.js (100%) rename lib/highlight_js/assets/lang/dts.js => vendor/assets/javascripts/highlightjs/languages/dts.min.js (100%) rename lib/highlight_js/assets/lang/dust.js => vendor/assets/javascripts/highlightjs/languages/dust.min.js (100%) rename lib/highlight_js/assets/lang/ebnf.js => vendor/assets/javascripts/highlightjs/languages/ebnf.min.js (100%) rename lib/highlight_js/assets/lang/elixir.js => vendor/assets/javascripts/highlightjs/languages/elixir.min.js (100%) rename lib/highlight_js/assets/lang/elm.js => vendor/assets/javascripts/highlightjs/languages/elm.min.js (100%) rename lib/highlight_js/assets/lang/erb.js => vendor/assets/javascripts/highlightjs/languages/erb.min.js (100%) rename lib/highlight_js/assets/lang/erlang-repl.js => vendor/assets/javascripts/highlightjs/languages/erlang-repl.min.js (100%) rename lib/highlight_js/assets/lang/erlang.js => vendor/assets/javascripts/highlightjs/languages/erlang.min.js (100%) rename lib/highlight_js/assets/lang/excel.js => vendor/assets/javascripts/highlightjs/languages/excel.min.js (100%) rename lib/highlight_js/assets/lang/fix.js => vendor/assets/javascripts/highlightjs/languages/fix.min.js (100%) rename lib/highlight_js/assets/lang/flix.js => vendor/assets/javascripts/highlightjs/languages/flix.min.js (100%) rename lib/highlight_js/assets/lang/fortran.js => vendor/assets/javascripts/highlightjs/languages/fortran.min.js (100%) rename lib/highlight_js/assets/lang/fsharp.js => vendor/assets/javascripts/highlightjs/languages/fsharp.min.js (100%) rename lib/highlight_js/assets/lang/gams.js => vendor/assets/javascripts/highlightjs/languages/gams.min.js (100%) rename lib/highlight_js/assets/lang/gauss.js => vendor/assets/javascripts/highlightjs/languages/gauss.min.js (100%) rename lib/highlight_js/assets/lang/gcode.js => vendor/assets/javascripts/highlightjs/languages/gcode.min.js (100%) rename lib/highlight_js/assets/lang/gherkin.js => vendor/assets/javascripts/highlightjs/languages/gherkin.min.js (100%) rename lib/highlight_js/assets/lang/glsl.js => vendor/assets/javascripts/highlightjs/languages/glsl.min.js (100%) rename lib/highlight_js/assets/lang/gml.js => vendor/assets/javascripts/highlightjs/languages/gml.min.js (100%) rename lib/highlight_js/assets/lang/go.js => vendor/assets/javascripts/highlightjs/languages/go.min.js (100%) rename lib/highlight_js/assets/lang/golo.js => vendor/assets/javascripts/highlightjs/languages/golo.min.js (100%) rename lib/highlight_js/assets/lang/gradle.js => vendor/assets/javascripts/highlightjs/languages/gradle.min.js (100%) rename lib/highlight_js/assets/lang/groovy.js => vendor/assets/javascripts/highlightjs/languages/groovy.min.js (100%) rename lib/highlight_js/assets/lang/haml.js => vendor/assets/javascripts/highlightjs/languages/haml.min.js (100%) rename lib/highlight_js/assets/lang/handlebars.js => vendor/assets/javascripts/highlightjs/languages/handlebars.min.js (100%) rename lib/highlight_js/assets/lang/haskell.js => vendor/assets/javascripts/highlightjs/languages/haskell.min.js (100%) rename lib/highlight_js/assets/lang/haxe.js => vendor/assets/javascripts/highlightjs/languages/haxe.min.js (100%) rename lib/highlight_js/assets/lang/hsp.js => vendor/assets/javascripts/highlightjs/languages/hsp.min.js (100%) rename lib/highlight_js/assets/lang/htmlbars.js => vendor/assets/javascripts/highlightjs/languages/htmlbars.min.js (100%) rename lib/highlight_js/assets/lang/http.js => vendor/assets/javascripts/highlightjs/languages/http.min.js (100%) rename lib/highlight_js/assets/lang/hy.js => vendor/assets/javascripts/highlightjs/languages/hy.min.js (100%) rename lib/highlight_js/assets/lang/inform7.js => vendor/assets/javascripts/highlightjs/languages/inform7.min.js (100%) rename lib/highlight_js/assets/lang/ini.js => vendor/assets/javascripts/highlightjs/languages/ini.min.js (100%) rename lib/highlight_js/assets/lang/irpf90.js => vendor/assets/javascripts/highlightjs/languages/irpf90.min.js (100%) rename lib/highlight_js/assets/lang/isbl.js => vendor/assets/javascripts/highlightjs/languages/isbl.min.js (100%) rename lib/highlight_js/assets/lang/java.js => vendor/assets/javascripts/highlightjs/languages/java.min.js (100%) rename lib/highlight_js/assets/lang/javascript.js => vendor/assets/javascripts/highlightjs/languages/javascript.min.js (100%) rename lib/highlight_js/assets/lang/jboss-cli.js => vendor/assets/javascripts/highlightjs/languages/jboss-cli.min.js (100%) rename lib/highlight_js/assets/lang/json.js => vendor/assets/javascripts/highlightjs/languages/json.min.js (100%) rename lib/highlight_js/assets/lang/julia-repl.js => vendor/assets/javascripts/highlightjs/languages/julia-repl.min.js (100%) rename lib/highlight_js/assets/lang/julia.js => vendor/assets/javascripts/highlightjs/languages/julia.min.js (100%) rename lib/highlight_js/assets/lang/kotlin.js => vendor/assets/javascripts/highlightjs/languages/kotlin.min.js (100%) rename lib/highlight_js/assets/lang/lasso.js => vendor/assets/javascripts/highlightjs/languages/lasso.min.js (100%) rename lib/highlight_js/assets/lang/ldif.js => vendor/assets/javascripts/highlightjs/languages/ldif.min.js (100%) rename lib/highlight_js/assets/lang/leaf.js => vendor/assets/javascripts/highlightjs/languages/leaf.min.js (100%) rename lib/highlight_js/assets/lang/less.js => vendor/assets/javascripts/highlightjs/languages/less.min.js (100%) rename lib/highlight_js/assets/lang/lisp.js => vendor/assets/javascripts/highlightjs/languages/lisp.min.js (100%) rename lib/highlight_js/assets/lang/livecodeserver.js => vendor/assets/javascripts/highlightjs/languages/livecodeserver.min.js (100%) rename lib/highlight_js/assets/lang/livescript.js => vendor/assets/javascripts/highlightjs/languages/livescript.min.js (100%) rename lib/highlight_js/assets/lang/llvm.js => vendor/assets/javascripts/highlightjs/languages/llvm.min.js (100%) rename lib/highlight_js/assets/lang/lsl.js => vendor/assets/javascripts/highlightjs/languages/lsl.min.js (100%) rename lib/highlight_js/assets/lang/lua.js => vendor/assets/javascripts/highlightjs/languages/lua.min.js (100%) rename lib/highlight_js/assets/lang/makefile.js => vendor/assets/javascripts/highlightjs/languages/makefile.min.js (100%) rename lib/highlight_js/assets/lang/markdown.js => vendor/assets/javascripts/highlightjs/languages/markdown.min.js (100%) rename lib/highlight_js/assets/lang/mathematica.js => vendor/assets/javascripts/highlightjs/languages/mathematica.min.js (100%) rename lib/highlight_js/assets/lang/matlab.js => vendor/assets/javascripts/highlightjs/languages/matlab.min.js (100%) rename lib/highlight_js/assets/lang/maxima.js => vendor/assets/javascripts/highlightjs/languages/maxima.min.js (100%) rename lib/highlight_js/assets/lang/mel.js => vendor/assets/javascripts/highlightjs/languages/mel.min.js (100%) rename lib/highlight_js/assets/lang/mercury.js => vendor/assets/javascripts/highlightjs/languages/mercury.min.js (100%) rename lib/highlight_js/assets/lang/mipsasm.js => vendor/assets/javascripts/highlightjs/languages/mipsasm.min.js (100%) rename lib/highlight_js/assets/lang/mizar.js => vendor/assets/javascripts/highlightjs/languages/mizar.min.js (100%) rename lib/highlight_js/assets/lang/mojolicious.js => vendor/assets/javascripts/highlightjs/languages/mojolicious.min.js (100%) rename lib/highlight_js/assets/lang/monkey.js => vendor/assets/javascripts/highlightjs/languages/monkey.min.js (100%) rename lib/highlight_js/assets/lang/moonscript.js => vendor/assets/javascripts/highlightjs/languages/moonscript.min.js (100%) rename lib/highlight_js/assets/lang/n1ql.js => vendor/assets/javascripts/highlightjs/languages/n1ql.min.js (100%) rename lib/highlight_js/assets/lang/nginx.js => vendor/assets/javascripts/highlightjs/languages/nginx.min.js (100%) rename lib/highlight_js/assets/lang/nimrod.js => vendor/assets/javascripts/highlightjs/languages/nimrod.min.js (100%) rename lib/highlight_js/assets/lang/nix.js => vendor/assets/javascripts/highlightjs/languages/nix.min.js (100%) rename lib/highlight_js/assets/lang/nsis.js => vendor/assets/javascripts/highlightjs/languages/nsis.min.js (100%) rename lib/highlight_js/assets/lang/objectivec.js => vendor/assets/javascripts/highlightjs/languages/objectivec.min.js (100%) rename lib/highlight_js/assets/lang/ocaml.js => vendor/assets/javascripts/highlightjs/languages/ocaml.min.js (100%) rename lib/highlight_js/assets/lang/openscad.js => vendor/assets/javascripts/highlightjs/languages/openscad.min.js (100%) rename lib/highlight_js/assets/lang/oxygene.js => vendor/assets/javascripts/highlightjs/languages/oxygene.min.js (100%) rename lib/highlight_js/assets/lang/parser3.js => vendor/assets/javascripts/highlightjs/languages/parser3.min.js (100%) rename lib/highlight_js/assets/lang/perl.js => vendor/assets/javascripts/highlightjs/languages/perl.min.js (100%) rename lib/highlight_js/assets/lang/pf.js => vendor/assets/javascripts/highlightjs/languages/pf.min.js (100%) rename lib/highlight_js/assets/lang/pgsql.js => vendor/assets/javascripts/highlightjs/languages/pgsql.min.js (100%) rename lib/highlight_js/assets/lang/php.js => vendor/assets/javascripts/highlightjs/languages/php.min.js (100%) rename lib/highlight_js/assets/lang/plaintext.js => vendor/assets/javascripts/highlightjs/languages/plaintext.min.js (100%) rename lib/highlight_js/assets/lang/pony.js => vendor/assets/javascripts/highlightjs/languages/pony.min.js (70%) rename lib/highlight_js/assets/lang/powershell.js => vendor/assets/javascripts/highlightjs/languages/powershell.min.js (100%) rename lib/highlight_js/assets/lang/processing.js => vendor/assets/javascripts/highlightjs/languages/processing.min.js (100%) rename lib/highlight_js/assets/lang/profile.js => vendor/assets/javascripts/highlightjs/languages/profile.min.js (100%) rename lib/highlight_js/assets/lang/prolog.js => vendor/assets/javascripts/highlightjs/languages/prolog.min.js (100%) rename lib/highlight_js/assets/lang/properties.js => vendor/assets/javascripts/highlightjs/languages/properties.min.js (100%) rename lib/highlight_js/assets/lang/protobuf.js => vendor/assets/javascripts/highlightjs/languages/protobuf.min.js (100%) rename lib/highlight_js/assets/lang/puppet.js => vendor/assets/javascripts/highlightjs/languages/puppet.min.js (100%) rename lib/highlight_js/assets/lang/purebasic.js => vendor/assets/javascripts/highlightjs/languages/purebasic.min.js (100%) rename lib/highlight_js/assets/lang/python.js => vendor/assets/javascripts/highlightjs/languages/python.min.js (100%) rename lib/highlight_js/assets/lang/q.js => vendor/assets/javascripts/highlightjs/languages/q.min.js (100%) rename lib/highlight_js/assets/lang/qml.js => vendor/assets/javascripts/highlightjs/languages/qml.min.js (100%) rename lib/highlight_js/assets/lang/r.js => vendor/assets/javascripts/highlightjs/languages/r.min.js (100%) rename lib/highlight_js/assets/lang/reasonml.js => vendor/assets/javascripts/highlightjs/languages/reasonml.min.js (100%) rename lib/highlight_js/assets/lang/rib.js => vendor/assets/javascripts/highlightjs/languages/rib.min.js (100%) rename lib/highlight_js/assets/lang/roboconf.js => vendor/assets/javascripts/highlightjs/languages/roboconf.min.js (100%) rename lib/highlight_js/assets/lang/routeros.js => vendor/assets/javascripts/highlightjs/languages/routeros.min.js (100%) rename lib/highlight_js/assets/lang/rsl.js => vendor/assets/javascripts/highlightjs/languages/rsl.min.js (100%) rename lib/highlight_js/assets/lang/ruby.js => vendor/assets/javascripts/highlightjs/languages/ruby.min.js (100%) rename lib/highlight_js/assets/lang/ruleslanguage.js => vendor/assets/javascripts/highlightjs/languages/ruleslanguage.min.js (100%) rename lib/highlight_js/assets/lang/rust.js => vendor/assets/javascripts/highlightjs/languages/rust.min.js (100%) rename lib/highlight_js/assets/lang/sas.js => vendor/assets/javascripts/highlightjs/languages/sas.min.js (100%) rename lib/highlight_js/assets/lang/scala.js => vendor/assets/javascripts/highlightjs/languages/scala.min.js (100%) rename lib/highlight_js/assets/lang/scheme.js => vendor/assets/javascripts/highlightjs/languages/scheme.min.js (100%) rename lib/highlight_js/assets/lang/scilab.js => vendor/assets/javascripts/highlightjs/languages/scilab.min.js (100%) rename lib/highlight_js/assets/lang/scss.js => vendor/assets/javascripts/highlightjs/languages/scss.min.js (100%) rename lib/highlight_js/assets/lang/shell.js => vendor/assets/javascripts/highlightjs/languages/shell.min.js (100%) rename lib/highlight_js/assets/lang/smali.js => vendor/assets/javascripts/highlightjs/languages/smali.min.js (100%) rename lib/highlight_js/assets/lang/smalltalk.js => vendor/assets/javascripts/highlightjs/languages/smalltalk.min.js (100%) rename lib/highlight_js/assets/lang/sml.js => vendor/assets/javascripts/highlightjs/languages/sml.min.js (100%) rename lib/highlight_js/assets/lang/sqf.js => vendor/assets/javascripts/highlightjs/languages/sqf.min.js (100%) rename lib/highlight_js/assets/lang/sql.js => vendor/assets/javascripts/highlightjs/languages/sql.min.js (100%) rename lib/highlight_js/assets/lang/stan.js => vendor/assets/javascripts/highlightjs/languages/stan.min.js (100%) rename lib/highlight_js/assets/lang/stata.js => vendor/assets/javascripts/highlightjs/languages/stata.min.js (100%) rename lib/highlight_js/assets/lang/step21.js => vendor/assets/javascripts/highlightjs/languages/step21.min.js (100%) rename lib/highlight_js/assets/lang/stylus.js => vendor/assets/javascripts/highlightjs/languages/stylus.min.js (100%) rename lib/highlight_js/assets/lang/subunit.js => vendor/assets/javascripts/highlightjs/languages/subunit.min.js (100%) rename lib/highlight_js/assets/lang/swift.js => vendor/assets/javascripts/highlightjs/languages/swift.min.js (100%) rename lib/highlight_js/assets/lang/taggerscript.js => vendor/assets/javascripts/highlightjs/languages/taggerscript.min.js (100%) rename lib/highlight_js/assets/lang/tap.js => vendor/assets/javascripts/highlightjs/languages/tap.min.js (100%) rename lib/highlight_js/assets/lang/tcl.js => vendor/assets/javascripts/highlightjs/languages/tcl.min.js (100%) rename lib/highlight_js/assets/lang/tex.js => vendor/assets/javascripts/highlightjs/languages/tex.min.js (100%) rename lib/highlight_js/assets/lang/thrift.js => vendor/assets/javascripts/highlightjs/languages/thrift.min.js (100%) rename lib/highlight_js/assets/lang/tp.js => vendor/assets/javascripts/highlightjs/languages/tp.min.js (100%) rename lib/highlight_js/assets/lang/twig.js => vendor/assets/javascripts/highlightjs/languages/twig.min.js (100%) rename lib/highlight_js/assets/lang/typescript.js => vendor/assets/javascripts/highlightjs/languages/typescript.min.js (100%) rename lib/highlight_js/assets/lang/vala.js => vendor/assets/javascripts/highlightjs/languages/vala.min.js (100%) rename lib/highlight_js/assets/lang/vbnet.js => vendor/assets/javascripts/highlightjs/languages/vbnet.min.js (100%) rename lib/highlight_js/assets/lang/vbscript-html.js => vendor/assets/javascripts/highlightjs/languages/vbscript-html.min.js (100%) rename lib/highlight_js/assets/lang/vbscript.js => vendor/assets/javascripts/highlightjs/languages/vbscript.min.js (100%) rename lib/highlight_js/assets/lang/verilog.js => vendor/assets/javascripts/highlightjs/languages/verilog.min.js (100%) rename lib/highlight_js/assets/lang/vhdl.js => vendor/assets/javascripts/highlightjs/languages/vhdl.min.js (100%) rename lib/highlight_js/assets/lang/vim.js => vendor/assets/javascripts/highlightjs/languages/vim.min.js (100%) rename lib/highlight_js/assets/lang/x86asm.js => vendor/assets/javascripts/highlightjs/languages/x86asm.min.js (100%) rename lib/highlight_js/assets/lang/xl.js => vendor/assets/javascripts/highlightjs/languages/xl.min.js (100%) rename lib/highlight_js/assets/lang/xml.js => vendor/assets/javascripts/highlightjs/languages/xml.min.js (100%) create mode 100644 vendor/assets/javascripts/highlightjs/languages/xquery.min.js rename lib/highlight_js/assets/lang/yaml.js => vendor/assets/javascripts/highlightjs/languages/yaml.min.js (100%) rename lib/highlight_js/assets/lang/zephir.js => vendor/assets/javascripts/highlightjs/languages/zephir.min.js (100%) diff --git a/lib/highlight_js/assets/lang/xquery.js b/lib/highlight_js/assets/lang/xquery.js deleted file mode 100644 index a91a30a153e..00000000000 --- a/lib/highlight_js/assets/lang/xquery.js +++ /dev/null @@ -1 +0,0 @@ -hljs.registerLanguage("xquery",function(e){var t="for let if while then else return where group by xquery encoding versionmodule namespace boundary-space preserve strip default collation base-uri orderingcopy-namespaces order declare import schema namespace function option in allowing emptyat tumbling window sliding window start when only end when previous next stable ascendingdescending empty greatest least some every satisfies switch case typeswitch try catch andor to union intersect instance of treat as castable cast map array delete insert intoreplace value rename copy modify update",a="false true xs:string xs:integer element item xs:date xs:datetime xs:float xs:double xs:decimal QName xs:anyURI xs:long xs:int xs:short xs:byte attribute",s={b:/\$[a-zA-Z0-9\-]+/},n={cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},r={cN:"string",v:[{b:/"/,e:/"/,c:[{b:/""/,r:0}]},{b:/'/,e:/'/,c:[{b:/''/,r:0}]}]},i={cN:"meta",b:"%\\w+"},c={cN:"comment",b:"\\(:",e:":\\)",r:10,c:[{cN:"doctag",b:"@\\w+"}]},o={b:"{",e:"}"},l=[s,r,n,c,i,o];return o.c=l,{aliases:["xpath","xq"],cI:!1,l:/[a-zA-Z\$][a-zA-Z0-9_:\-]*/,i:/(proc)|(abstract)|(extends)|(until)|(#)/,k:{keyword:t,literal:a},c:l}}); \ No newline at end of file diff --git a/lib/highlight_js/highlight_js.rb b/lib/highlight_js/highlight_js.rb index 22c93609cfd..efac9994e78 100644 --- a/lib/highlight_js/highlight_js.rb +++ b/lib/highlight_js/highlight_js.rb @@ -1,18 +1,21 @@ +# frozen_string_literal: true + module HighlightJs + HIGHLIGHTJS_DIR = "#{Rails.root}/vendor/assets/javascripts/highlightjs/" def self.languages - Dir.glob(File.dirname(__FILE__) << "/assets/lang/*.js").map do |path| - File.basename(path)[0..-4] + langs = Dir.glob(HIGHLIGHTJS_DIR + "languages/*.js").map do |path| + File.basename(path)[0..-8] end + + langs.sort end def self.bundle(langs) - path = File.dirname(__FILE__) << "/assets/" - - result = File.read(path + "highlight.js") + result = File.read(HIGHLIGHTJS_DIR + "highlight.min.js") langs.each do |lang| begin - result << "\n" << File.read(path + "lang/#{lang}.js") + result << "\n" << File.read(HIGHLIGHTJS_DIR + "languages/#{lang}.min.js") rescue Errno::ENOENT # no file, don't care end diff --git a/lib/tasks/highlight.rake b/lib/tasks/highlight.rake deleted file mode 100644 index f0e0c2bc209..00000000000 --- a/lib/tasks/highlight.rake +++ /dev/null @@ -1,25 +0,0 @@ -desc "download latest version of highlight and prepare it" -task "highlightjs:update" do - - def run(cmd, opts = {}) - puts cmd - system(cmd, opts.merge(out: $stdout, err: :out)) - end - run("cd tmp && rm -fr highlight.js && git clone --depth 1 https://github.com/isagalaev/highlight.js.git") - run("cd tmp && rm -fr highlight_distrib && mkdir -p highlight_distrib/lang") - run("cd tmp/highlight.js && npm install") - run("cd tmp/highlight.js && node tools/build.js -t cdn none") - - run("mv tmp/highlight.js/build/highlight.min.js tmp/highlight_distrib/highlight.js") - - run("cd tmp/highlight.js && npm install && node tools/build.js -t cdn") - - Dir.glob("tmp/highlight.js/build/languages/*.min.js") do |path| - lang = File.basename(path)[0..-8] - run("mv #{path} tmp/highlight_distrib/lang/#{lang}.js") - end - - run("rm -fr lib/highlight_js/assets") - run("mv tmp/highlight_distrib lib/highlight_js/assets") - -end diff --git a/lib/tasks/javascript.rake b/lib/tasks/javascript.rake index 28108df2e56..c34c4152dc2 100644 --- a/lib/tasks/javascript.rake +++ b/lib/tasks/javascript.rake @@ -44,6 +44,9 @@ task 'javascript:update' do source: 'handlebars/dist/handlebars.js' }, { source: 'handlebars/dist/handlebars.runtime.js' + }, { + source: 'highlight.js/build/.', + destination: 'highlightjs' }, { source: 'htmlparser/lib/htmlparser.js' }, { @@ -82,6 +85,18 @@ task 'javascript:update' do filename = f[:destination] end + # Highlight.js needs building + if src.include? "highlight.js" + puts "Install Highlight.js dependencies" + system("cd node_modules/highlight.js && yarn install") + + puts "Build Highlight.js" + system("cd node_modules/highlight.js && node tools/build.js -t cdn none") + + puts "Cleanup unused styles folder" + system("rm -rf node_modules/highlight.js/build/styles") + end + if f[:public] dest = "#{public_js}/#{filename}" else diff --git a/package.json b/package.json index f85a8307a7a..2fada31df59 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "chart.js": "2.7.2", "favcount": "https://github.com/chrishunt/favcount", "handlebars": "4.0.5", + "highlight.js": "https://github.com/highlightjs/highlight.js", "htmlparser": "https://github.com/tautologistics/node-htmlparser", "intersection-observer": "^0.5.1", "jquery": "3.3.1", diff --git a/lib/highlight_js/assets/highlight.js b/vendor/assets/javascripts/highlightjs/highlight.min.js similarity index 100% rename from lib/highlight_js/assets/highlight.js rename to vendor/assets/javascripts/highlightjs/highlight.min.js diff --git a/lib/highlight_js/assets/lang/1c.js b/vendor/assets/javascripts/highlightjs/languages/1c.min.js similarity index 100% rename from lib/highlight_js/assets/lang/1c.js rename to vendor/assets/javascripts/highlightjs/languages/1c.min.js diff --git a/lib/highlight_js/assets/lang/abnf.js b/vendor/assets/javascripts/highlightjs/languages/abnf.min.js similarity index 100% rename from lib/highlight_js/assets/lang/abnf.js rename to vendor/assets/javascripts/highlightjs/languages/abnf.min.js diff --git a/lib/highlight_js/assets/lang/accesslog.js b/vendor/assets/javascripts/highlightjs/languages/accesslog.min.js similarity index 100% rename from lib/highlight_js/assets/lang/accesslog.js rename to vendor/assets/javascripts/highlightjs/languages/accesslog.min.js diff --git a/lib/highlight_js/assets/lang/actionscript.js b/vendor/assets/javascripts/highlightjs/languages/actionscript.min.js similarity index 100% rename from lib/highlight_js/assets/lang/actionscript.js rename to vendor/assets/javascripts/highlightjs/languages/actionscript.min.js diff --git a/lib/highlight_js/assets/lang/ada.js b/vendor/assets/javascripts/highlightjs/languages/ada.min.js similarity index 100% rename from lib/highlight_js/assets/lang/ada.js rename to vendor/assets/javascripts/highlightjs/languages/ada.min.js diff --git a/lib/highlight_js/assets/lang/angelscript.js b/vendor/assets/javascripts/highlightjs/languages/angelscript.min.js similarity index 100% rename from lib/highlight_js/assets/lang/angelscript.js rename to vendor/assets/javascripts/highlightjs/languages/angelscript.min.js diff --git a/lib/highlight_js/assets/lang/apache.js b/vendor/assets/javascripts/highlightjs/languages/apache.min.js similarity index 100% rename from lib/highlight_js/assets/lang/apache.js rename to vendor/assets/javascripts/highlightjs/languages/apache.min.js diff --git a/lib/highlight_js/assets/lang/applescript.js b/vendor/assets/javascripts/highlightjs/languages/applescript.min.js similarity index 100% rename from lib/highlight_js/assets/lang/applescript.js rename to vendor/assets/javascripts/highlightjs/languages/applescript.min.js diff --git a/lib/highlight_js/assets/lang/arcade.js b/vendor/assets/javascripts/highlightjs/languages/arcade.min.js similarity index 100% rename from lib/highlight_js/assets/lang/arcade.js rename to vendor/assets/javascripts/highlightjs/languages/arcade.min.js diff --git a/lib/highlight_js/assets/lang/arduino.js b/vendor/assets/javascripts/highlightjs/languages/arduino.min.js similarity index 100% rename from lib/highlight_js/assets/lang/arduino.js rename to vendor/assets/javascripts/highlightjs/languages/arduino.min.js diff --git a/lib/highlight_js/assets/lang/armasm.js b/vendor/assets/javascripts/highlightjs/languages/armasm.min.js similarity index 100% rename from lib/highlight_js/assets/lang/armasm.js rename to vendor/assets/javascripts/highlightjs/languages/armasm.min.js diff --git a/lib/highlight_js/assets/lang/asciidoc.js b/vendor/assets/javascripts/highlightjs/languages/asciidoc.min.js similarity index 100% rename from lib/highlight_js/assets/lang/asciidoc.js rename to vendor/assets/javascripts/highlightjs/languages/asciidoc.min.js diff --git a/lib/highlight_js/assets/lang/aspectj.js b/vendor/assets/javascripts/highlightjs/languages/aspectj.min.js similarity index 100% rename from lib/highlight_js/assets/lang/aspectj.js rename to vendor/assets/javascripts/highlightjs/languages/aspectj.min.js diff --git a/lib/highlight_js/assets/lang/autohotkey.js b/vendor/assets/javascripts/highlightjs/languages/autohotkey.min.js similarity index 100% rename from lib/highlight_js/assets/lang/autohotkey.js rename to vendor/assets/javascripts/highlightjs/languages/autohotkey.min.js diff --git a/lib/highlight_js/assets/lang/autoit.js b/vendor/assets/javascripts/highlightjs/languages/autoit.min.js similarity index 100% rename from lib/highlight_js/assets/lang/autoit.js rename to vendor/assets/javascripts/highlightjs/languages/autoit.min.js diff --git a/lib/highlight_js/assets/lang/avrasm.js b/vendor/assets/javascripts/highlightjs/languages/avrasm.min.js similarity index 100% rename from lib/highlight_js/assets/lang/avrasm.js rename to vendor/assets/javascripts/highlightjs/languages/avrasm.min.js diff --git a/lib/highlight_js/assets/lang/awk.js b/vendor/assets/javascripts/highlightjs/languages/awk.min.js similarity index 100% rename from lib/highlight_js/assets/lang/awk.js rename to vendor/assets/javascripts/highlightjs/languages/awk.min.js diff --git a/lib/highlight_js/assets/lang/axapta.js b/vendor/assets/javascripts/highlightjs/languages/axapta.min.js similarity index 100% rename from lib/highlight_js/assets/lang/axapta.js rename to vendor/assets/javascripts/highlightjs/languages/axapta.min.js diff --git a/lib/highlight_js/assets/lang/bash.js b/vendor/assets/javascripts/highlightjs/languages/bash.min.js similarity index 100% rename from lib/highlight_js/assets/lang/bash.js rename to vendor/assets/javascripts/highlightjs/languages/bash.min.js diff --git a/lib/highlight_js/assets/lang/basic.js b/vendor/assets/javascripts/highlightjs/languages/basic.min.js similarity index 100% rename from lib/highlight_js/assets/lang/basic.js rename to vendor/assets/javascripts/highlightjs/languages/basic.min.js diff --git a/lib/highlight_js/assets/lang/bnf.js b/vendor/assets/javascripts/highlightjs/languages/bnf.min.js similarity index 100% rename from lib/highlight_js/assets/lang/bnf.js rename to vendor/assets/javascripts/highlightjs/languages/bnf.min.js diff --git a/lib/highlight_js/assets/lang/brainfuck.js b/vendor/assets/javascripts/highlightjs/languages/brainfuck.min.js similarity index 100% rename from lib/highlight_js/assets/lang/brainfuck.js rename to vendor/assets/javascripts/highlightjs/languages/brainfuck.min.js diff --git a/lib/highlight_js/assets/lang/cal.js b/vendor/assets/javascripts/highlightjs/languages/cal.min.js similarity index 100% rename from lib/highlight_js/assets/lang/cal.js rename to vendor/assets/javascripts/highlightjs/languages/cal.min.js diff --git a/lib/highlight_js/assets/lang/capnproto.js b/vendor/assets/javascripts/highlightjs/languages/capnproto.min.js similarity index 100% rename from lib/highlight_js/assets/lang/capnproto.js rename to vendor/assets/javascripts/highlightjs/languages/capnproto.min.js diff --git a/lib/highlight_js/assets/lang/ceylon.js b/vendor/assets/javascripts/highlightjs/languages/ceylon.min.js similarity index 100% rename from lib/highlight_js/assets/lang/ceylon.js rename to vendor/assets/javascripts/highlightjs/languages/ceylon.min.js diff --git a/lib/highlight_js/assets/lang/clean.js b/vendor/assets/javascripts/highlightjs/languages/clean.min.js similarity index 100% rename from lib/highlight_js/assets/lang/clean.js rename to vendor/assets/javascripts/highlightjs/languages/clean.min.js diff --git a/lib/highlight_js/assets/lang/clojure-repl.js b/vendor/assets/javascripts/highlightjs/languages/clojure-repl.min.js similarity index 100% rename from lib/highlight_js/assets/lang/clojure-repl.js rename to vendor/assets/javascripts/highlightjs/languages/clojure-repl.min.js diff --git a/lib/highlight_js/assets/lang/clojure.js b/vendor/assets/javascripts/highlightjs/languages/clojure.min.js similarity index 100% rename from lib/highlight_js/assets/lang/clojure.js rename to vendor/assets/javascripts/highlightjs/languages/clojure.min.js diff --git a/lib/highlight_js/assets/lang/cmake.js b/vendor/assets/javascripts/highlightjs/languages/cmake.min.js similarity index 100% rename from lib/highlight_js/assets/lang/cmake.js rename to vendor/assets/javascripts/highlightjs/languages/cmake.min.js diff --git a/lib/highlight_js/assets/lang/coffeescript.js b/vendor/assets/javascripts/highlightjs/languages/coffeescript.min.js similarity index 100% rename from lib/highlight_js/assets/lang/coffeescript.js rename to vendor/assets/javascripts/highlightjs/languages/coffeescript.min.js diff --git a/lib/highlight_js/assets/lang/coq.js b/vendor/assets/javascripts/highlightjs/languages/coq.min.js similarity index 100% rename from lib/highlight_js/assets/lang/coq.js rename to vendor/assets/javascripts/highlightjs/languages/coq.min.js diff --git a/lib/highlight_js/assets/lang/cos.js b/vendor/assets/javascripts/highlightjs/languages/cos.min.js similarity index 100% rename from lib/highlight_js/assets/lang/cos.js rename to vendor/assets/javascripts/highlightjs/languages/cos.min.js diff --git a/lib/highlight_js/assets/lang/cpp.js b/vendor/assets/javascripts/highlightjs/languages/cpp.min.js similarity index 100% rename from lib/highlight_js/assets/lang/cpp.js rename to vendor/assets/javascripts/highlightjs/languages/cpp.min.js diff --git a/lib/highlight_js/assets/lang/crmsh.js b/vendor/assets/javascripts/highlightjs/languages/crmsh.min.js similarity index 100% rename from lib/highlight_js/assets/lang/crmsh.js rename to vendor/assets/javascripts/highlightjs/languages/crmsh.min.js diff --git a/lib/highlight_js/assets/lang/crystal.js b/vendor/assets/javascripts/highlightjs/languages/crystal.min.js similarity index 100% rename from lib/highlight_js/assets/lang/crystal.js rename to vendor/assets/javascripts/highlightjs/languages/crystal.min.js diff --git a/lib/highlight_js/assets/lang/cs.js b/vendor/assets/javascripts/highlightjs/languages/cs.min.js similarity index 100% rename from lib/highlight_js/assets/lang/cs.js rename to vendor/assets/javascripts/highlightjs/languages/cs.min.js diff --git a/lib/highlight_js/assets/lang/csp.js b/vendor/assets/javascripts/highlightjs/languages/csp.min.js similarity index 100% rename from lib/highlight_js/assets/lang/csp.js rename to vendor/assets/javascripts/highlightjs/languages/csp.min.js diff --git a/lib/highlight_js/assets/lang/css.js b/vendor/assets/javascripts/highlightjs/languages/css.min.js similarity index 100% rename from lib/highlight_js/assets/lang/css.js rename to vendor/assets/javascripts/highlightjs/languages/css.min.js diff --git a/lib/highlight_js/assets/lang/d.js b/vendor/assets/javascripts/highlightjs/languages/d.min.js similarity index 100% rename from lib/highlight_js/assets/lang/d.js rename to vendor/assets/javascripts/highlightjs/languages/d.min.js diff --git a/lib/highlight_js/assets/lang/dart.js b/vendor/assets/javascripts/highlightjs/languages/dart.min.js similarity index 100% rename from lib/highlight_js/assets/lang/dart.js rename to vendor/assets/javascripts/highlightjs/languages/dart.min.js diff --git a/lib/highlight_js/assets/lang/delphi.js b/vendor/assets/javascripts/highlightjs/languages/delphi.min.js similarity index 100% rename from lib/highlight_js/assets/lang/delphi.js rename to vendor/assets/javascripts/highlightjs/languages/delphi.min.js diff --git a/lib/highlight_js/assets/lang/diff.js b/vendor/assets/javascripts/highlightjs/languages/diff.min.js similarity index 100% rename from lib/highlight_js/assets/lang/diff.js rename to vendor/assets/javascripts/highlightjs/languages/diff.min.js diff --git a/lib/highlight_js/assets/lang/django.js b/vendor/assets/javascripts/highlightjs/languages/django.min.js similarity index 100% rename from lib/highlight_js/assets/lang/django.js rename to vendor/assets/javascripts/highlightjs/languages/django.min.js diff --git a/lib/highlight_js/assets/lang/dns.js b/vendor/assets/javascripts/highlightjs/languages/dns.min.js similarity index 100% rename from lib/highlight_js/assets/lang/dns.js rename to vendor/assets/javascripts/highlightjs/languages/dns.min.js diff --git a/lib/highlight_js/assets/lang/dockerfile.js b/vendor/assets/javascripts/highlightjs/languages/dockerfile.min.js similarity index 100% rename from lib/highlight_js/assets/lang/dockerfile.js rename to vendor/assets/javascripts/highlightjs/languages/dockerfile.min.js diff --git a/lib/highlight_js/assets/lang/dos.js b/vendor/assets/javascripts/highlightjs/languages/dos.min.js similarity index 100% rename from lib/highlight_js/assets/lang/dos.js rename to vendor/assets/javascripts/highlightjs/languages/dos.min.js diff --git a/lib/highlight_js/assets/lang/dsconfig.js b/vendor/assets/javascripts/highlightjs/languages/dsconfig.min.js similarity index 100% rename from lib/highlight_js/assets/lang/dsconfig.js rename to vendor/assets/javascripts/highlightjs/languages/dsconfig.min.js diff --git a/lib/highlight_js/assets/lang/dts.js b/vendor/assets/javascripts/highlightjs/languages/dts.min.js similarity index 100% rename from lib/highlight_js/assets/lang/dts.js rename to vendor/assets/javascripts/highlightjs/languages/dts.min.js diff --git a/lib/highlight_js/assets/lang/dust.js b/vendor/assets/javascripts/highlightjs/languages/dust.min.js similarity index 100% rename from lib/highlight_js/assets/lang/dust.js rename to vendor/assets/javascripts/highlightjs/languages/dust.min.js diff --git a/lib/highlight_js/assets/lang/ebnf.js b/vendor/assets/javascripts/highlightjs/languages/ebnf.min.js similarity index 100% rename from lib/highlight_js/assets/lang/ebnf.js rename to vendor/assets/javascripts/highlightjs/languages/ebnf.min.js diff --git a/lib/highlight_js/assets/lang/elixir.js b/vendor/assets/javascripts/highlightjs/languages/elixir.min.js similarity index 100% rename from lib/highlight_js/assets/lang/elixir.js rename to vendor/assets/javascripts/highlightjs/languages/elixir.min.js diff --git a/lib/highlight_js/assets/lang/elm.js b/vendor/assets/javascripts/highlightjs/languages/elm.min.js similarity index 100% rename from lib/highlight_js/assets/lang/elm.js rename to vendor/assets/javascripts/highlightjs/languages/elm.min.js diff --git a/lib/highlight_js/assets/lang/erb.js b/vendor/assets/javascripts/highlightjs/languages/erb.min.js similarity index 100% rename from lib/highlight_js/assets/lang/erb.js rename to vendor/assets/javascripts/highlightjs/languages/erb.min.js diff --git a/lib/highlight_js/assets/lang/erlang-repl.js b/vendor/assets/javascripts/highlightjs/languages/erlang-repl.min.js similarity index 100% rename from lib/highlight_js/assets/lang/erlang-repl.js rename to vendor/assets/javascripts/highlightjs/languages/erlang-repl.min.js diff --git a/lib/highlight_js/assets/lang/erlang.js b/vendor/assets/javascripts/highlightjs/languages/erlang.min.js similarity index 100% rename from lib/highlight_js/assets/lang/erlang.js rename to vendor/assets/javascripts/highlightjs/languages/erlang.min.js diff --git a/lib/highlight_js/assets/lang/excel.js b/vendor/assets/javascripts/highlightjs/languages/excel.min.js similarity index 100% rename from lib/highlight_js/assets/lang/excel.js rename to vendor/assets/javascripts/highlightjs/languages/excel.min.js diff --git a/lib/highlight_js/assets/lang/fix.js b/vendor/assets/javascripts/highlightjs/languages/fix.min.js similarity index 100% rename from lib/highlight_js/assets/lang/fix.js rename to vendor/assets/javascripts/highlightjs/languages/fix.min.js diff --git a/lib/highlight_js/assets/lang/flix.js b/vendor/assets/javascripts/highlightjs/languages/flix.min.js similarity index 100% rename from lib/highlight_js/assets/lang/flix.js rename to vendor/assets/javascripts/highlightjs/languages/flix.min.js diff --git a/lib/highlight_js/assets/lang/fortran.js b/vendor/assets/javascripts/highlightjs/languages/fortran.min.js similarity index 100% rename from lib/highlight_js/assets/lang/fortran.js rename to vendor/assets/javascripts/highlightjs/languages/fortran.min.js diff --git a/lib/highlight_js/assets/lang/fsharp.js b/vendor/assets/javascripts/highlightjs/languages/fsharp.min.js similarity index 100% rename from lib/highlight_js/assets/lang/fsharp.js rename to vendor/assets/javascripts/highlightjs/languages/fsharp.min.js diff --git a/lib/highlight_js/assets/lang/gams.js b/vendor/assets/javascripts/highlightjs/languages/gams.min.js similarity index 100% rename from lib/highlight_js/assets/lang/gams.js rename to vendor/assets/javascripts/highlightjs/languages/gams.min.js diff --git a/lib/highlight_js/assets/lang/gauss.js b/vendor/assets/javascripts/highlightjs/languages/gauss.min.js similarity index 100% rename from lib/highlight_js/assets/lang/gauss.js rename to vendor/assets/javascripts/highlightjs/languages/gauss.min.js diff --git a/lib/highlight_js/assets/lang/gcode.js b/vendor/assets/javascripts/highlightjs/languages/gcode.min.js similarity index 100% rename from lib/highlight_js/assets/lang/gcode.js rename to vendor/assets/javascripts/highlightjs/languages/gcode.min.js diff --git a/lib/highlight_js/assets/lang/gherkin.js b/vendor/assets/javascripts/highlightjs/languages/gherkin.min.js similarity index 100% rename from lib/highlight_js/assets/lang/gherkin.js rename to vendor/assets/javascripts/highlightjs/languages/gherkin.min.js diff --git a/lib/highlight_js/assets/lang/glsl.js b/vendor/assets/javascripts/highlightjs/languages/glsl.min.js similarity index 100% rename from lib/highlight_js/assets/lang/glsl.js rename to vendor/assets/javascripts/highlightjs/languages/glsl.min.js diff --git a/lib/highlight_js/assets/lang/gml.js b/vendor/assets/javascripts/highlightjs/languages/gml.min.js similarity index 100% rename from lib/highlight_js/assets/lang/gml.js rename to vendor/assets/javascripts/highlightjs/languages/gml.min.js diff --git a/lib/highlight_js/assets/lang/go.js b/vendor/assets/javascripts/highlightjs/languages/go.min.js similarity index 100% rename from lib/highlight_js/assets/lang/go.js rename to vendor/assets/javascripts/highlightjs/languages/go.min.js diff --git a/lib/highlight_js/assets/lang/golo.js b/vendor/assets/javascripts/highlightjs/languages/golo.min.js similarity index 100% rename from lib/highlight_js/assets/lang/golo.js rename to vendor/assets/javascripts/highlightjs/languages/golo.min.js diff --git a/lib/highlight_js/assets/lang/gradle.js b/vendor/assets/javascripts/highlightjs/languages/gradle.min.js similarity index 100% rename from lib/highlight_js/assets/lang/gradle.js rename to vendor/assets/javascripts/highlightjs/languages/gradle.min.js diff --git a/lib/highlight_js/assets/lang/groovy.js b/vendor/assets/javascripts/highlightjs/languages/groovy.min.js similarity index 100% rename from lib/highlight_js/assets/lang/groovy.js rename to vendor/assets/javascripts/highlightjs/languages/groovy.min.js diff --git a/lib/highlight_js/assets/lang/haml.js b/vendor/assets/javascripts/highlightjs/languages/haml.min.js similarity index 100% rename from lib/highlight_js/assets/lang/haml.js rename to vendor/assets/javascripts/highlightjs/languages/haml.min.js diff --git a/lib/highlight_js/assets/lang/handlebars.js b/vendor/assets/javascripts/highlightjs/languages/handlebars.min.js similarity index 100% rename from lib/highlight_js/assets/lang/handlebars.js rename to vendor/assets/javascripts/highlightjs/languages/handlebars.min.js diff --git a/lib/highlight_js/assets/lang/haskell.js b/vendor/assets/javascripts/highlightjs/languages/haskell.min.js similarity index 100% rename from lib/highlight_js/assets/lang/haskell.js rename to vendor/assets/javascripts/highlightjs/languages/haskell.min.js diff --git a/lib/highlight_js/assets/lang/haxe.js b/vendor/assets/javascripts/highlightjs/languages/haxe.min.js similarity index 100% rename from lib/highlight_js/assets/lang/haxe.js rename to vendor/assets/javascripts/highlightjs/languages/haxe.min.js diff --git a/lib/highlight_js/assets/lang/hsp.js b/vendor/assets/javascripts/highlightjs/languages/hsp.min.js similarity index 100% rename from lib/highlight_js/assets/lang/hsp.js rename to vendor/assets/javascripts/highlightjs/languages/hsp.min.js diff --git a/lib/highlight_js/assets/lang/htmlbars.js b/vendor/assets/javascripts/highlightjs/languages/htmlbars.min.js similarity index 100% rename from lib/highlight_js/assets/lang/htmlbars.js rename to vendor/assets/javascripts/highlightjs/languages/htmlbars.min.js diff --git a/lib/highlight_js/assets/lang/http.js b/vendor/assets/javascripts/highlightjs/languages/http.min.js similarity index 100% rename from lib/highlight_js/assets/lang/http.js rename to vendor/assets/javascripts/highlightjs/languages/http.min.js diff --git a/lib/highlight_js/assets/lang/hy.js b/vendor/assets/javascripts/highlightjs/languages/hy.min.js similarity index 100% rename from lib/highlight_js/assets/lang/hy.js rename to vendor/assets/javascripts/highlightjs/languages/hy.min.js diff --git a/lib/highlight_js/assets/lang/inform7.js b/vendor/assets/javascripts/highlightjs/languages/inform7.min.js similarity index 100% rename from lib/highlight_js/assets/lang/inform7.js rename to vendor/assets/javascripts/highlightjs/languages/inform7.min.js diff --git a/lib/highlight_js/assets/lang/ini.js b/vendor/assets/javascripts/highlightjs/languages/ini.min.js similarity index 100% rename from lib/highlight_js/assets/lang/ini.js rename to vendor/assets/javascripts/highlightjs/languages/ini.min.js diff --git a/lib/highlight_js/assets/lang/irpf90.js b/vendor/assets/javascripts/highlightjs/languages/irpf90.min.js similarity index 100% rename from lib/highlight_js/assets/lang/irpf90.js rename to vendor/assets/javascripts/highlightjs/languages/irpf90.min.js diff --git a/lib/highlight_js/assets/lang/isbl.js b/vendor/assets/javascripts/highlightjs/languages/isbl.min.js similarity index 100% rename from lib/highlight_js/assets/lang/isbl.js rename to vendor/assets/javascripts/highlightjs/languages/isbl.min.js diff --git a/lib/highlight_js/assets/lang/java.js b/vendor/assets/javascripts/highlightjs/languages/java.min.js similarity index 100% rename from lib/highlight_js/assets/lang/java.js rename to vendor/assets/javascripts/highlightjs/languages/java.min.js diff --git a/lib/highlight_js/assets/lang/javascript.js b/vendor/assets/javascripts/highlightjs/languages/javascript.min.js similarity index 100% rename from lib/highlight_js/assets/lang/javascript.js rename to vendor/assets/javascripts/highlightjs/languages/javascript.min.js diff --git a/lib/highlight_js/assets/lang/jboss-cli.js b/vendor/assets/javascripts/highlightjs/languages/jboss-cli.min.js similarity index 100% rename from lib/highlight_js/assets/lang/jboss-cli.js rename to vendor/assets/javascripts/highlightjs/languages/jboss-cli.min.js diff --git a/lib/highlight_js/assets/lang/json.js b/vendor/assets/javascripts/highlightjs/languages/json.min.js similarity index 100% rename from lib/highlight_js/assets/lang/json.js rename to vendor/assets/javascripts/highlightjs/languages/json.min.js diff --git a/lib/highlight_js/assets/lang/julia-repl.js b/vendor/assets/javascripts/highlightjs/languages/julia-repl.min.js similarity index 100% rename from lib/highlight_js/assets/lang/julia-repl.js rename to vendor/assets/javascripts/highlightjs/languages/julia-repl.min.js diff --git a/lib/highlight_js/assets/lang/julia.js b/vendor/assets/javascripts/highlightjs/languages/julia.min.js similarity index 100% rename from lib/highlight_js/assets/lang/julia.js rename to vendor/assets/javascripts/highlightjs/languages/julia.min.js diff --git a/lib/highlight_js/assets/lang/kotlin.js b/vendor/assets/javascripts/highlightjs/languages/kotlin.min.js similarity index 100% rename from lib/highlight_js/assets/lang/kotlin.js rename to vendor/assets/javascripts/highlightjs/languages/kotlin.min.js diff --git a/lib/highlight_js/assets/lang/lasso.js b/vendor/assets/javascripts/highlightjs/languages/lasso.min.js similarity index 100% rename from lib/highlight_js/assets/lang/lasso.js rename to vendor/assets/javascripts/highlightjs/languages/lasso.min.js diff --git a/lib/highlight_js/assets/lang/ldif.js b/vendor/assets/javascripts/highlightjs/languages/ldif.min.js similarity index 100% rename from lib/highlight_js/assets/lang/ldif.js rename to vendor/assets/javascripts/highlightjs/languages/ldif.min.js diff --git a/lib/highlight_js/assets/lang/leaf.js b/vendor/assets/javascripts/highlightjs/languages/leaf.min.js similarity index 100% rename from lib/highlight_js/assets/lang/leaf.js rename to vendor/assets/javascripts/highlightjs/languages/leaf.min.js diff --git a/lib/highlight_js/assets/lang/less.js b/vendor/assets/javascripts/highlightjs/languages/less.min.js similarity index 100% rename from lib/highlight_js/assets/lang/less.js rename to vendor/assets/javascripts/highlightjs/languages/less.min.js diff --git a/lib/highlight_js/assets/lang/lisp.js b/vendor/assets/javascripts/highlightjs/languages/lisp.min.js similarity index 100% rename from lib/highlight_js/assets/lang/lisp.js rename to vendor/assets/javascripts/highlightjs/languages/lisp.min.js diff --git a/lib/highlight_js/assets/lang/livecodeserver.js b/vendor/assets/javascripts/highlightjs/languages/livecodeserver.min.js similarity index 100% rename from lib/highlight_js/assets/lang/livecodeserver.js rename to vendor/assets/javascripts/highlightjs/languages/livecodeserver.min.js diff --git a/lib/highlight_js/assets/lang/livescript.js b/vendor/assets/javascripts/highlightjs/languages/livescript.min.js similarity index 100% rename from lib/highlight_js/assets/lang/livescript.js rename to vendor/assets/javascripts/highlightjs/languages/livescript.min.js diff --git a/lib/highlight_js/assets/lang/llvm.js b/vendor/assets/javascripts/highlightjs/languages/llvm.min.js similarity index 100% rename from lib/highlight_js/assets/lang/llvm.js rename to vendor/assets/javascripts/highlightjs/languages/llvm.min.js diff --git a/lib/highlight_js/assets/lang/lsl.js b/vendor/assets/javascripts/highlightjs/languages/lsl.min.js similarity index 100% rename from lib/highlight_js/assets/lang/lsl.js rename to vendor/assets/javascripts/highlightjs/languages/lsl.min.js diff --git a/lib/highlight_js/assets/lang/lua.js b/vendor/assets/javascripts/highlightjs/languages/lua.min.js similarity index 100% rename from lib/highlight_js/assets/lang/lua.js rename to vendor/assets/javascripts/highlightjs/languages/lua.min.js diff --git a/lib/highlight_js/assets/lang/makefile.js b/vendor/assets/javascripts/highlightjs/languages/makefile.min.js similarity index 100% rename from lib/highlight_js/assets/lang/makefile.js rename to vendor/assets/javascripts/highlightjs/languages/makefile.min.js diff --git a/lib/highlight_js/assets/lang/markdown.js b/vendor/assets/javascripts/highlightjs/languages/markdown.min.js similarity index 100% rename from lib/highlight_js/assets/lang/markdown.js rename to vendor/assets/javascripts/highlightjs/languages/markdown.min.js diff --git a/lib/highlight_js/assets/lang/mathematica.js b/vendor/assets/javascripts/highlightjs/languages/mathematica.min.js similarity index 100% rename from lib/highlight_js/assets/lang/mathematica.js rename to vendor/assets/javascripts/highlightjs/languages/mathematica.min.js diff --git a/lib/highlight_js/assets/lang/matlab.js b/vendor/assets/javascripts/highlightjs/languages/matlab.min.js similarity index 100% rename from lib/highlight_js/assets/lang/matlab.js rename to vendor/assets/javascripts/highlightjs/languages/matlab.min.js diff --git a/lib/highlight_js/assets/lang/maxima.js b/vendor/assets/javascripts/highlightjs/languages/maxima.min.js similarity index 100% rename from lib/highlight_js/assets/lang/maxima.js rename to vendor/assets/javascripts/highlightjs/languages/maxima.min.js diff --git a/lib/highlight_js/assets/lang/mel.js b/vendor/assets/javascripts/highlightjs/languages/mel.min.js similarity index 100% rename from lib/highlight_js/assets/lang/mel.js rename to vendor/assets/javascripts/highlightjs/languages/mel.min.js diff --git a/lib/highlight_js/assets/lang/mercury.js b/vendor/assets/javascripts/highlightjs/languages/mercury.min.js similarity index 100% rename from lib/highlight_js/assets/lang/mercury.js rename to vendor/assets/javascripts/highlightjs/languages/mercury.min.js diff --git a/lib/highlight_js/assets/lang/mipsasm.js b/vendor/assets/javascripts/highlightjs/languages/mipsasm.min.js similarity index 100% rename from lib/highlight_js/assets/lang/mipsasm.js rename to vendor/assets/javascripts/highlightjs/languages/mipsasm.min.js diff --git a/lib/highlight_js/assets/lang/mizar.js b/vendor/assets/javascripts/highlightjs/languages/mizar.min.js similarity index 100% rename from lib/highlight_js/assets/lang/mizar.js rename to vendor/assets/javascripts/highlightjs/languages/mizar.min.js diff --git a/lib/highlight_js/assets/lang/mojolicious.js b/vendor/assets/javascripts/highlightjs/languages/mojolicious.min.js similarity index 100% rename from lib/highlight_js/assets/lang/mojolicious.js rename to vendor/assets/javascripts/highlightjs/languages/mojolicious.min.js diff --git a/lib/highlight_js/assets/lang/monkey.js b/vendor/assets/javascripts/highlightjs/languages/monkey.min.js similarity index 100% rename from lib/highlight_js/assets/lang/monkey.js rename to vendor/assets/javascripts/highlightjs/languages/monkey.min.js diff --git a/lib/highlight_js/assets/lang/moonscript.js b/vendor/assets/javascripts/highlightjs/languages/moonscript.min.js similarity index 100% rename from lib/highlight_js/assets/lang/moonscript.js rename to vendor/assets/javascripts/highlightjs/languages/moonscript.min.js diff --git a/lib/highlight_js/assets/lang/n1ql.js b/vendor/assets/javascripts/highlightjs/languages/n1ql.min.js similarity index 100% rename from lib/highlight_js/assets/lang/n1ql.js rename to vendor/assets/javascripts/highlightjs/languages/n1ql.min.js diff --git a/lib/highlight_js/assets/lang/nginx.js b/vendor/assets/javascripts/highlightjs/languages/nginx.min.js similarity index 100% rename from lib/highlight_js/assets/lang/nginx.js rename to vendor/assets/javascripts/highlightjs/languages/nginx.min.js diff --git a/lib/highlight_js/assets/lang/nimrod.js b/vendor/assets/javascripts/highlightjs/languages/nimrod.min.js similarity index 100% rename from lib/highlight_js/assets/lang/nimrod.js rename to vendor/assets/javascripts/highlightjs/languages/nimrod.min.js diff --git a/lib/highlight_js/assets/lang/nix.js b/vendor/assets/javascripts/highlightjs/languages/nix.min.js similarity index 100% rename from lib/highlight_js/assets/lang/nix.js rename to vendor/assets/javascripts/highlightjs/languages/nix.min.js diff --git a/lib/highlight_js/assets/lang/nsis.js b/vendor/assets/javascripts/highlightjs/languages/nsis.min.js similarity index 100% rename from lib/highlight_js/assets/lang/nsis.js rename to vendor/assets/javascripts/highlightjs/languages/nsis.min.js diff --git a/lib/highlight_js/assets/lang/objectivec.js b/vendor/assets/javascripts/highlightjs/languages/objectivec.min.js similarity index 100% rename from lib/highlight_js/assets/lang/objectivec.js rename to vendor/assets/javascripts/highlightjs/languages/objectivec.min.js diff --git a/lib/highlight_js/assets/lang/ocaml.js b/vendor/assets/javascripts/highlightjs/languages/ocaml.min.js similarity index 100% rename from lib/highlight_js/assets/lang/ocaml.js rename to vendor/assets/javascripts/highlightjs/languages/ocaml.min.js diff --git a/lib/highlight_js/assets/lang/openscad.js b/vendor/assets/javascripts/highlightjs/languages/openscad.min.js similarity index 100% rename from lib/highlight_js/assets/lang/openscad.js rename to vendor/assets/javascripts/highlightjs/languages/openscad.min.js diff --git a/lib/highlight_js/assets/lang/oxygene.js b/vendor/assets/javascripts/highlightjs/languages/oxygene.min.js similarity index 100% rename from lib/highlight_js/assets/lang/oxygene.js rename to vendor/assets/javascripts/highlightjs/languages/oxygene.min.js diff --git a/lib/highlight_js/assets/lang/parser3.js b/vendor/assets/javascripts/highlightjs/languages/parser3.min.js similarity index 100% rename from lib/highlight_js/assets/lang/parser3.js rename to vendor/assets/javascripts/highlightjs/languages/parser3.min.js diff --git a/lib/highlight_js/assets/lang/perl.js b/vendor/assets/javascripts/highlightjs/languages/perl.min.js similarity index 100% rename from lib/highlight_js/assets/lang/perl.js rename to vendor/assets/javascripts/highlightjs/languages/perl.min.js diff --git a/lib/highlight_js/assets/lang/pf.js b/vendor/assets/javascripts/highlightjs/languages/pf.min.js similarity index 100% rename from lib/highlight_js/assets/lang/pf.js rename to vendor/assets/javascripts/highlightjs/languages/pf.min.js diff --git a/lib/highlight_js/assets/lang/pgsql.js b/vendor/assets/javascripts/highlightjs/languages/pgsql.min.js similarity index 100% rename from lib/highlight_js/assets/lang/pgsql.js rename to vendor/assets/javascripts/highlightjs/languages/pgsql.min.js diff --git a/lib/highlight_js/assets/lang/php.js b/vendor/assets/javascripts/highlightjs/languages/php.min.js similarity index 100% rename from lib/highlight_js/assets/lang/php.js rename to vendor/assets/javascripts/highlightjs/languages/php.min.js diff --git a/lib/highlight_js/assets/lang/plaintext.js b/vendor/assets/javascripts/highlightjs/languages/plaintext.min.js similarity index 100% rename from lib/highlight_js/assets/lang/plaintext.js rename to vendor/assets/javascripts/highlightjs/languages/plaintext.min.js diff --git a/lib/highlight_js/assets/lang/pony.js b/vendor/assets/javascripts/highlightjs/languages/pony.min.js similarity index 70% rename from lib/highlight_js/assets/lang/pony.js rename to vendor/assets/javascripts/highlightjs/languages/pony.min.js index 05ee0958e83..1dc12e97a14 100644 --- a/lib/highlight_js/assets/lang/pony.js +++ b/vendor/assets/javascripts/highlightjs/languages/pony.min.js @@ -1 +1 @@ -hljs.registerLanguage("pony",function(e){var r={keyword:"actor addressof and as be break class compile_error compile_intrinsicconsume continue delegate digestof do else elseif embed end errorfor fun if ifdef in interface is isnt lambda let match new not objector primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},t={cN:"string",b:'"""',e:'"""',r:10},c={cN:"string",b:'"',e:'"',c:[e.BE]},i={cN:"string",b:"'",e:"'",c:[e.BE],r:0},n={cN:"type",b:"\\b_?[A-Z][\\w]*",r:0},s={b:e.IR+"'",r:0},a={cN:"class",bK:"class actor",e:"$",c:[e.TM,e.CLCM]},o={cN:"function",bK:"new fun",e:"=>",c:[e.TM,{b:/\(/,e:/\)/,c:[n,s,e.CNM,e.CBCM]},{b:/:/,eW:!0,c:[n]},e.CLCM]};return{k:r,c:[a,o,n,t,c,i,s,e.CNM,e.CLCM,e.CBCM]}}); \ No newline at end of file +hljs.registerLanguage("pony",function(e){var r={keyword:"actor addressof and as be break class compile_error compile_intrinsicconsume continue delegate digestof do else elseif embed end errorfor fun if ifdef in interface is isnt lambda let match new not objector primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},t={cN:"string",b:'"""',e:'"""',r:10},c={cN:"string",b:'"',e:'"',c:[e.BE]},i={cN:"string",b:"'",e:"'",c:[e.BE],r:0},n={cN:"type",b:"\\b_?[A-Z][\\w]*",r:0},s={b:e.IR+"'",r:0},a={cN:"class",bK:"class actor object",e:"$",c:[e.TM,e.CLCM]},o={cN:"function",bK:"new fun",e:"=>",c:[e.TM,{b:/\(/,e:/\)/,c:[n,s,e.CNM,e.CBCM]},{b:/:/,eW:!0,c:[n]},e.CLCM]};return{k:r,c:[a,o,n,t,c,i,s,e.CNM,e.CLCM,e.CBCM]}}); \ No newline at end of file diff --git a/lib/highlight_js/assets/lang/powershell.js b/vendor/assets/javascripts/highlightjs/languages/powershell.min.js similarity index 100% rename from lib/highlight_js/assets/lang/powershell.js rename to vendor/assets/javascripts/highlightjs/languages/powershell.min.js diff --git a/lib/highlight_js/assets/lang/processing.js b/vendor/assets/javascripts/highlightjs/languages/processing.min.js similarity index 100% rename from lib/highlight_js/assets/lang/processing.js rename to vendor/assets/javascripts/highlightjs/languages/processing.min.js diff --git a/lib/highlight_js/assets/lang/profile.js b/vendor/assets/javascripts/highlightjs/languages/profile.min.js similarity index 100% rename from lib/highlight_js/assets/lang/profile.js rename to vendor/assets/javascripts/highlightjs/languages/profile.min.js diff --git a/lib/highlight_js/assets/lang/prolog.js b/vendor/assets/javascripts/highlightjs/languages/prolog.min.js similarity index 100% rename from lib/highlight_js/assets/lang/prolog.js rename to vendor/assets/javascripts/highlightjs/languages/prolog.min.js diff --git a/lib/highlight_js/assets/lang/properties.js b/vendor/assets/javascripts/highlightjs/languages/properties.min.js similarity index 100% rename from lib/highlight_js/assets/lang/properties.js rename to vendor/assets/javascripts/highlightjs/languages/properties.min.js diff --git a/lib/highlight_js/assets/lang/protobuf.js b/vendor/assets/javascripts/highlightjs/languages/protobuf.min.js similarity index 100% rename from lib/highlight_js/assets/lang/protobuf.js rename to vendor/assets/javascripts/highlightjs/languages/protobuf.min.js diff --git a/lib/highlight_js/assets/lang/puppet.js b/vendor/assets/javascripts/highlightjs/languages/puppet.min.js similarity index 100% rename from lib/highlight_js/assets/lang/puppet.js rename to vendor/assets/javascripts/highlightjs/languages/puppet.min.js diff --git a/lib/highlight_js/assets/lang/purebasic.js b/vendor/assets/javascripts/highlightjs/languages/purebasic.min.js similarity index 100% rename from lib/highlight_js/assets/lang/purebasic.js rename to vendor/assets/javascripts/highlightjs/languages/purebasic.min.js diff --git a/lib/highlight_js/assets/lang/python.js b/vendor/assets/javascripts/highlightjs/languages/python.min.js similarity index 100% rename from lib/highlight_js/assets/lang/python.js rename to vendor/assets/javascripts/highlightjs/languages/python.min.js diff --git a/lib/highlight_js/assets/lang/q.js b/vendor/assets/javascripts/highlightjs/languages/q.min.js similarity index 100% rename from lib/highlight_js/assets/lang/q.js rename to vendor/assets/javascripts/highlightjs/languages/q.min.js diff --git a/lib/highlight_js/assets/lang/qml.js b/vendor/assets/javascripts/highlightjs/languages/qml.min.js similarity index 100% rename from lib/highlight_js/assets/lang/qml.js rename to vendor/assets/javascripts/highlightjs/languages/qml.min.js diff --git a/lib/highlight_js/assets/lang/r.js b/vendor/assets/javascripts/highlightjs/languages/r.min.js similarity index 100% rename from lib/highlight_js/assets/lang/r.js rename to vendor/assets/javascripts/highlightjs/languages/r.min.js diff --git a/lib/highlight_js/assets/lang/reasonml.js b/vendor/assets/javascripts/highlightjs/languages/reasonml.min.js similarity index 100% rename from lib/highlight_js/assets/lang/reasonml.js rename to vendor/assets/javascripts/highlightjs/languages/reasonml.min.js diff --git a/lib/highlight_js/assets/lang/rib.js b/vendor/assets/javascripts/highlightjs/languages/rib.min.js similarity index 100% rename from lib/highlight_js/assets/lang/rib.js rename to vendor/assets/javascripts/highlightjs/languages/rib.min.js diff --git a/lib/highlight_js/assets/lang/roboconf.js b/vendor/assets/javascripts/highlightjs/languages/roboconf.min.js similarity index 100% rename from lib/highlight_js/assets/lang/roboconf.js rename to vendor/assets/javascripts/highlightjs/languages/roboconf.min.js diff --git a/lib/highlight_js/assets/lang/routeros.js b/vendor/assets/javascripts/highlightjs/languages/routeros.min.js similarity index 100% rename from lib/highlight_js/assets/lang/routeros.js rename to vendor/assets/javascripts/highlightjs/languages/routeros.min.js diff --git a/lib/highlight_js/assets/lang/rsl.js b/vendor/assets/javascripts/highlightjs/languages/rsl.min.js similarity index 100% rename from lib/highlight_js/assets/lang/rsl.js rename to vendor/assets/javascripts/highlightjs/languages/rsl.min.js diff --git a/lib/highlight_js/assets/lang/ruby.js b/vendor/assets/javascripts/highlightjs/languages/ruby.min.js similarity index 100% rename from lib/highlight_js/assets/lang/ruby.js rename to vendor/assets/javascripts/highlightjs/languages/ruby.min.js diff --git a/lib/highlight_js/assets/lang/ruleslanguage.js b/vendor/assets/javascripts/highlightjs/languages/ruleslanguage.min.js similarity index 100% rename from lib/highlight_js/assets/lang/ruleslanguage.js rename to vendor/assets/javascripts/highlightjs/languages/ruleslanguage.min.js diff --git a/lib/highlight_js/assets/lang/rust.js b/vendor/assets/javascripts/highlightjs/languages/rust.min.js similarity index 100% rename from lib/highlight_js/assets/lang/rust.js rename to vendor/assets/javascripts/highlightjs/languages/rust.min.js diff --git a/lib/highlight_js/assets/lang/sas.js b/vendor/assets/javascripts/highlightjs/languages/sas.min.js similarity index 100% rename from lib/highlight_js/assets/lang/sas.js rename to vendor/assets/javascripts/highlightjs/languages/sas.min.js diff --git a/lib/highlight_js/assets/lang/scala.js b/vendor/assets/javascripts/highlightjs/languages/scala.min.js similarity index 100% rename from lib/highlight_js/assets/lang/scala.js rename to vendor/assets/javascripts/highlightjs/languages/scala.min.js diff --git a/lib/highlight_js/assets/lang/scheme.js b/vendor/assets/javascripts/highlightjs/languages/scheme.min.js similarity index 100% rename from lib/highlight_js/assets/lang/scheme.js rename to vendor/assets/javascripts/highlightjs/languages/scheme.min.js diff --git a/lib/highlight_js/assets/lang/scilab.js b/vendor/assets/javascripts/highlightjs/languages/scilab.min.js similarity index 100% rename from lib/highlight_js/assets/lang/scilab.js rename to vendor/assets/javascripts/highlightjs/languages/scilab.min.js diff --git a/lib/highlight_js/assets/lang/scss.js b/vendor/assets/javascripts/highlightjs/languages/scss.min.js similarity index 100% rename from lib/highlight_js/assets/lang/scss.js rename to vendor/assets/javascripts/highlightjs/languages/scss.min.js diff --git a/lib/highlight_js/assets/lang/shell.js b/vendor/assets/javascripts/highlightjs/languages/shell.min.js similarity index 100% rename from lib/highlight_js/assets/lang/shell.js rename to vendor/assets/javascripts/highlightjs/languages/shell.min.js diff --git a/lib/highlight_js/assets/lang/smali.js b/vendor/assets/javascripts/highlightjs/languages/smali.min.js similarity index 100% rename from lib/highlight_js/assets/lang/smali.js rename to vendor/assets/javascripts/highlightjs/languages/smali.min.js diff --git a/lib/highlight_js/assets/lang/smalltalk.js b/vendor/assets/javascripts/highlightjs/languages/smalltalk.min.js similarity index 100% rename from lib/highlight_js/assets/lang/smalltalk.js rename to vendor/assets/javascripts/highlightjs/languages/smalltalk.min.js diff --git a/lib/highlight_js/assets/lang/sml.js b/vendor/assets/javascripts/highlightjs/languages/sml.min.js similarity index 100% rename from lib/highlight_js/assets/lang/sml.js rename to vendor/assets/javascripts/highlightjs/languages/sml.min.js diff --git a/lib/highlight_js/assets/lang/sqf.js b/vendor/assets/javascripts/highlightjs/languages/sqf.min.js similarity index 100% rename from lib/highlight_js/assets/lang/sqf.js rename to vendor/assets/javascripts/highlightjs/languages/sqf.min.js diff --git a/lib/highlight_js/assets/lang/sql.js b/vendor/assets/javascripts/highlightjs/languages/sql.min.js similarity index 100% rename from lib/highlight_js/assets/lang/sql.js rename to vendor/assets/javascripts/highlightjs/languages/sql.min.js diff --git a/lib/highlight_js/assets/lang/stan.js b/vendor/assets/javascripts/highlightjs/languages/stan.min.js similarity index 100% rename from lib/highlight_js/assets/lang/stan.js rename to vendor/assets/javascripts/highlightjs/languages/stan.min.js diff --git a/lib/highlight_js/assets/lang/stata.js b/vendor/assets/javascripts/highlightjs/languages/stata.min.js similarity index 100% rename from lib/highlight_js/assets/lang/stata.js rename to vendor/assets/javascripts/highlightjs/languages/stata.min.js diff --git a/lib/highlight_js/assets/lang/step21.js b/vendor/assets/javascripts/highlightjs/languages/step21.min.js similarity index 100% rename from lib/highlight_js/assets/lang/step21.js rename to vendor/assets/javascripts/highlightjs/languages/step21.min.js diff --git a/lib/highlight_js/assets/lang/stylus.js b/vendor/assets/javascripts/highlightjs/languages/stylus.min.js similarity index 100% rename from lib/highlight_js/assets/lang/stylus.js rename to vendor/assets/javascripts/highlightjs/languages/stylus.min.js diff --git a/lib/highlight_js/assets/lang/subunit.js b/vendor/assets/javascripts/highlightjs/languages/subunit.min.js similarity index 100% rename from lib/highlight_js/assets/lang/subunit.js rename to vendor/assets/javascripts/highlightjs/languages/subunit.min.js diff --git a/lib/highlight_js/assets/lang/swift.js b/vendor/assets/javascripts/highlightjs/languages/swift.min.js similarity index 100% rename from lib/highlight_js/assets/lang/swift.js rename to vendor/assets/javascripts/highlightjs/languages/swift.min.js diff --git a/lib/highlight_js/assets/lang/taggerscript.js b/vendor/assets/javascripts/highlightjs/languages/taggerscript.min.js similarity index 100% rename from lib/highlight_js/assets/lang/taggerscript.js rename to vendor/assets/javascripts/highlightjs/languages/taggerscript.min.js diff --git a/lib/highlight_js/assets/lang/tap.js b/vendor/assets/javascripts/highlightjs/languages/tap.min.js similarity index 100% rename from lib/highlight_js/assets/lang/tap.js rename to vendor/assets/javascripts/highlightjs/languages/tap.min.js diff --git a/lib/highlight_js/assets/lang/tcl.js b/vendor/assets/javascripts/highlightjs/languages/tcl.min.js similarity index 100% rename from lib/highlight_js/assets/lang/tcl.js rename to vendor/assets/javascripts/highlightjs/languages/tcl.min.js diff --git a/lib/highlight_js/assets/lang/tex.js b/vendor/assets/javascripts/highlightjs/languages/tex.min.js similarity index 100% rename from lib/highlight_js/assets/lang/tex.js rename to vendor/assets/javascripts/highlightjs/languages/tex.min.js diff --git a/lib/highlight_js/assets/lang/thrift.js b/vendor/assets/javascripts/highlightjs/languages/thrift.min.js similarity index 100% rename from lib/highlight_js/assets/lang/thrift.js rename to vendor/assets/javascripts/highlightjs/languages/thrift.min.js diff --git a/lib/highlight_js/assets/lang/tp.js b/vendor/assets/javascripts/highlightjs/languages/tp.min.js similarity index 100% rename from lib/highlight_js/assets/lang/tp.js rename to vendor/assets/javascripts/highlightjs/languages/tp.min.js diff --git a/lib/highlight_js/assets/lang/twig.js b/vendor/assets/javascripts/highlightjs/languages/twig.min.js similarity index 100% rename from lib/highlight_js/assets/lang/twig.js rename to vendor/assets/javascripts/highlightjs/languages/twig.min.js diff --git a/lib/highlight_js/assets/lang/typescript.js b/vendor/assets/javascripts/highlightjs/languages/typescript.min.js similarity index 100% rename from lib/highlight_js/assets/lang/typescript.js rename to vendor/assets/javascripts/highlightjs/languages/typescript.min.js diff --git a/lib/highlight_js/assets/lang/vala.js b/vendor/assets/javascripts/highlightjs/languages/vala.min.js similarity index 100% rename from lib/highlight_js/assets/lang/vala.js rename to vendor/assets/javascripts/highlightjs/languages/vala.min.js diff --git a/lib/highlight_js/assets/lang/vbnet.js b/vendor/assets/javascripts/highlightjs/languages/vbnet.min.js similarity index 100% rename from lib/highlight_js/assets/lang/vbnet.js rename to vendor/assets/javascripts/highlightjs/languages/vbnet.min.js diff --git a/lib/highlight_js/assets/lang/vbscript-html.js b/vendor/assets/javascripts/highlightjs/languages/vbscript-html.min.js similarity index 100% rename from lib/highlight_js/assets/lang/vbscript-html.js rename to vendor/assets/javascripts/highlightjs/languages/vbscript-html.min.js diff --git a/lib/highlight_js/assets/lang/vbscript.js b/vendor/assets/javascripts/highlightjs/languages/vbscript.min.js similarity index 100% rename from lib/highlight_js/assets/lang/vbscript.js rename to vendor/assets/javascripts/highlightjs/languages/vbscript.min.js diff --git a/lib/highlight_js/assets/lang/verilog.js b/vendor/assets/javascripts/highlightjs/languages/verilog.min.js similarity index 100% rename from lib/highlight_js/assets/lang/verilog.js rename to vendor/assets/javascripts/highlightjs/languages/verilog.min.js diff --git a/lib/highlight_js/assets/lang/vhdl.js b/vendor/assets/javascripts/highlightjs/languages/vhdl.min.js similarity index 100% rename from lib/highlight_js/assets/lang/vhdl.js rename to vendor/assets/javascripts/highlightjs/languages/vhdl.min.js diff --git a/lib/highlight_js/assets/lang/vim.js b/vendor/assets/javascripts/highlightjs/languages/vim.min.js similarity index 100% rename from lib/highlight_js/assets/lang/vim.js rename to vendor/assets/javascripts/highlightjs/languages/vim.min.js diff --git a/lib/highlight_js/assets/lang/x86asm.js b/vendor/assets/javascripts/highlightjs/languages/x86asm.min.js similarity index 100% rename from lib/highlight_js/assets/lang/x86asm.js rename to vendor/assets/javascripts/highlightjs/languages/x86asm.min.js diff --git a/lib/highlight_js/assets/lang/xl.js b/vendor/assets/javascripts/highlightjs/languages/xl.min.js similarity index 100% rename from lib/highlight_js/assets/lang/xl.js rename to vendor/assets/javascripts/highlightjs/languages/xl.min.js diff --git a/lib/highlight_js/assets/lang/xml.js b/vendor/assets/javascripts/highlightjs/languages/xml.min.js similarity index 100% rename from lib/highlight_js/assets/lang/xml.js rename to vendor/assets/javascripts/highlightjs/languages/xml.min.js diff --git a/vendor/assets/javascripts/highlightjs/languages/xquery.min.js b/vendor/assets/javascripts/highlightjs/languages/xquery.min.js new file mode 100644 index 00000000000..59e4a3e2cc0 --- /dev/null +++ b/vendor/assets/javascripts/highlightjs/languages/xquery.min.js @@ -0,0 +1 @@ +hljs.registerLanguage("xquery",function(e){var t="module schema namespace boundary-space preserve no-preserve strip default collation base-uri ordering context decimal-format decimal-separator copy-namespaces empty-sequence except exponent-separator external grouping-separator inherit no-inherit lax minus-sign per-mille percent schema-attribute schema-element strict unordered zero-digit declare import option function validate variable for at in let where order group by return if then else tumbling sliding window start when only end previous next stable ascending descending allowing empty greatest least some every satisfies switch case typeswitch try catch and or to union intersect instance of treat as castable cast map array delete insert into replace value rename copy modify update",a="item document-node node attribute document element comment namespace namespace-node processing-instruction text construction xs:anyAtomicType xs:untypedAtomic xs:duration xs:time xs:decimal xs:float xs:double xs:gYearMonth xs:gYear xs:gMonthDay xs:gMonth xs:gDay xs:boolean xs:base64Binary xs:hexBinary xs:anyURI xs:QName xs:NOTATION xs:dateTime xs:dateTimeStamp xs:date xs:string xs:normalizedString xs:token xs:language xs:NMTOKEN xs:Name xs:NCName xs:ID xs:IDREF xs:ENTITY xs:integer xs:nonPositiveInteger xs:negativeInteger xs:long xs:int xs:short xs:byte xs:nonNegativeInteger xs:unisignedLong xs:unsignedInt xs:unsignedShort xs:unsignedByte xs:positiveInteger xs:yearMonthDuration xs:dayTimeDuration",n="eq ne lt le gt ge is self:: child:: descendant:: descendant-or-self:: attribute:: following:: following-sibling:: parent:: ancestor:: ancestor-or-self:: preceding:: preceding-sibling:: NaN",r={cN:"built_in",v:[{b:/\barray\:/,e:/(?:append|filter|flatten|fold\-(?:left|right)|for-each(?:\-pair)?|get|head|insert\-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{b:/\bmap\:/,e:/(?:contains|entry|find|for\-each|get|keys|merge|put|remove|size)\b/},{b:/\bmath\:/,e:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{b:/\bop\:/,e:/\(/,eE:!0},{b:/\bfn\:/,e:/\(/,eE:!0},{b:/[^<\/\$\:'"-]\b(?:abs|accumulator\-(?:after|before)|adjust\-(?:date(?:Time)?|time)\-to\-timezone|analyze\-string|apply|available\-(?:environment\-variables|system\-properties)|avg|base\-uri|boolean|ceiling|codepoints?\-(?:equal|to\-string)|collation\-key|collection|compare|concat|contains(?:\-token)?|copy\-of|count|current(?:\-)?(?:date(?:Time)?|time|group(?:ing\-key)?|output\-uri|merge\-(?:group|key))?data|dateTime|days?\-from\-(?:date(?:Time)?|duration)|deep\-equal|default\-(?:collation|language)|distinct\-values|document(?:\-uri)?|doc(?:\-available)?|element\-(?:available|with\-id)|empty|encode\-for\-uri|ends\-with|environment\-variable|error|escape\-html\-uri|exactly\-one|exists|false|filter|floor|fold\-(?:left|right)|for\-each(?:\-pair)?|format\-(?:date(?:Time)?|time|integer|number)|function\-(?:arity|available|lookup|name)|generate\-id|has\-children|head|hours\-from\-(?:dateTime|duration|time)|id(?:ref)?|implicit\-timezone|in\-scope\-prefixes|index\-of|innermost|insert\-before|iri\-to\-uri|json\-(?:doc|to\-xml)|key|lang|last|load\-xquery\-module|local\-name(?:\-from\-QName)?|(?:lower|upper)\-case|matches|max|minutes\-from\-(?:dateTime|duration|time)|min|months?\-from\-(?:date(?:Time)?|duration)|name(?:space\-uri\-?(?:for\-prefix|from\-QName)?)?|nilled|node\-name|normalize\-(?:space|unicode)|not|number|one\-or\-more|outermost|parse\-(?:ietf\-date|json)|path|position|(?:prefix\-from\-)?QName|random\-number\-generator|regex\-group|remove|replace|resolve\-(?:QName|uri)|reverse|root|round(?:\-half\-to\-even)?|seconds\-from\-(?:dateTime|duration|time)|snapshot|sort|starts\-with|static\-base\-uri|stream\-available|string\-?(?:join|length|to\-codepoints)?|subsequence|substring\-?(?:after|before)?|sum|system\-property|tail|timezone\-from\-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type\-available|unordered|unparsed\-(?:entity|text)?\-?(?:public\-id|uri|available|lines)?|uri\-collection|xml\-to\-json|years?\-from\-(?:date(?:Time)?|duration)|zero\-or\-one)\b/},{b:/\blocal\:/,e:/\(/,eE:!0},{b:/\bzip\:/,e:/(?:zip\-file|(?:xml|html|text|binary)\-entry| (?:update\-)?entries)\b/},{b:/\b(?:util|db|functx|app|xdmp|xmldb)\:/,e:/\(/,eE:!0}]},i={cN:"title",b:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,e:/;/},o={cN:"variable",b:/[\$][\w-:]+/},s={cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},l={cN:"string",v:[{b:/"/,e:/"/,c:[{b:/""/,r:0}]},{b:/'/,e:/'/,c:[{b:/''/,r:0}]}]},m={cN:"meta",b:/%[\w-:]+/},c={cN:"comment",b:"\\(:",e:":\\)",r:10,c:[{cN:"doctag",b:"@\\w+"}]},d={bK:"element attribute comment document processing-instruction",e:"{",eE:!0},u={b:/<([\w\._:\-]+)((\s*.*)=('|").*('|"))?>/,e:/(\/[\w\._:\-]+>)/,sL:"xml",c:[{b:"{",e:"}",sL:"xquery"},"self"]},p=[o,r,l,s,c,m,i,d,u];return{aliases:["xpath","xq"],cI:!1,l:/[a-zA-Z\$][a-zA-Z0-9_:\-]*/,i:/(proc)|(abstract)|(extends)|(until)|(#)/,k:{keyword:t,type:a,literal:n},c:p}}); \ No newline at end of file diff --git a/lib/highlight_js/assets/lang/yaml.js b/vendor/assets/javascripts/highlightjs/languages/yaml.min.js similarity index 100% rename from lib/highlight_js/assets/lang/yaml.js rename to vendor/assets/javascripts/highlightjs/languages/yaml.min.js diff --git a/lib/highlight_js/assets/lang/zephir.js b/vendor/assets/javascripts/highlightjs/languages/zephir.min.js similarity index 100% rename from lib/highlight_js/assets/lang/zephir.js rename to vendor/assets/javascripts/highlightjs/languages/zephir.min.js diff --git a/yarn.lock b/yarn.lock index 2fe6c8adc51..eeb2c0786e3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1131,6 +1131,10 @@ has-values@^1.0.0: is-number "^3.0.0" kind-of "^4.0.0" +"highlight.js@https://github.com/highlightjs/highlight.js": + version "9.13.1" + resolved "https://github.com/highlightjs/highlight.js#1b10552510a1ec13a3d30d46281dc268553ad157" + homedir-polyfill@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc"