| Commit message (Collapse) | Author | Age |
|
|
|
| |
darcs-hash:20091103161002-9a5f4-2114938a7e62a924b9fe424b63584a4747286563.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Ignore-this: 5621e4ff0eb5b759a2176a417bf6779e
includes updated unit tests
darcs-hash:20091004101720-f07c6-5700a40065a496b38ba83c73d4ebcb86388aaabc.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20090419160806-f07c6-a2d1bd681e2dd369422bd3839d2837833288cee5.gz
|
|
|
|
| |
darcs-hash:20090215111954-f07c6-c8b64b4175a742c26d85f871bc27bed900521cb6.gz
|
|
|
|
| |
darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
|
|
|
|
| |
darcs-hash:20081012155022-2b4f5-177571b9b176bb822015623b62b4d35b98a93d7b.gz
|
|
|
|
| |
darcs-hash:20081012115011-7ad00-7aded95b825d6faee7c39b0c0ba92cd84f0da298.gz
|
|
|
|
| |
darcs-hash:20081011184717-7ad00-0f910f4d061e00ccfdf722a3f971656da1b7979b.gz
|
|
|
|
|
|
| |
Hopefully doesn't break anything
darcs-hash:20081011164847-7ad00-9c0873e505e1c3b9dad2477d3ccfaf9c75d95839.gz
|
|
|
|
| |
darcs-hash:20080118234120-7ad00-01defe99eda2568ef91acc679a35b25e8bdc40ed.gz
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
capital letters (<HTML>+<PHP>)
darcs-hash:20070517233213-d5083-9dbccf77383575912ad75533ca690302557e0f79.gz
|
|
|
|
|
|
|
| |
Now all test cases succeed, but there is probably still trouble with certain
conditions.
darcs-hash:20070626181735-7ad00-dd6e51e37cda7ca63077a2779afe1753ad975f84.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20070613173817-7ad00-99fdc0bf868bff124ef7c5ec01ef3f58c51b36eb.gz
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20070206191629-64c10-6607d7e7e724315b728e8c46a0b2ff6e7e8ab2f6.gz
|
|
|
|
| |
darcs-hash:20070125143421-9b6ab-93ce6bfd804924af4651da9424738494f11fe5f2.gz
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20060809155417-9b6ab-c88a818425487cac0cd1f8d7cd266ac088bba16c.gz
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20060411182721-7ad00-0f34803c6228eb2918f0049284e6290a47ce51bd.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
Parser don't longer breaks if no smileys, acronyms or entities are configured
darcs-hash:20060317182631-7ad00-090248bae8cdeaa19127251e46dfaef80ef49f58.gz
|
|
|
|
|
|
| |
Add parser detection for LDAP URI scheme as specified in RFC 2255
darcs-hash:20060311130311-c47a2-fd0b1e2a6ba50e4c76732101966dcb27c42a178f.gz
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20051103162630-6e07b-21520008f556114f8273307e7d6d33795488b1d2.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20050911210801-7ad00-f571ad2eeb07ce2e62ae55775b49c0e9be523166.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20050713180456-9977f-77e5f03775df3deae67361cca89fdf454118f093.gz
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20050701113825-9977f-75c85330b6001db24125aabc8bb7f344f0d1ac33.gz
|
|
|
|
| |
darcs-hash:20050612183557-9977f-fe071d83503f6e324255200bea3e7b8d76db7e31.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20050520150702-9977f-a2ef5264ff38a5225521c83eeaf85759c92a37bb.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20050513152910-9977f-e9dfee8d6958db3e487edbba3b441da0d447c158.gz
|
|
|
|
| |
darcs-hash:20050504192203-9977f-004cc04b0753fc5d36d4515519c54039e73e77de.gz
|
|
|
|
| |
darcs-hash:20050501193908-9977f-e65b9b9bd123efaccc167f2e1ad9a1d4f51ba681.gz
|
|
|
|
| |
darcs-hash:20050501182348-9977f-a0653d07936820a7e1c251537f4b93556d88d4c8.gz
|
|
|
|
| |
darcs-hash:20050429120548-9977f-048855b3101e9f104e9fb826ad35042fa8d4c176.gz
|
|
|
|
| |
darcs-hash:20050429100017-9977f-606a82e63f7883de940d816c6609f8823757e484.gz
|
|
|
|
| |
darcs-hash:20050428201306-9977f-0d1a0f63f09ea56fb6fad22dc9dda7b838f51b5b.gz
|
|
|
|
| |
darcs-hash:20050424132922-9977f-5e9acbeae431ca1c605169829e580bf094a09ef9.gz
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20050418184011-9977f-acd3a6583e08ce3732af5ffc4fdc3027e284173e.gz
|
|
|
|
| |
darcs-hash:20050415204735-9977f-613d9b007452d538dcb8fce4ade5cbec389c4415.gz
|