<?php

/**
 * @author    Samuel Marshall <sdmarshall73@gmail.com>
 * @copyright Copyright (c) 2020 Samuel Marshall
 * @license   GNU/GPLv3, or later. See LICENSE file
 *
 * If LICENSE file missing, see <http://www.gnu.org/licenses/>.
 */

namespace CodeAlfa\RegexTokenizer;

trait Js
{
    use \CodeAlfa\RegexTokenizer\Base;

    /**
     * Regex token for a valid HTML comment in a JavaScript declaration block.
     */
    public static function jsHtmlCommentToken(): string
    {
        return '(?:(?:<!--|(?<=[\\s/^])-->)[^\\r\\n]*+)';
    }
}
