X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fparser%2FLexer.x;h=fdbaeef3feaa773673b9bdec87c2e9d6220df075;hp=aed9cfb9655d68ce3a42cc291ee97af6b3693566;hb=ac9c1e5de9629103a125e0515dcee2466ff898a7;hpb=3734da50be1d8e1ddad5b5fe5c46fcfb3192d1da diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x index aed9cfb..fdbaeef 100644 --- a/compiler/parser/Lexer.x +++ b/compiler/parser/Lexer.x @@ -377,6 +377,7 @@ data Token | ITdotnet | ITmdo | ITiso + | ITfamily -- Pragmas | ITinline_prag Bool -- True <=> INLINE, False <=> NOINLINE @@ -501,6 +502,7 @@ isSpecial ITccallconv = True isSpecial ITstdcallconv = True isSpecial ITmdo = True isSpecial ITiso = True +isSpecial ITfamily = True isSpecial _ = False -- the bitmap provided as the third component indicates whether the @@ -542,6 +544,7 @@ reservedWordsFM = listToUFM $ ( "forall", ITforall, bit tvBit), ( "mdo", ITmdo, bit glaExtsBit), ( "iso", ITiso, bit glaExtsBit), + ( "family", ITfamily, bit glaExtsBit), ( "foreign", ITforeign, bit ffiBit), ( "export", ITexport, bit ffiBit),