Skip to content

Commit

Permalink
Enabling pragmas in block comments
Browse files Browse the repository at this point in the history
Closes #116
  • Loading branch information
JustusAdam committed Apr 27, 2020
1 parent 8424407 commit d17e4e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
([#119](https://github.com/JustusAdam/language-haskell/issues/119))
- Fixed regression [#122](https://github.com/JustusAdam/language-haskell/issues/122), constructor
patterns
- Enabling pragmas in multiline comments
([#116](https://github.com/JustusAdam/language-haskell/issues/116))

## 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 @@ -350,7 +350,7 @@ patterns:
repository:
block_comment:
applyEndPatternLast: 1
begin: '\{-(?!#)'
begin: '\{-'
captures:
'0': {name: punctuation.definition.comment.haskell}
end: '-\}'
Expand Down
5 changes: 5 additions & 0 deletions test/syntax-examples/test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -384,3 +384,8 @@ data instance DF 'False where
f (A,B) = 3
f ( A,B ) = 3
f ( A ,B ) = 3


-- Pragmas in comment blocks

{- {-# PRAGMA #-} -}

0 comments on commit d17e4e5

Please sign in to comment.