https://bugs.kde.org/show_bug.cgi?id=512318

Christoph Cullmann <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/syntax-highlighting/
                   |                            |-/commit/bfc0d871c4be7ff704
                   |                            |b079fbe6a479486d74ae98
         Resolution|---                         |FIXED

--- Comment #3 from Christoph Cullmann <[email protected]> ---
Git commit bfc0d871c4be7ff704b079fbe6a479486d74ae98 by Christoph Cullmann, on
behalf of Michał J. Gajda.
Committed on 21/11/2025 at 19:05.
Pushed by cullmann into branch 'master'.

Haskell: fix backslash operator tokenization

Summary:
  Backslash operators (\, \/, /\, \+, etc.) were incorrectly
  tokenized, splitting operators across multiple tokens or lumping
  them with adjacent text. Import context also lacked operator
  matching entirely.

  This patch adds explicit regex for backslash operators in both
  code and import contexts, while preserving lambda expressions.

Changes:
- Bump syntax version from 21 to 22
- Add backslash operator regex in code context (before general operators)
- Add operator matching to import context
- Add test cases for lambda expressions and backslash operators
- XML validates successfully

M  +30   -0    autotests/input/highlight.hs
M  +7    -1    data/syntax/haskell.xml

https://invent.kde.org/frameworks/syntax-highlighting/-/commit/bfc0d871c4be7ff704b079fbe6a479486d74ae98

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to