Skip to content

Commit

Permalink
bugfixes and failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
friedbrice committed Sep 29, 2018
1 parent a2cdeb2 commit a3e99a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Haskell.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ contexts:
scope: constant.numeric.haskell
- match: '\b([0-9]+|0([xX][0-9a-fA-F]+|[oO][0-7]+))\b'
scope: constant.numeric.haskell
- match: '^\s*(#)\s*\w+'
- match: '^(#)\s*\w+'
comment: In addition to Haskell's "native" syntax, GHC permits the C preprocessor to be run on a source file.
scope: meta.preprocessor.c
captures:
Expand Down Expand Up @@ -227,13 +227,14 @@ contexts:
module_exports:
- match: '\('
push:
- meta_scope: meta.declaration.exports.haskell
- include: comments
- match: '\b({{type_id}})(\(.[^\)]*\)|)'
captures:
1: storage.type.haskell
- match: '{{op_id}}'
scope: keyword.operator.haskell
- meta_scope: meta.declaration.exports.haskell
- match: '\(({{op_id}})\)'
captures:
1: keyword.operator.haskell
- match: '\)'
pop: true
module_name:
Expand Down
2 changes: 1 addition & 1 deletion syntax_test_haskell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ module Main (
Fooable(..),
DeriveMoreThanOne,
main,
addEmUp,
(-->),
(+:),
addEmUp,
) where

import Prelude hiding (Traversable(traverse, sequenceA))
Expand Down

0 comments on commit a3e99a0

Please sign in to comment.