Bug #25507
closed
Wrong syntax highlighting in wrong context
Added by Oliver Hader almost 17 years ago.
Updated almost 11 years ago.
Assignee:
Administrator Admin
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)
this is hardcore test for highlight :-)
maybe you can define the rule
- only highlight Object Keyword after ={space} or =
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.
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!
i already have a patch in process
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.
- Project changed from 75 to TYPO3 Core
- Target version deleted (
0)
Also available in: Atom
PDF