summaryrefslogtreecommitdiff
path: root/inc/parser/parser.php
Commit message (Collapse)AuthorAge
* rowspan with ::: implemented in parser/handlerhakan.sandell2009-11-03
| | | | darcs-hash:20091103161002-9a5f4-2114938a7e62a924b9fe424b63584a4747286563.gz
* FS#1652, #FS1699Chris Smith2009-10-04
| | | | | | | | | | | | | Ignore-this: b30b4a3061ad7a485012f6fd55cdfc78 This patch fixes problems with blank lines which contain whitespace before EOL. It also fixes an issue with preformatted syntax mode not triggering following p_open instructions under some circumstances. Note: The fix can result in swallowing of non-eol white space that precedes the EOL. This can happen when there is no non-whitespace CDATA between the end of the previous syntax mode and the EOL character. darcs-hash:20091004190359-f07c6-36bb418cb9be8bbaff741b4cbe135c442d0bde81.gz
* #FS1749, alter linebreak pattern to swallow trailing whitespace (except newline)Chris Smith2009-10-04
| | | | | | | Ignore-this: 5621e4ff0eb5b759a2176a417bf6779e includes updated unit tests darcs-hash:20091004101720-f07c6-5700a40065a496b38ba83c73d4ebcb86388aaabc.gz
* enhanced <code> and <file> syntaxAndreas Gohr2009-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignore-this: 80398f84222bec1fce56eee8f107d37a This patch enhances the code and file syntax with several new features. 1. code and file are now essentially the same and just differ in the class name. This means you now can use the file syntax with syntax highlighting as well. This also solves problems where the code to highlight already contains a <code> tag (FS#1493) 2. a filename can be given as label for the code or file block. It is specified as second parameter after the language: <code html myfile.html>...</code> If no highlighting is wanted, but a filename shall be given, you can use a dash as language: <code - somefile.foo>...</code> 3. when a filename was given (as shown above), the label links to a download of the code given in the code/file block. This is made possible by a new renderer in inc/parser/code.php. The basename of given filename is suggested as filename when downloading. darcs-hash:20090726175158-7ad00-969641a06ae1393a6d99207c3cd938fb67f23a71.gz
* FS#1648 - sort acronyms into descending order by string lengthChris Smith2009-04-19
| | | | darcs-hash:20090419160806-f07c6-a2d1bd681e2dd369422bd3839d2837833288cee5.gz
* FS#1609, adjust multiplyentity pattern to not match strings that start "0x"Chris Smith2009-02-15
| | | | darcs-hash:20090215111954-f07c6-c8b64b4175a742c26d85f871bc27bed900521cb6.gz
* removed some illogical path setupsAndreas Gohr2008-12-13
| | | | darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
* Make recognized URL schemes customizable via conf/scheme.conf (FS#797)Gina Haeussge2008-10-12
| | | | darcs-hash:20081012155022-2b4f5-177571b9b176bb822015623b62b4d35b98a93d7b.gz
* fix smileys at the start or end of a lineAndreas Gohr2008-10-12
| | | | darcs-hash:20081012115011-7ad00-7aded95b825d6faee7c39b0c0ba92cd84f0da298.gz
* recognize smileys with proper boundaries only FS#1489Andreas Gohr2008-10-11
| | | | darcs-hash:20081011184717-7ad00-0f910f4d061e00ccfdf722a3f971656da1b7979b.gz
* Another fix for emphasis parsing FS#1468Andreas Gohr2008-10-11
| | | | | | Hopefully doesn't break anything darcs-hash:20081011164847-7ad00-9c0873e505e1c3b9dad2477d3ccfaf9c75d95839.gz
* prevent error on buggy syntax plugin FS#1218Andreas Gohr2008-01-19
| | | | darcs-hash:20080118234120-7ad00-01defe99eda2568ef91acc679a35b25e8bdc40ed.gz
* don't use realpath() anymore (FS#1261 and others)Andreas Gohr2007-09-30
| | | | | | | | | | | The use of realpath() to clean up relative file names caused some trouble in certain setups relying on symlinks or having restricitve file structure setups. This patch replaces all realpath() calls with a PHP only replacement which should solve those problems. darcs-hash:20070930184250-7ad00-512ff04c95f57fc9eaf104f80372237a3c94286f.gz
* added block mode for embedded html+php (FS#541) -- same syntax but in ↵Anika Henke2007-05-18
| | | | | | capital letters (<HTML>+<PHP>) darcs-hash:20070517233213-d5083-9dbccf77383575912ad75533ca690302557e0f79.gz
* some more tweaks to the smart quote parserAndreas Gohr2007-06-26
| | | | | | | Now all test cases succeed, but there is probably still trouble with certain conditions. darcs-hash:20070626181735-7ad00-dd6e51e37cda7ca63077a2779afe1753ad975f84.gz
* make typography option three staged FS#1142Andreas Gohr2007-06-13
| | | | | | | | | | | | | | | | Because correct smart quote parsing with regular expressions is nearly impossible, especially when dealing with quote usage in languages different from english, the typography configuration option was changed. 0 means to completely disable any typography replacements 1 will only handle the multiply entitity and double quotes, this should nearly always work without problems and is the new default 2 will add singlequote parsing. This might break because single quotes and apostrophes are not always easily distinguishable. Especially in languages where single quote openings and apostrophes are different characters you might experience problems. For english it should nearly always work. darcs-hash:20070613184015-7ad00-0cebc3f807f54467d54458075c5c9f651355c5ba.gz
* some small improvement for smart quote parsing FS#1142Andreas Gohr2007-06-13
| | | | darcs-hash:20070613173817-7ad00-99fdc0bf868bff124ef7c5ec01ef3f58c51b36eb.gz
* distinction between apostrophes and single quotes FS#1127Andreas Gohr2007-05-13
| | | | | | | | | | This patch adds another parser mode for apostrophes. Now single quote closing markers are handled different from apostrophes for better local typograpy support. Needs testing and languages updates. darcs-hash:20070513084024-7ad00-d20fe093a093c265d357b178e199c1596b484996.gz
* do preconnects only once #1067Stephane Chazelas2007-02-06
| | | | darcs-hash:20070206191629-64c10-6607d7e7e724315b728e8c46a0b2ff6e7e8ab2f6.gz
* improve and centralise email regexp, fixes FS#1049chris2007-01-25
| | | | darcs-hash:20070125143421-9b6ab-93ce6bfd804924af4651da9424738494f11fe5f2.gz
* tf_rename_lower.patchhenning.noren2007-01-03
| | | | | | | Name the TRUE/FALSE-constants consistently as lowercase everywhere. This might also be an tiny optimization in some environments. darcs-hash:20070103205700-d2a3e-e7ec0aedb938d563f583116a2d5b17f3a3fea36c.gz
* fix for footnote nestingchris2006-08-09
| | | | darcs-hash:20060809155417-9b6ab-c88a818425487cac0cd1f8d7cd266ac088bba16c.gz
* tidy format patternschris2006-06-01
| | | | | | | | The bug preventing use of '<' & '>' in look ahead patterns was fixed some time ago. This patch replaces the '\x3C' & '\x3E' in those syntax pattern where they were still in use. darcs-hash:20060601101231-9b6ab-4ad0d61578710543063a5de053c3d0f2065a7ddf.gz
* releaxed header syntaxAndreas Gohr2006-04-11
| | | | darcs-hash:20060411182721-7ad00-0f34803c6228eb2918f0049284e6290a47ce51bd.gz
* Parser Update:chris2006-04-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - revisions to header class and section handling header pattern simplified header class now writes section open and close instructions section call writer removed check for and update meta['first_header'] if required (see below) - meta instruction added written by _finalize to front of instruction stack holds first header information plugins can now write first header information, or other page meta information to this data structure. - get_first_heading updated to make use of meta['first_header'] - plugin instruction structure changed to include lexer state in the data portion of the instruction. OLD INSTRUCTION: array('plugin', array(<plugin name>,<plugin_data>,$pos), $pos) NEW INSTRUCTION: array('plugin', array(<plugin name>,<plugin_data>,$state), $pos) - block handler/call writer update to better handle plugin PTypes 'block' & 'stack'. Lexer states are mapped as follows: DOKU_LEXER_ENTER, DOKU_LEXER_SPECIAL : block_open, stack_open DOKU_LEXER_EXIT, DOKU_LEXER_SPECIAL : block_close, stack_close DOKU_LEXER_MATCHED, DOKU_LEXER_UNMATCHED : plugin must handle <p> Plugin writers can now use these PTypes as intended ! darcs-hash:20060409214958-9b6ab-cd2cef97a6a2521e3a02175075b8ff4648035f69.gz
* make sure the parser works if acronym file is missing #716Andreas Gohr2006-03-17
| | | | | | Parser don't longer breaks if no smileys, acronyms or entities are configured darcs-hash:20060317182631-7ad00-090248bae8cdeaa19127251e46dfaef80ef49f58.gz
* LDAP URI support for parserGuy Brand gb@isis.u-strasbg.fr2006-03-11
| | | | | | Add parser detection for LDAP URI scheme as specified in RFC 2255 darcs-hash:20060311130311-c47a2-fd0b1e2a6ba50e4c76732101966dcb27c42a178f.gz
* file cleanupsAndreas Gohr2006-02-17
| | | | | | | | | | This patch cleans up the source code to satisfy the coding guidelines (see http://wiki.splitbrain.org/wiki:development#coding_style) It converts files to UNIX lineendings and removes tabs and trailing whitespace. Not all files were cleaned yet. darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz
* Table Syntax fixes #280 #591Andreas Gohr2005-11-03
| | | | darcs-hash:20051103162630-6e07b-21520008f556114f8273307e7d6d33795488b1d2.gz
* fix for acronyms, but still buggyAndreas Gohr2005-09-14
| | | | | | | | | | | | | | | | The last change introduced a bug where acronyms inside words where marked. This fixes it partly. However there is still a bug - the following line gets both occurences of 'spec' marked as acronym and I don't know why: This is the specification also called spec. Only the last occurence of spec should be marked but both are. If the latter is missing the first one isn't marked as well. Any help appreciated. darcs-hash:20050914144810-7ad00-9e486e207cb856524a044a1d6d3ed07dbb534864.gz
* fixed UTF-8 handling in Acronyms #478Andreas Gohr2005-09-11
| | | | darcs-hash:20050911210801-7ad00-f571ad2eeb07ce2e62ae55775b49c0e9be523166.gz
* Alternative fix for #384Harry Fuecks2005-08-06
| | | | | | | | | | | | | | | | | | | | The bug with emphasis syntax clashing with URLs did still occur with protocols different from http or ftp. This patch might be a better solution. I had to use [^\x00]* instead of .* - for some reason the later won't work properly in this case. It means people won't be able to use ASCII NUL characters inside an emphasis. The other thing that won't work is this; Won't work: //semi colon here>:// People will need to make sure there is at least a space - this will work; Works //semi colon here>: // darcs-hash:20050806151204-56ad0-532806af57801f5fa4536add32175089e625a0d4.gz
* fix for multiply entity #457andi2005-07-13
| | | | darcs-hash:20050713180456-9977f-77e5f03775df3deae67361cca89fdf454118f093.gz
* hack to fix #384andi2005-07-01
| | | | | | | | This isn't a real fix for FS#384 but cures the symptoms at least. The emphasis regexp now doesn't take the double slash of auto-URLs as closing match anymore. darcs-hash:20050701134040-9977f-5130eaea0ebcb43918e48e823fcfbbf628d88981.gz
* small fix for typographic quotes #415andi2005-07-01
| | | | darcs-hash:20050701113825-9977f-75c85330b6001db24125aabc8bb7f344f0d1ac33.gz
* lexer support for subpatterns, fixed windowsshare links #368andi2005-06-12
| | | | darcs-hash:20050612183557-9977f-fe071d83503f6e324255200bea3e7b8d76db7e31.gz
* sorting support for syntax plugins, info plugin now actually does somethingandi2005-05-21
| | | | | | | | | | | | | | | Syntax plugins now need to implement getSort() which should return a number. This number is used to add all syntax modes in the correct order. To see a list in which order current modes are loaded you can use the info plugin like this: ~~INFO:syntaxmodes~~ lists all known modes (includes existing plugins) with their sorting score ~~INFO:syntaxtypes~~ lists all syntax types and their registered modes (useful for implementing the getType() function. darcs-hash:20050521210430-9977f-2baaf6043afc6ea3fed41cdca97564218fb519c2.gz
* small fixes for linkparsing #337 #339andi2005-05-20
| | | | darcs-hash:20050520150702-9977f-a2ef5264ff38a5225521c83eeaf85759c92a37bb.gz
* first attempt of syntax pluginsandi2005-05-19
| | | | | | | | | | | | | | | | The first version of the new plugin system. Syntax plugins only yet. A very simple example plugin called info (doing nothig useful yet) is included. Missing Features - Doku_Block_Handler needs work (doesn't honur plugins yet) - there is no way to specify the order of plugins and other modes yet - useful output from the info plugin - bug testing and fixing - code cleanup - documentation darcs-hash:20050519201009-9977f-f793dbfc6a39d8a9643b610927d93cd3288bdd6b.gz
* small fix on Windows Share parsingandi2005-05-13
| | | | darcs-hash:20050513152910-9977f-e9dfee8d6958db3e487edbba3b441da0d447c158.gz
* local links added #297andi2005-05-04
| | | | darcs-hash:20050504192203-9977f-004cc04b0753fc5d36d4515519c54039e73e77de.gz
* ~~NOCACHE~~ addedandi2005-05-01
| | | | darcs-hash:20050501193908-9977f-e65b9b9bd123efaccc167f2e1ad9a1d4f51ba681.gz
* quoting now uses semantically correct blockquoteandi2005-05-01
| | | | darcs-hash:20050501182348-9977f-a0653d07936820a7e1c251537f4b93556d88d4c8.gz
* allow blockmodes in listsandi2005-04-29
| | | | darcs-hash:20050429120548-9977f-048855b3101e9f104e9fb826ad35042fa8d4c176.gz
* fix for RSS feed syntax #293andi2005-04-29
| | | | darcs-hash:20050429100017-9977f-606a82e63f7883de940d816c6609f8823757e484.gz
* fixed some lineendeating #268 #274 #276andi2005-04-28
| | | | darcs-hash:20050428201306-9977f-0d1a0f63f09ea56fb6fad22dc9dda7b838f51b5b.gz
* finally valid XHTML againandi2005-04-24
| | | | darcs-hash:20050424132922-9977f-5e9acbeae431ca1c605169829e580bf094a09ef9.gz
* removed magical __andi2005-04-22
| | | | | | | | The PHP manual states "PHP reserves all function names starting with __ as magical. It is recommended that you do not use function names with __ in PHP unless you want some documented magic functionality." (http://www.php.net/manual/en/language.oop.php) I renamed all functions starting with __ to _ darcs-hash:20050422101253-9977f-79b7cb3ac3b5b8287073ab0bc7d9e78f115b4a58.gz
* fixed email links #259andi2005-04-18
| | | | darcs-hash:20050418184011-9977f-acd3a6583e08ce3732af5ffc4fdc3027e284173e.gz
* new parser: more hacking, RSS readdedandi2005-04-15
| | | | darcs-hash:20050415204735-9977f-613d9b007452d538dcb8fce4ade5cbec389c4415.gz