Skip to content

Commit 07ec4ca

Browse files
committed
Fix PHP syntax highlighting
1 parent 83f86a4 commit 07ec4ca

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/tasks.bash

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@ function build-code-server() {
8383
cd "${buildPath}/out/vs/server" && yarn --production --ignore-scripts
8484
rm "${buildPath}/out/vs/server/"{package.json,yarn.lock}
8585

86+
# onigasm 2.2.2 has a bug that makes it broken for PHP files so use 2.2.1.
87+
# https://github.com/NeekSandhu/onigasm/issues/17
88+
local onigasmPath="${buildPath}/node_modules/onigasm-umd"
89+
rm -rf "${onigasmPath}"
90+
git clone "https://github.com/alexandrudima/onigasm-umd" "${onigasmPath}"
91+
cd "${onigasmPath}" && yarn && yarn add --dev [email protected] && yarn package
92+
mkdir "${onigasmPath}-temp"
93+
mv "${onigasmPath}/"{release,LICENSE} "${onigasmPath}-temp"
94+
rm -rf "${onigasmPath}"
95+
mv "${onigasmPath}-temp" "${onigasmPath}"
96+
8697
prepend-loader "out/vs/server/main.js"
8798
prepend-loader "out/bootstrap-fork.js"
8899

0 commit comments

Comments
 (0)