Skip to content

Commit

Permalink
address LiquidHaskell regression (fixes #131)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheaf committed May 1, 2020
1 parent 3ad399b commit 0f38766
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- Allow unparenthesised `via` clauses, and highlight the derived instance code as usual.
- Improve support for promotion ticks ([#136](https://github.com/JustusAdam/language-haskell/issues/136)).
- Support record syntax in GADTs.
- Address regression in LiquidHaskell highlighting ([#131](https://github.com/JustusAdam/language-haskell/issues/136)).

## 3.0.0 - 26.04.2020

Expand Down
4 changes: 2 additions & 2 deletions syntaxes/haskell.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ keyEquivalent: ^~H
name: Haskell
patterns:
- name: block.liquidhaskell.haskell
contentName: block.liquidhaskell.haskell
begin: '\{-@'
end: '@-\}'
patterns: {include: $self}
patterns:
- include: '$self'
- captures:
'1': {name: punctuation.backtick.haskell}
'2': {name: entity.name.namespace.haskell}
Expand Down
1 change: 0 additions & 1 deletion test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ ticketsBroken=(
"T0073.hs"
"T0091.hs"
"T0121.hs"
"T0131.hs"
"T0132.hs"
)

Expand Down
4 changes: 2 additions & 2 deletions test/tickets/T0002.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module Module
-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment.line.double-dash.haskell
foo
-- ^^^ meta.declaration.exports.haskell entity.name.function.haskell
{- | disable, too
-- ^^^^^^^^^^^^^^^ comment.block.haskell
{- disable, too
-- ^^^^^^^^^^^^ comment.block.haskell
-}
, bar, bar
-- ^^^ meta.declaration.exports.haskell entity.name.function.haskell
Expand Down
3 changes: 3 additions & 0 deletions test/tickets/T0131.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@

{-@ incr :: x:Nat -> {v:Nat | v > x} @-}
-- <--------------------------------------- block.liquidhaskell.haskell
-- ^^ keyword.other.double-colon.haskell
-- ^^ keyword.operator.haskell
-- -------------------------------- - comment.block.haskell
incr :: Int -> Int
incr x = x + 1

0 comments on commit 0f38766

Please sign in to comment.