Skip to content

Commit

Permalink
Merge branch 'record-fields' of github.com:sheaf/language-haskell
Browse files Browse the repository at this point in the history
  • Loading branch information
JustusAdam committed Apr 27, 2020
2 parents baea79e + 8f1b059 commit 9670142
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

- Enable highlighting for `.hs-boot` files ([#117](https://github.com/JustusAdam/language-haskell/issues/117)).
- Highlighting for data families and instances ([#72](https://github.com/JustusAdam/language-haskell/issues/72)).
- Fix regression: allow extra spaces between record field and type signature
([#118](https://github.com/JustusAdam/language-haskell/issues/118))

## 3.0.0 - 26.04.2020

Expand Down
2 changes: 1 addition & 1 deletion syntaxes/haskell.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ repository:
(?x)
([\p{Ll}_][\p{Ll}_\p{Lu}\p{Lt}\p{Nd}']*)
(?:\s*,\s*([\p{Ll}_][\p{Ll}_\p{Lu}\p{Lt}\p{Nd}']*))*
\s(::|∷)
\s+(::|∷)
end: ',|(?=})'
beginCaptures:
'1': {name: variable.other.definition.field.haskell}
Expand Down
11 changes: 6 additions & 5 deletions test/syntax-examples/test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,16 @@ then' = 0

data Data = Data { foo :: Int, bar :: Int }
data Data = Data {
foo :: Int, bar :: Int
foo :: Int, bar :: Int -- comment
}
data Data = Data {
foo :: Int,
bar :: Int
foo :: Int, -- comment1
bar :: Int -- comment2
}
data Data = Data {
foo :: Int
, bar :: Int
foos :: Int -- comment1
, bars :: Int -- comment2
, baz :: Int -- comment3
}

-- GADT's
Expand Down

0 comments on commit 9670142

Please sign in to comment.