Skip to content

Add highlighting support for conditions#3

Open
martin-helmich wants to merge 1 commit intobenjaminkott:masterfrom
martin-helmich:feature/condition-highlighting
Open

Add highlighting support for conditions#3
martin-helmich wants to merge 1 commit intobenjaminkott:masterfrom
martin-helmich:feature/condition-highlighting

Conversation

@martin-helmich
Copy link
Copy Markdown

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