summaryrefslogtreecommitdiff
path: root/inc/parser/parser.php
Commit message (Collapse)AuthorAge
* more object type hints and removal of '&' operator before objectsChristopher Smith2015-05-15
|
* Changes for PHP 7 CompatibilityChristopher Smith2015-05-15
| | | | | | | - replace PHP4 style class constructor function names (based on class name) with php 5 __construct() Also remove some '&' reference operators used with objects And add some object type hints
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2015-01-10
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* just some more doc blocksAndreas Gohr2014-05-25
|
* reintroduce a tiny bit of duplicationAndreas Gohr2014-01-07
| | | | | | | | | | This reads some duplication in the from of haveing a Doku_Parser_Mode and Doku_Parser_Mode_Plugin class which are basically the same but only the latter extends DokuWiki_Plugin. This avoids the performance/RAM problems mentioned in my previous commit. An interface keeps both logically together. With PHP 5.4 further deduplication could be done via Traits.
* remove duplicate plugin code for syntax pluginsAndreas Gohr2014-01-07
| | | | | | | | | | This makes Doku_Parser_Mode inherit from DokuWiki_Plugin which allows for the removal of a bunch of duplicate code form DokuWiki_Syntax_Plugin. This makes the code easier to maintain and makes sure all DokuWiki plugins are actual instances of DokuWiki_Plugin. However this adds a bunch of functions to the "normal" parser modes that don't need them which could have performance/RAM implications.
* FS#1833 (b)Christopher Smith2013-12-01
| | | | | | | Prevent table entry syntax swallowing multiple preceeding blank lines (a) this shouldn't be necessary, blank lines are handled by paragraph processing (b) avoids issues with greedy table syntax competing with plugins
* Fix CodeSniffer whitespace violoationsMatt Perry2013-09-10
| | | | | Removed extraneous whitespace to eliminate errors reported by the Squiz.WhiteSpace.SuperfluousWhitespace sniff.
* Fix CodeSniffer violations for PHP filesMatt Perry2013-08-23
| | | | | | | Fix violations for Squiz.Commenting.DocCommentAlignment.SpaceBeforeTag Conflicts: inc/parser/xhtml.php
* Fix CodeSniffer violationsMatt Perry2013-08-22
| | | | Change indentation to ensure code confirms to CodeSniffer rules.
* FS#2770 - prevent <file> and <code> syntax regex matching token names which ↵Christopher Smith2013-07-30
| | | | start '<file' or '<code'
* Fix for the FS#1833 parser errorGuy Brand2013-07-30
|
* Replace = & by =& as the former isn't understood by IntelliJ IDEAMichael Hamann2012-07-28
|
* Fixed and extended PHPDoc comments and added additional @var commentsMichael Hamann2012-07-28
|
* Parser: Allow parser to fully recognize windows share links with a hyphen ↵lupo492012-03-07
| | | | | | character in it (Currently, the clickable link stops before a hyphen character)
* Support the empty link [[]]Adrian Lang2011-04-14
|
* Make the regex for internal links more restrictiveMichael Hamann2011-02-09
| | | | | This fixes a PCRE backtrack error that occurred on large pages like :users on dokuwiki.org.
* make IPv6 links in link syntax FS#2137Andreas Gohr2011-02-06
|
* URLs may contain brackets [] FS#2137Andreas Gohr2011-02-06
|
* Make baseonly work in allowedModesAndreas Gohr2010-12-07
| | | | | | | | | | | | | | | | This makes it possible to have modes that do accept headers (baseonly) in the parser. Related test cases are still running through but I'm not 100% sure I did not break something here. So it should be tested a bit more. This patch will allow plugins to wrap multiple sections, however it also makes it possible to easily break XHTML validity, because headers also open and close sections, so plugin authors need to be aware! In case you wonder: this patch is not about allowing formatting inside headers.
* Remove enc=utf-8 in VIM modeline as it is not allowed in VIM 7.3Michael Hamann2010-11-29
| | | | | | As of VIM 7.3 it is no longer possible to specify the encoding in the modeline. This gives an error message whenever such a file is opened, thus this commit removes the enc setting from the modeline.
* explaining what Doku_Parser_Mode_formatting does: it sets markupThorsten Staerk2010-10-17
|
* give a description for a functionThorsten Staerk2010-10-16
|
* FS#1949Christopher Smith2010-06-27
|
* removed deprecated PHP4 constructAndreas Gohr2010-01-15
| | | | | Assigning the return value of new by reference is deprecated, PHP5's new automatically assigns by reference
* 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