[TYPO3-core] RFC #8263 t3editor should not highlight decimals

Tobias Liebig mail_news at etobi.de
Mon May 5 10:09:10 CEST 2008


Am Donnerstag, den 01.05.2008, 11:23 +0300 schrieb Dmitry Dulepov
[typo3]:
> Tobias Liebig wrote:
> > Problem:
> >     currently the t3editor parses decimal numbers as one token.
> >     To implement context relevant features (e.g. Code Completion) number
> > tokens should not contain a "."
> >     decimals numbers are not very relevant for typoscript and the
> > current behaviour confuses parsing COA objects
> > 
> > Solution:
> >    dispense with tokenize decimals, but tokenize only integers as
> > numbers and "." as operator
> 
> How can it be tested? What is current behavior and what is expected after the patch?
> 

You can test it using Firebug
- Open the Setup and type something like

page.10.20.30.40 = TEXT

- right click on this line and choose "inspect Element" 
- the current behaviour would produce the following markup:

<span class="part keyword2">page</span>
<span class="part ts-operator">.</span>
<span class="part atom">10.20</span>
<span class="part ts-operator">.</span>
<span class="part atom">30.40</span>
<span class="part whitespace"/>
<span class="part ts-operator">=</span>
<span class="part ts-value"> TEXT</span>

"atom" should not highlight decimals (with a ".", like in line 3), but
only integers.
and the dot "." should be highlighted as "ts-operator" 

so, the wanted behaviour would be this markup:

<span class="part keyword2">page</span>
<span class="part ts-operator">.</span>
<span class="part atom">10</span>
<span class="part ts-operator">.</span>
<span class="part atom">20</span>
<span class="part ts-operator">.</span>
<span class="part atom">30</span>
<span class="part ts-operator">.</span>
<span class="part atom">40</span>
<span class="part whitespace"/>
<span class="part ts-operator">=</span>
<span class="part ts-value"> TEXT</span>

regards
  tobias





More information about the TYPO3-team-core mailing list