diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 61844a84..fc807718 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -166,7 +166,8 @@ jobs: - { target: arm-unknown-linux-gnueabihf , os: ubuntu-latest , dpkg_arch: armhf, use-cross: true } - { target: arm-unknown-linux-musleabihf, os: ubuntu-latest , dpkg_arch: musl-linux-armhf, use-cross: true } - { target: i686-pc-windows-msvc , os: windows-2025 , } - - { target: i686-unknown-linux-gnu , os: ubuntu-latest , dpkg_arch: i386, use-cross: true } + # The timeout test's socketpair fails on the Ubuntu 26.04 runner. + - { target: i686-unknown-linux-gnu , os: ubuntu-24.04 , dpkg_arch: i386, use-cross: true } - { target: i686-unknown-linux-musl , os: ubuntu-latest , dpkg_arch: musl-linux-i686, use-cross: true } - { target: x86_64-apple-darwin , os: macos-15-intel, } - { target: aarch64-apple-darwin , os: macos-latest , } diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e32b651..a1815da8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ## Other +- Pin the i686 GNU CI runner to Ubuntu 24.04 to avoid `socketpair` failures on Ubuntu 26.04, see #4101 (@PerchAnton) +- Fix dead Visual C++ Redistributable link in README, see #3895 (@1t1sCooL) - Document `StripAnsiMode` and its variants in rustdoc, see #4067 (@ump45nose) - Update Cargo dependencies to resolve current RustSec advisories, see #3861 (@TyceHerrman) - Add instructions for removing fish help abbreviations to README, see #3655 (@claw-explorer). Closes #3536 @@ -27,6 +29,7 @@ ## Bugfixes - Report `BAT_CONFIG_DIR` in `bat --diagnostic`, so bug reports show a config directory that overrides `$XDG_CONFIG_HOME`. See #4068 (@ump45nose) +- Fix `bat` hanging forever on JavaScript (and Svelte) code where an expression is followed by a block comment, e.g. `a /* x */`. Closes #4080, see #4091 (@NavpreetSSidhu) - Fix the first line of UTF-16BE input swallowing the second line, which broke line numbers, `--line-range` and highlighting, see #XXXX (@cindykrafft) - Exit quietly with status 0 instead of panicking when stdout is closed early (broken pipe) on auxiliary output paths such as `--completion`, `--config-file`, `--diagnostic`, `--generate-config-file`, `--set-terminal-title` and `cache --build`/`--clear`, matching the main output path since #232, closes #4034, see #4035 (@Mathjk) - Track strikethrough (SGR 9 / 29) in the ANSI style tracker so it is re-emitted like bold, dim, italic, and underline, and is no longer dropped after the first highlighted token when displaying ANSI input with syntax highlighting, see #4015 (@mikehasa) diff --git a/README.md b/README.md index 8826d4e0..b54a227d 100644 --- a/README.md +++ b/README.md @@ -417,7 +417,7 @@ scoop install bat You can download prebuilt binaries from the [Release page](https://github.com/sharkdp/bat/releases), -You will need to install the [Visual C++ Redistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) package. +You will need to install the [Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist) package. ### From binaries @@ -794,7 +794,7 @@ Example configuration file: ### Prerequisites -You will need to install the [Visual C++ Redistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) package. +You will need to install the [Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist) package. ### Paging diff --git a/assets/patches/JavaScript.sublime-syntax.patch b/assets/patches/JavaScript.sublime-syntax.patch index 9ab89d1d..8f12bac7 100644 --- a/assets/patches/JavaScript.sublime-syntax.patch +++ b/assets/patches/JavaScript.sublime-syntax.patch @@ -12,3 +12,13 @@ index 05a4fed6..78a7bf55 100644 scope: source.js variables: bin_digit: '[01_]' +@@ -93,7 +93,8 @@ variables: + (?! \+\+ | -- ) + (?= + != | +- [-+*/%><=&|^\[(;,.:?] | ++ [-+*%><=&|^\[(;,.:?] | ++ /(?!\*) | + (?:in|instanceof){{identifier_break}} + ) + )) diff --git a/tests/syntax-tests/highlighted/Svelte/comment_after_expression.svelte b/tests/syntax-tests/highlighted/Svelte/comment_after_expression.svelte new file mode 100644 index 00000000..1c5db65b --- /dev/null +++ b/tests/syntax-tests/highlighted/Svelte/comment_after_expression.svelte @@ -0,0 +1,5 @@ +{a + /* comment */ +} + +{a /* comment */} diff --git a/tests/syntax-tests/source/Svelte/comment_after_expression.svelte b/tests/syntax-tests/source/Svelte/comment_after_expression.svelte new file mode 100644 index 00000000..35be16d7 --- /dev/null +++ b/tests/syntax-tests/source/Svelte/comment_after_expression.svelte @@ -0,0 +1,5 @@ +{a + /* comment */ +} + +{a /* comment */}