in reply to Re: Comment a block that match a keyword
in thread Comment a block that match a keyword
Try it with this slight variation of data:
... (CELL ... (TIMINGCHECK .... .... ) ) (CELL (CELLTYPE "SEDFQD1") (INSTANCE uTrigger/TrcInclCtrlReg_reg[13]) (DELAY (ABSOLUTE (IOPATH CP Q (0.10:0.15:0.25)(0.09:0.15:0.24)) ) ) (TIMINGCHECK (OTHERTEST (SETUP (posedge SI) (posedge CP) (0.14:0.23:0.41)) (SETUP (negedge SI) (posedge CP) (0.09:0.16:0.30)) ....(random lines) (HOLD (negedge SI) (posedge CP) (0.00:0.00:0.00)) (HOLD (negedge D) (posedge CP) (0.00:0.00:0.00)) ) ) )
Your code is relying on th happy fortuity of the sample data, that the close of the block is a single ')' on a line by itself. Mine actually counts the parens to determine when the block is closed.
Its a hack, but a useful one.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Comment a block that match a keyword
by NetWallah (Canon) on Aug 16, 2007 at 18:38 UTC | |
by BrowserUk (Patriarch) on Aug 16, 2007 at 18:43 UTC |