3
V'íc ã @ sR d Z ddlmZmZmZ ddlmZmZmZm Z m
Z
mZ dgZG dd deZ
dS )zç
pygments.lexers.yang
~~~~~~~~~~~~~~~~~~~~
Lexer for the YANG 1.1 modeling language. See :rfc:`7950`.
:copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
é )Ú
RegexLexerÚbygroupsÚwords)ÚTextÚTokenÚNameÚStringÚCommentÚNumberÚ YangLexerc @ s e Zd ZdZdZdZdgZdgZdgZdZ dZ
dZd
ZdZ
dZdZdZdZdZdlZdmefdnedofdpedqfdrefgdsejfdtejfduejfdvejfdwejfdnedxfdyefdzeejejej fd{ej!fd|e"j#fd}e"j$fe%e ed~ej&fe%e
ed~ej&fe%eed~ej&fe%eed~ej&fe%e
ed~ej&fe%eed~ej&fe%eed~ej&fe%eed~ej&fe%eed~ej'fe%eed~ej'fdej fgdZ(dS )r zF
Lexer for YANG, based on RFC7950.
.. versionadded:: 2.7
ZYANGz$https://tools.ietf.org/html/rfc7950/Zyangz*.yangzapplication/yangÚmoduleÚ submoduleú
belongs-toÚ namespaceÚprefixúyang-versionÚcontactÚdescriptionÚorganizationÚ referenceÚrevisionÚimportÚincludeú
revision-dateÚactionÚargumentÚaugmentÚ deviationÚ extensionÚfeatureÚgroupingÚidentityú
if-featureÚinputÚnotificationÚoutputÚrpcÚtypedefÚanydataÚanyxmlÚcaseÚchoiceÚconfigÚ containerÚdeviateÚleafú leaf-listÚlistÚmustÚpresenceÚrefineÚusesÚwhenÚbaseÚbitÚdefaultÚenumú
error-app-tagú
error-messageúfraction-digitsÚlengthúmax-elementsúmin-elementsÚmodifierú
ordered-byÚpathÚpatternÚpositionÚrangeúrequire-instanceÚstatusÚtypeÚunitsÚvalueúyin-elementÚkeyÚ mandatoryÚuniqueÚaddÚcurrentÚdeleteÚ
deprecatedÚfalseúinvert-matchÚmaxÚminú
not-supportedÚobsoleteÚreplaceÚtrueÚ unboundedÚuserÚbinaryÚbitsÚbooleanÚ decimal64ÚemptyÚenumerationÚidentityrefúinstance-identifierÚint16Úint32Úint64Úint8ÚleafrefÚstringÚuint16Úuint32Úuint64Úuint8Úunionz(?=[^\w\-:])z[^*/]z/\*z#pushz\*/z#popz[*/]z\s+z[{};]+z'(?<![\-\w])(and|or|not|\+|\.)(?![\-\w])z"(?:\\"|[^"])*?"z'(?:\\'|[^'])*?'Úcommentsz//.*?$z2(?:^|(?<=[\s{};]))([\w.-]+)(:)([\w.-]+)(?=[\s{};])z)([0-9]{4}\-[0-9]{2}\-[0-9]{2})(?=[\s{};])z([0-9]+\.[0-9]+)(?=[\s{};])z([0-9]+)(?=[\s{};]))Úsuffixz[^;{}\s\'"]+)rq ÚrootN)r r