Skip to content
Snippets Groups Projects
Commit 559e4150 authored by Matthew Pickering's avatar Matthew Pickering
Browse files

Merge branch 'wip/opaque_pragma' into 'ghc-head'

Add Haddock support for the OPAQUE pragma

See merge request ghc/haddock!2
parents d2779a3e 746df785
No related branches found
No related tags found
No related merge requests found
...@@ -238,6 +238,7 @@ classify tok = ...@@ -238,6 +238,7 @@ classify tok =
ITrequires -> TkKeyword ITrequires -> TkKeyword
ITinline_prag {} -> TkPragma ITinline_prag {} -> TkPragma
ITopaque_prag {} -> TkPragma
ITspec_prag {} -> TkPragma ITspec_prag {} -> TkPragma
ITspec_inline_prag {} -> TkPragma ITspec_inline_prag {} -> TkPragma
ITsource_prag {} -> TkPragma ITsource_prag {} -> TkPragma
...@@ -376,6 +377,7 @@ inPragma True _ = True ...@@ -376,6 +377,7 @@ inPragma True _ = True
inPragma False tok = inPragma False tok =
case tok of case tok of
ITinline_prag {} -> True ITinline_prag {} -> True
ITopaque_prag {} -> True
ITspec_prag {} -> True ITspec_prag {} -> True
ITspec_inline_prag {} -> True ITspec_inline_prag {} -> True
ITsource_prag {} -> True ITsource_prag {} -> True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment