[TYPO3-core] RFC #8478: highlighting error (the next line after a ">" gets colored as "value")
Tobias Liebig
liebig at networkteam.com
Fri Jun 6 09:59:59 CEST 2008
This is an SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=8478
Branches:
4.2, Trunk
Problem I:
After an operator (= > and <) the parser expected a "value". If the
operator is the last char in a line (e.g. when deleting a property with
>), the parser detects complete next line as value.
Test I:
open the t3editor and write the following code:
temp.foo = value
temp.foo >
temp.bar = another value
Line 1 should be correct.
Type no space after > in line 2.
If the attached patch is *not* applied, the line 3 would get red colored
If patch is applied, line 3 is colored correct.
See Screenshot attached to the issue in the bugtracker
Problem II:
Reference operator "=<" is not detected as a operator correctly, but
gets "two-colored". This is, because the "<" is detected as a value of
the "=" operator.
Test II:
type:
temp.foo =< temp.bar
Solution:
Detect if operator is followed by a line break
and detect if "=" is not followed by "<"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_t3editor_20080606_8478.diff
Type: text/x-diff
Size: 777 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080606/3409c93d/attachment.diff
More information about the TYPO3-team-core
mailing list