Skip to content

Commit

Permalink
module and pattern keyword in export lists
Browse files Browse the repository at this point in the history
Closes #18
  • Loading branch information
JustusAdam committed Apr 26, 2020
1 parent 81e6cd3 commit c160230
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
([#44](https://github.com/JustusAdam/language-haskell/issues/44))
- Support for visible type applications ([#73](https://github.com/JustusAdam/language-haskell/issues/73))
- Support for nested block comments by [@reactormonk](https://github.com/reactormonk)
- `module` and `pattern` keyword in export lists
([#18](https://github.com/JustusAdam/language-haskell/issues/18))
- As a substantial internal change the grammar migratd to the YAML format, to make it easier to
maintain and develop with.
- Refined many of the tm scopes with new information available from the parser
Expand Down
6 changes: 6 additions & 0 deletions syntaxes/haskell.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,12 @@ repository:
'0': {name: punctuation.paren.haskell}
name: meta.declaration.exports.haskell
patterns:
- match: '\b(module)\b(?!'')'
captures:
'1': {name: keyword.other.module.haskell}
- match: '\b(pattern)\b(?!'')'
captures:
'1': {name: keyword.other.haskell}
- match: >-
\b[\p{Ll}_][\p{Ll}_\p{Lu}\p{Lt}\p{Nd}']*
name: entity.name.function.haskell
Expand Down
3 changes: 3 additions & 0 deletions test/syntax-examples/test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE RecursiveDo #-}

-- Module keyword in export list

module Main
(module M
, pattern Q
, M
) where

Expand Down

0 comments on commit c160230

Please sign in to comment.