Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- handle explicit semicolons/braces for layout.
- Properly highlight `family`/`instance` in type/data family declarations and
instances when `family`/`instance` is on a separate line.
- Highlight `{-# OPAQUE foo #-}` pragma, thanks to [@bodigrim](http://github.com/bodigrim).

## 3.8.0 - 14.06.2026

Expand Down
4 changes: 2 additions & 2 deletions syntax-examples/haskell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ someFunc = do
case (a :: Bool) of
Nothing -> b
return 6
where
where
ident = 4
ident' = 9


anotherFunc arg = do
anotherFunc arg = do
{ let thing = 5>
; arg <- doSomething 5
; let thing = 5
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/haskell.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ repository:
|MINIMAL|UNPACK|OVERLAPS|INCOHERENT
|NOUNPACK|SOURCE|OVERLAPPING|OVERLAPPABLE|INLINE
|NOINLINE|INLINE?ABLE|CONLIKE|LINE|COLUMN|RULES
|COMPLETE)\b(?!')
|COMPLETE|OPAQUE)\b(?!')
name: keyword.other.preprocessor.haskell
- begin: '(?i)\b(DEPRECATED|WARNING)\b'
beginCaptures:
Expand Down
6 changes: 6 additions & 0 deletions test/tests/Opaque.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- SYNTAX TEST "source.haskell" "OPAQUE pragma"

f :: Int -> Int
f x = 3 * x
{-# OPAQUE f #-}
-- ^^^^^^ keyword.other.preprocessor.haskell