Skip to content
Snippets Groups Projects
Commit 3f049485 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1998-02-11 14:15:07 by simonm]

Back-out fix for layout processing in pragmas.  It broke things.
parent c3446000
No related merge requests found
...@@ -315,34 +315,28 @@ NL [\n\r] ...@@ -315,34 +315,28 @@ NL [\n\r]
<Code,GlaExt>"{-#"{WS}*"INTERFACE" { <Code,GlaExt>"{-#"{WS}*"INTERFACE" {
PUSH_STATE(UserPragma); PUSH_STATE(UserPragma);
forgetindent = TRUE;
RETURN(INTERFACE_UPRAGMA); RETURN(INTERFACE_UPRAGMA);
} }
<Code,GlaExt>"{-#"{WS}*"SPECIALI"[SZ]E { <Code,GlaExt>"{-#"{WS}*"SPECIALI"[SZ]E {
PUSH_STATE(UserPragma); PUSH_STATE(UserPragma);
forgetindent = TRUE;
RETURN(SPECIALISE_UPRAGMA); RETURN(SPECIALISE_UPRAGMA);
} }
<Code,GlaExt>"{-#"{WS}*"INLINE" { <Code,GlaExt>"{-#"{WS}*"INLINE" {
PUSH_STATE(UserPragma); PUSH_STATE(UserPragma);
forgetindent = TRUE;
RETURN(INLINE_UPRAGMA); RETURN(INLINE_UPRAGMA);
} }
<Code,GlaExt>"{-#"{WS}*"MAGIC_UNFOLDING" { <Code,GlaExt>"{-#"{WS}*"MAGIC_UNFOLDING" {
PUSH_STATE(UserPragma); PUSH_STATE(UserPragma);
forgetindent = TRUE;
RETURN(MAGIC_UNFOLDING_UPRAGMA); RETURN(MAGIC_UNFOLDING_UPRAGMA);
} }
<Code,GlaExt>"{-#"{WS}*"GENERATE_SPECS" { <Code,GlaExt>"{-#"{WS}*"GENERATE_SPECS" {
/* these are handled by hscpp */ /* these are handled by hscpp */
nested_comments =1; nested_comments =1;
forgetindent = TRUE;
PUSH_STATE(Comment); PUSH_STATE(Comment);
} }
<Code,GlaExt>"{-#"{WS}*"OPTIONS" { <Code,GlaExt>"{-#"{WS}*"OPTIONS" {
/* these are for the driver! */ /* these are for the driver! */
nested_comments =1; nested_comments =1;
forgetindent = TRUE;
PUSH_STATE(Comment); PUSH_STATE(Comment);
} }
<Code,GlaExt>"{-#"{WS}*"SOURCE"{WS}*"#"?"-}" { <Code,GlaExt>"{-#"{WS}*"SOURCE"{WS}*"#"?"-}" {
...@@ -361,15 +355,7 @@ NL [\n\r] ...@@ -361,15 +355,7 @@ NL [\n\r]
nested_comments = 1; nested_comments = 1;
PUSH_STATE(Comment); PUSH_STATE(Comment);
} }
<UserPragma>"#-}" { POP_STATE; <UserPragma>"#-}" { POP_STATE; RETURN(END_UPRAGMA); }
forgetindent=FALSE;
/* don't want any layout processing here,
* so just use 'return' instead of 'RETURN',
* remembering to set hssttok.
*/
hssttok = -1;
return(END_UPRAGMA);
}
%{ %{
/* /*
......
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