Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypoScript examples: // seen as comment #684

Closed
cweiske opened this issue Jul 30, 2024 · 2 comments · Fixed by #824
Closed

TypoScript examples: // seen as comment #684

cweiske opened this issue Jul 30, 2024 · 2 comments · Fixed by #824

Comments

@cweiske
Copy link

cweiske commented Jul 30, 2024

https://docs.typo3.org/m/typo3/reference-typoscript/12.4/en-us/Functions/Data.html has a code example:

lib.foo.data = field : header // field : title // field : uid

Everything after the // is seen as comment, which is wrong - it's the fallback syntax.

2024-07-30 Auswahl_001

@brotkrueml
Copy link
Contributor

This is a known issue. If you are good at regular expressions, help is welcome:
https://github.com/TYPO3-Documentation/render-guides/blob/main/packages/typo3-docs-theme/resources/languages/typoscript.json

@Tim-Obert
Copy link
Contributor

A possible solution to mark all lines with "=" and "//" and mark it as assignment before the comments rule is applied.
see #824

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants