summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/wordparser/parser.l
Commit message (Collapse)AuthorAgeFilesLines
* Text parser rewritten:Teodor Sigaev2005-11-211-346/+0
| | | | | | | | | | | - supports multibyte encodings - more strict rules for lexemes - flex isn't used Add: - tsquery plainto_tsquery(text) Function makes tsquery from plain text. - &&, ||, !! operation for tsquery for combining tsquery from it's parts: 'foo & bar' || 'asd' => 'foo & bar | asd'
* Suppress warnings on platforms where fprintf is a macro (eg, recentTom Lane2005-10-151-0/+1
| | | | | Fedora). This was already done by somebody for the core flex files, but these contrib files seem to have been missed.
* Fix some more 'old-style parameter declaration' warnings.Tom Lane2004-10-251-7/+17
|
* 1 Eliminate duplicate field HLWORD->skipTeodor Sigaev2004-06-281-21/+59
| | | | | | 2 Rework support for html tags in parser 3 add HighlightAll to headline function for generating highlighted whole text with saved html tags
* Add %option nodefault to all our flex lexers. Fix a couple of rule gapsTom Lane2004-02-241-0/+1
| | | | | | exposed thereby. AFAICT these would not lead to any worse problems than junk emitted on the backend's stdout, but we should have the option to catch possible worse errors in future.
* One more fix confusionTeodor Sigaev2003-12-051-1/+1
|
* Avoid confusion start_parse_str function with tsearch V1Teodor Sigaev2003-12-051-2/+3
|
* Persuade tsearch/tsearch2 to work (or at least pass their regressionTom Lane2003-09-141-13/+0
| | | | | | | | tests) when using flex 2.5.31. The fix is to *not* try to use palloc and pfree for allocations within the lexer; when you do that, the yy_buffer_stack gets freed at inopportune times. The code is already set up to do manual deallocation, so I see no particular advantage to using palloc anyway.
* Eliminate function start_parse_fh and macro YY_INPUTTeodor Sigaev2003-08-151-38/+0
|
* tsearch2 moduleTeodor Sigaev2003-07-211-0/+346