Bug #25507
closedWrong syntax highlighting in wrong context
0%
Description
Examples of code snippets tested:
10.value = My.TEXT.file.txt
5.file = EXT:whatever/res/header.jpg
In these examples the "TEXT" and "header" words get highlighted but shouldn't because they are used in string context and not as TypoScript keywords/properties.
(issue imported from #M6834)
Updated by Steffen Kamper almost 17 years ago
this is hardcore test for highlight :-)
maybe you can define the rule- only highlight Object Keyword after ={space} or =
Updated by Administrator Admin almost 17 years ago
this is really hard to implement!
in the current version the editor just searches for keywords and colored them. there is no deeper logic implemented.
I think sweeTS and other have the same issue.
Perhaps we can implement something later.
i leave this issue as "new" as a reminder for later.
Updated by Administrator Admin almost 17 years ago
the template analyser solves this in an easy way
Everything behind a = or < is interpreted as "value" or "copy value"
this also saves some time on parsing/coloring because the editor don't need to search for reserved words in "value"s
it's easy to implement. patch will follow real soon!
Updated by Administrator Admin almost 17 years ago
i already have a patch in process
Updated by Administrator Admin almost 17 years ago
The highlighting is now more aligned to the known "Template Analyser". So highlighted keyword behind a "=" or "<" should be no problem anymore.
I also adjust the colors a little bit.
Updated by Michael Stucki almost 11 years ago
- Project changed from 75 to TYPO3 Core
- Target version deleted (
0)