[TYPO3-core] RFC #8478: highlighting error (the next line after a ">" gets colored as "value")
Benjamin Mack
benni at typo3.org
Tue Jun 10 15:44:04 CEST 2008
+1 after testing.
Commited to trunk (rev. #3780) and 4.2 (rev. #3781)!
Tobias Liebig wrote:
> 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 "<"
>
>
>
--
greetings,
benni.
-SDG-
More information about the TYPO3-team-core
mailing list