Skip to content

[BUG] [Linter] T027 False positive with golang comment syntax #712

Closed
@silverwind

Description

@silverwind

System Info

  • OS: macOS 15
  • Python Version: 3.11
  • djLint Version: 1.31.1
  • template language: golang

Issue

T027 likely shouldn't parse inside go template comments as it's picking up a ' as a unbalanced string while this is purely comment text.

How To Reproduce

{{/* can't */}}

Contents of .djlintrc/pyproject.toml [tool.djlint]

[tool.djlint]
profile="golang"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions