[TYPO3-core] RFC #8478: highlighting error (the next line after a ">" gets colored as "value")

Thomas Hempel thomas at typo3-unleashed.net
Sun Jun 8 11:29:35 CEST 2008


Hi,


> 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 "<"
+1 after testing.


Greets,
Thomas

-- 
typo3-unleashed.net


More information about the TYPO3-team-core mailing list