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

Add highlighting support for conditions #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martin-helmich
Copy link

Hey @benjaminkott! 👋 Thanks for this VS code plugin! It has been immeasurably helpful for me so far. 🎉

I noticed that this plugin does not yet support syntax highlighting for TypoScript conditions, and even breaks completely on the new Symfony expression conditions:

vscode-typoscript-condition

This PR adds full syntax highlighting support for TypoScript conditions (both using the legacy syntax and the new Symfony expressions) in both .typoscript and .tsconfig files:

vscode-typoscript-condition-new

Hope this contribution proves useful. 😉 Cheers!
Martin


Attribution:

The regular expressions used to match the tokens of the Symfony expression language have been adapted from the original Symfony expression language repo (MIT licensed) 1.

This commit adds syntax highlighting support for TypoScript conditions (both
legacy conditions and the new Symfony expressions) in both .typoscript and
.tsconfig files.

The regular expressions used to match the tokens of the Symfony expression
language have been adapted from the original Symfony expression language repo
(MIT licensed) [1].

  [1]: https://github.com/symfony/expression-language/blob/master/Lexer.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant