<commit_before><commit_msg>added test to track djangojavascript lexer fix<commit_after>import pytest

from pygments.lexers.templates import JavascriptDjangoLexer
from pygments.token import Comment


@pytest.fixture(scope="module")
def lexer():
    yield JavascriptDjangoLexer()


def test_do_not_mistake_JSDoc_for_django_comment(lexer):
    text = """/**
               * @param {*} cool
               */
              func = function(cool) {
              };
               
              /**
               * @param {*} stuff
               */
              fun = function(stuff) {
              };"""
    tokens = list(lexer.get_tokens(text))
    assert (
        (
            Comment,
            """{*} cool
               */
              func = function(cool) {
              };
               
              /**
               * @param {*}""",
        )
        not in tokens
    )
{'fraction_non_alphanumeric': 0.1122334455667789, 'fraction_numerical': 0.0, 'mean_word_length': 1.2930591259640103, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6523500', 'n_tokens_mistral': 255, 'n_tokens_neox': 237, 'n_words': 43}