Syntax structures including ":" and color syntax doesn't work within a definition term (parser bug)
- Status
- Open
- Subject
- Syntax structures including ":" and color syntax doesn't work within a definition term (parser bug)
- Version
- 2.x
3.x - Category
- Error
- Feature
- Wiki Syntax (text area, parser, external wiki, etc)
- Submitted by
- lbmaian
- Lastmod by
- lbmaian
- Rating
- Description
Syntax that should work inside a description term (the x in ";x:y") don't. This includes anything in a ':' in it even if it's nested within another syntax structure like a link or table. In a link, it's especially bad, since you can't use ~np~ to fix it, e.g. you can't fix ((a:b)). Also, ~~color:x~~ doesn't work.
!!!;a:text ;a:text works %%%%%%%%%%%% !!!;~~red:a~~:text ;~~red:a~~:text looks like ;a:text %%%%%%%%%%%% !!!;((a)):text ;((a)):text works %%%%%%%%%%%% !!!;((a:b)):text ;((a:b)):text looks like ;a:((a:b|b)):text %%%%%%%%%%%% !!!;((a|b:c)):text ;((a|b:c)):text looks like ;b:((a|c)):text %%%%%%%%%%%% !!!;((a|b:c)):text ;((a|b:c)):text works %%%%%%%%%%%% !!!;__a__:text ;__a__:text works %%%%%%%%%%%% !!!;||a||:text ;||a||:text works %%%%%%%%%%%% !!!;||a:b||:text ;||a:b||:text this just looks strange
I looked in the parser code, and it's pretty obvious why these bugs occur. The parser code, to put it bluntly, sucks. It uses regexps for most parsing instead of a proper context-free parser, so it's bound to have these types of bugs.- Workaround
- Using ~np~ can work around some issues, but it can't be used when ':' is required in the syntax.
- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 2496
- Created
- Saturday 09 May, 2009 19:50:46 UTC
by Unknown - LastModif
- Wednesday 20 May, 2009 13:29:07 UTC