Bug 453525 - Please add highlighting for ".html.twig" files (twig template engine)
Summary: Please add highlighting for ".html.twig" files (twig template engine)
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-08 05:48 UTC by Arnaud Lier
Modified: 2023-07-25 18:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud Lier 2022-05-08 05:48:49 UTC
SUMMARY
The [twig template engine](https://twig.symfony.com/) is popular in web development. Highlighting these files could be helpful.

STEPS TO REPRODUCE
1. Open a `.html.twig` file

OBSERVED RESULT
No twig highlighting

EXPECTED RESULT
Twig highlighting

ADDITIONAL INFORMATION
[Twig Documentation](https://twig.symfony.com/doc/3.x/)
Comment 1 Bug Janitor Service 2023-07-22 22:48:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/512
Comment 2 Christoph Cullmann 2023-07-25 18:22:53 UTC
Git commit 2f05fd927cc9fe5abe5428d30d76b55a66fdc225 by Christoph Cullmann, on behalf of Jonathan Poelen.
Committed on 25/07/2023 at 20:20.
Pushed by cullmann into branch 'master'.

Add syntax highlighting for Twig

A  +165  -0    autotests/folding/test.twig.fold
A  +172  -0    autotests/html/test.twig.dark.html
A  +172  -0    autotests/html/test.twig.html
A  +165  -0    autotests/input/test.twig
A  +165  -0    autotests/reference/test.twig.ref
M  +16   -9    data/CMakeLists.txt
A  +143  -0    data/generators/generate-html.pl
D  +0    -78   data/generators/generate-php.pl
A  +499  -0    data/syntax/twig.xml

https://invent.kde.org/frameworks/syntax-highlighting/-/commit/2f05fd927cc9fe5abe5428d30d76b55a66fdc225