Wrong syntax highlighting in wrong context
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)
#2 Updated by Administrator Admin almost 12 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.
#3 Updated by Administrator Admin almost 12 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!