�
G�g�U � � � d Z ddlZddlmZmZmZmZmZmZm Z m
Z
ddlmZm
Z
mZmZmZmZmZmZ ddlmZmZ ddlmZ ddlmZ ddlmZmZmZ dd lm Z g d
�Z! G d� de� � Z" G d
� de� � Z# G d� de� � Z$ G d� de$� � Z% G d� de� � Z& G d� de� � Z' G d� de� � Z(e(Z) G d� de� � Z* G d� de"� � Z+dS )z�
pygments.lexers.html
~~~~~~~~~~~~~~~~~~~~
Lexers for HTML, XML and related markup.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�
RegexLexer�ExtendedRegexLexer�include�bygroups�default�using�inherit�this)�Text�Comment�Operator�Keyword�Name�String�Punctuation�
Whitespace)�looks_like_xml�html_doctype_matches)�JavascriptLexer)�
ScalaLexer)�CssLexer�_indentation�
_starts_block)� RubyLexer) � HtmlLexer�DtdLexer�XmlLexer� XsltLexer� HamlLexer�
ScamlLexer�PugLexer�VueLexer�UrlEncodedLexerc �� � e Zd ZdZdZdZdgZg d�ZddgZdZ e
j e
j z Z
d efd
ej fdej fdej fd
ej fdej fd eeeej e� � dfd eeeej e� � dfd eeeej � � dfd eeeeeej ee� � fg
defd eej ee� � dfdej fd eeee� � dfgd eeeeeej ee� � dfd ee� � fd ee� � dfd ee� � dfgd eeeeeej ee� � dfd! ee� � fd ee� � dfd ee� � dfgd"edfd#edfd$edfgd%�Zd&� Zd'S )(r zo
For HTML 4 and XHTML 1 markup. Nested JavaScript and CSS is highlighted
by the appropriate lexer.
�HTMLzhttps://html.spec.whatwg.org/�html)z*.htmlz*.htmz*.xhtml�*.xsltz text/htmlzapplication/xhtml+xml� z[^<&]+�&\S*?;�\<\!\[CDATA\[.*?\]\]\>�
<!--.*?-->� <\?.*?\?>�<![^>]*>z(<)(\s*)(script)(\s*))�script-content�tagz(<)(\s*)(style)(\s*))�
style-contentr/ z(<)(\s*)([\w:.-]+)r/ z"(<)(\s*)(/)(\s*)([\w:.-]+)(\s*)(>)�\s+�([\w:-]+\s*)(=)(\s*)�attr�[\w:-]+�(/?)(\s*)(>)�#popz (<)(\s*)(/)(\s*)(script)(\s*)(>)z.+?(?=<\s*/\s*script\s*>)z.+?\nz.+z(<)(\s*)(/)(\s*)(style)(\s*)(>)z.+?(?=<\s*/\s*style\s*>)�".*?"�'.*?'�[^\s>]+)�rootr/ r. r0 r3 c �( � t | � � rdS d S )Ng �?)r ��texts �d/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/pygments/lexers/html.py�analyse_textzHtmlLexer.analyse_textf s! � ���%�%� ��3� � � N)�__name__�
__module__�__qualname__�__doc__�name�url�aliases� filenames� mimetypes�
version_added�re�
IGNORECASE�DOTALL�flagsr r �Entityr �Preproc� Multiliner r �Tag� Attributer
r r r r �tokensr? � r@ r>