Skip to content

Add support for jinja templates #16

@rakhinskiy

Description

@rakhinskiy

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 #5
Or maybe exclude {{ }} from errors

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions