@@ -42,12 +42,22 @@ fi
42# Always remove the local cache to avoid any confusion
42# Always remove the local cache to avoid any confusion
43bat cache --clear
43bat cache --clear
45−# TODO: Remove this (and the reverse part below) when
45+# TODO:
46−# https://github.com/trishume/syntect/issues/222 has been fixed
46+# - Remove the JavaDoc patch once https://github.com/trishume/syntect/issues/222 has been fixed
47−JAVADOC_FILE="${ASSET_DIR}/syntaxes/01_Packages/Java/JavaDoc.sublime-syntax"
47+# - Remove the C# patch once https://github.com/sublimehq/Packages/pull/2331 has been merged
48−JAVADOC_PATCH="${ASSET_DIR}/JavaDoc.sublime-syntax.patch"
48+
49−patch "$JAVADOC_FILE" "$JAVADOC_PATCH"
49+(
51+ for patch in patches/*.patch; do
52+ patch --strip=0 < "$patch"
51bat cache --build --blank --source="$ASSET_DIR" --target="$ASSET_DIR"
56bat cache --build --blank --source="$ASSET_DIR" --target="$ASSET_DIR"
53−patch -R "$JAVADOC_FILE" "$JAVADOC_PATCH"
58+(
60+ for patch in patches/*.patch; do
61+ patch --strip=0 --reverse < "$patch"