Ticket #45 (closed bug report: fixed)

Opened 6 years ago

Last modified 6 years ago

Unrecognized pragmas in declaration position make the layout wacky

Reported by: nibro Owned by: nibro
Priority: major Milestone: Full code support
Component: parser Version: 0.5.6
Keywords: Cc:

Description

This fails to parse:

{-# OPTIONS #-}
{-# LINE 49 "src/Language/C/Parser/Lexer.x" #-}
module Fail where

The reason is that the lexer doesn't emit a virtual semi-colon after the unrecognized LINE pragma closes. I currently don't know how to fix this.

Change History

Changed 6 years ago by nibro

  • status changed from new to closed
  • resolution set to fixed

All unrecognised pragmas are now handled by the comment lexing code (as opposed to discarded as comments by the pragma lexing code). This means layout won't be a problem. The above example now works, case closed.

Note: See TracTickets for help on using tickets.