TYPO3 Fluid Syntax Highlighting
[!IMPORTANT]
This extension is no longer actively developed. Please use Fluid Template Language by Friends of TYPO3 instead.
This extension provides basic syntax highlighting for TYPO3 Fluid.
Simply extends HTML with Fluid tags, such as <f:if>, <f:for>, etc.
This way, no more errors are produced when using Fluid tags in <script> blocks.
Fluid variables are recognised in text, in HTML attributes, and in CSS property values inside <style> blocks, while the surrounding CSS and JavaScript keep their own highlighting.
Contributing
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request on the GitHub repository.
Testing
The grammar is covered by snapshot tests that tokenize the fixtures in test/fixtures exactly as VS Code would, including the embedded CSS and JavaScript grammars.
yarn install
yarn test # verify against the committed snapshots
yarn test:update # re-record snapshots after an intentional change
yarn test downloads the pinned VS Code HTML and CSS grammars into test/grammars on first run, so it needs network access once.
Enjoy!