[project @ 1999-03-24 08:46:04 by sof]
authorsof <unknown>
Wed, 24 Mar 1999 08:46:04 +0000 (08:46 +0000)
committersof <unknown>
Wed, 24 Mar 1999 08:46:04 +0000 (08:46 +0000)
Pragmas, Haskell (98) report style.

ghc/compiler/parser/hslexer.flex

index 037bee4..c18335b 100644 (file)
@@ -323,14 +323,26 @@ NL                        [\n\r]
                              PUSH_STATE(UserPragma);
                              RETURN(SPECIALISE_UPRAGMA);
                            }
+<Code,GlaExt>"{-#"{WS}*"speciali"[sz]e {
+                             PUSH_STATE(UserPragma);
+                             RETURN(SPECIALISE_UPRAGMA);
+                           }
 <Code,GlaExt>"{-#"{WS}*"INLINE" {
                              PUSH_STATE(UserPragma);
                              RETURN(INLINE_UPRAGMA);
                            }
+<Code,GlaExt>"{-#"{WS}*"inline" {
+                             PUSH_STATE(UserPragma);
+                             RETURN(INLINE_UPRAGMA);
+                           }
 <Code,GlaExt>"{-#"{WS}*"NOINLINE" {
                              PUSH_STATE(UserPragma);
                              RETURN(NOINLINE_UPRAGMA);
                            }
+<Code,GlaExt>"{-#"{WS}*"notInline" {
+                             PUSH_STATE(UserPragma);
+                             RETURN(NOINLINE_UPRAGMA);
+                           }
 <Code,GlaExt>"{-#"{WS}*"MAGIC_UNFOLDING" {
                              PUSH_STATE(UserPragma);
                              RETURN(MAGIC_UNFOLDING_UPRAGMA);
@@ -353,7 +365,7 @@ NL                          [\n\r]
                               RETURN(SOURCE_UPRAGMA); 
                            }
 
-<Code,GlaExt>"{-#"{WS}*[A-Z_]+ {
+<Code,GlaExt>"{-#"{WS}*[a-zA-Z_]+ {
                              fprintf(stderr, "%s:%d: Warning: Unrecognised pragma '",
                                input_filename, hsplineno);
                              format_string(stderr, (unsigned char *) yytext, yyleng);