Ticket #127 (new defect)

Opened 20 months ago

Last modified 7 months ago

QLexer does not support embedded patterns

Reported by: alex94040 Owned by: somebody
Priority: minor Milestone: Far Far Away
Component: Other Version:
Keywords: Cc:

Description

The QLexer class does not support embedded patterns - most probably because QLexer requires specifying an entry state for each of the patterns - like this:

$objLexer->addEntryPattern("<code>","start_code",QLexer::DefaultMode,"code");
$objLexer->addExitPattern("</code>","end_code","code",QLexer::DefaultMode);

Note that the <code> tag would only be recognized in the QLexer:DefaultMode context, not when the <code> tag is inside the <i> tag, for example.

Mike Hostetler implemented the class, he'd be a good person to ask to look into this

Change History

Changed 7 months ago by alex94040

  • milestone changed from 2.0 to Far Far Away
Note: See TracTickets for help on using tickets.