diff --git a/Haskell/Haskell.sublime-syntax b/Haskell/Haskell.sublime-syntax index e45d67341d..ba594b09e1 100644 --- a/Haskell/Haskell.sublime-syntax +++ b/Haskell/Haskell.sublime-syntax @@ -235,7 +235,7 @@ contexts: - meta_scope: meta.preprocessor.haskell - match: '#-\}' pop: true - - match: \b(LANGUAGE|OPTIONS_GHC|INCLUDE|WARNING|DEPRECATED|MINIMAL|UNPACK|NOUNPACK|SOURCE|OVERLAPPING|OVERLAPPABLE|OVERLAPS|INCOHERENT|INLINE|NOINLINE|INLINABLE|CONLIKE|LINE|RULES|SPECIALIZE|SPECIALISE)\b + - match: \b(LANGUAGE|OPTIONS_GHC|OPTIONS_HADDOCK|INCLUDE|WARNING|DEPRECATED|MINIMAL|UNPACK|NOUNPACK|SOURCE|OVERLAPPING|OVERLAPPABLE|OVERLAPS|INCOHERENT|INLINE|NOINLINE|INLINABLE|CONLIKE|LINE|RULES|SPECIALIZE|SPECIALISE)\b # https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#pragmas scope: keyword.other.preprocessor.haskell type_signature: diff --git a/Haskell/syntax_test_haskell.hs b/Haskell/syntax_test_haskell.hs index 8758f9a3b9..ca0ec35b30 100644 --- a/Haskell/syntax_test_haskell.hs +++ b/Haskell/syntax_test_haskell.hs @@ -186,3 +186,8 @@ 0XdeafBEEF42 -- ^^^^^^^^^^^^ constant.numeric.integer.hexadecimal -- ^^ punctuation.definition.numeric.base + + {-# OPTIONS_HADDOCK not-home #-} +-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.preprocessor.haskell +-- ^ - meta.preprocessor.haskell +-- ^^^^^^^^^^^^^^^ keyword.other.preprocessor.haskell