carbonblack / intellij-rpmspec

An IntelliJ plugin for RPM SPEC file support
Apache License 2.0
11 stars 4 forks source link

Add support for jinja templates #16

Open rakhinskiy opened 1 year ago

rakhinskiy commented 1 year ago

Is your feature request related to a problem? Please describe.

Can't combine jinja template with rpm spec plugins

Describe the solution you'd like

Jinja 2 template plugin in PyCharm can be used with "Template data language" I wan't to combine jinja and rpm specs, but when a use for example %global version {{ pkg_version }} I receive error from plugin

RpmSpecTokenType.%, RpmSpecTokenType.%%, RpmSpecTokenType.(, RpmSpecTokenType.), RpmSpecTokenType.-, RpmSpecTokenType.:, RpmSpecTokenType.<, RpmSpecTokenType.>, RpmSpecTokenType.BOOL_LITERAL, RpmSpecTokenType.CODE, RpmSpecTokenType.FLOAT_LITERAL, RpmSpecTokenType.IDENTIFIER, RpmSpecTokenType.INTEGER_LITERAL, RpmSpecTokenType.\ or RpmSpecTokenType.{ expected

Can you add support for jinja like https://github.com/carbonblack/intellij-rpmspec/issues/5 Or maybe exclude {{ }} from errors

Describe alternatives you've considered

No response

Additional context

No response

dvershinin commented 9 months ago

+1. This would be very handy for templated .spec files. I use such template.