/* Copyright (c) 2006, Ivan Sagalaev. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ 'use strict';var decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java="[0-9](_*[0-9])*";var frac$$module$third_party$javascript$highlightjs$src$languages$lib$java=`\\.(${decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})`;var hexDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java="[0-9a-fA-F](_*[0-9a-fA-F])*"; var NUMERIC$$module$third_party$javascript$highlightjs$src$languages$lib$java={className:"number",variants:[{begin:`(\\b(${decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})((${frac$$module$third_party$javascript$highlightjs$src$languages$lib$java})|\\.)?|(${frac$$module$third_party$javascript$highlightjs$src$languages$lib$java}))`+`[eE][+-]?(${decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})[fFdD]?\\b`},{begin:`\\b(${decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})((${frac$$module$third_party$javascript$highlightjs$src$languages$lib$java})[fFdD]?\\b|\\.([fFdD]\\b)?)`}, {begin:`(${frac$$module$third_party$javascript$highlightjs$src$languages$lib$java})[fFdD]?\\b`},{begin:`\\b(${decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})[fFdD]\\b`},{begin:`\\b0[xX]((${hexDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})\\.?|(${hexDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})?\\.(${hexDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java}))`+`[pP][+-]?(${decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})[fFdD]?\\b`}, {begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${hexDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};var module$third_party$javascript$highlightjs$src$languages$lib$java={};module$third_party$javascript$highlightjs$src$languages$lib$java.NUMERIC=NUMERIC$$module$third_party$javascript$highlightjs$src$languages$lib$java;var $jscompDefaultExport$$module$third_party$javascript$highlightjs$src$languages$java=function(hljs){var JAVA_IDENT_RE="[\u00c0-\u02b8a-zA-Z_$][\u00c0-\u02b8a-zA-Z_$0-9]*";var GENERIC_IDENT_RE=JAVA_IDENT_RE+"(<"+JAVA_IDENT_RE+"(\\s*,\\s*"+JAVA_IDENT_RE+")*>)?";var KEYWORDS="false synchronized int abstract float private char boolean var static null if const "+"for true while long strictfp finally protected import native final void "+"enum else break transient catch instanceof byte super volatile case assert short "+ "package default double public try this switch continue throws protected public private "+"module requires exports do";var ANNOTATION={className:"meta",begin:"@"+JAVA_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const NUMBER=NUMERIC$$module$third_party$javascript$highlightjs$src$languages$lib$java;return{name:"Java",aliases:["jsp"],keywords:KEYWORDS,illegal:/<\/|#/,contains:[hljs.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}), {begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},hljs.C_LINE_COMMENT_MODE,hljs.C_BLOCK_COMMENT_MODE,hljs.APOS_STRING_MODE,hljs.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface enum",end:/[{;=]/,excludeEnd:true,relevance:1,keywords:"class interface enum",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},hljs.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"class",begin:"record\\s+"+hljs.UNDERSCORE_IDENT_RE+"\\s*\\(", returnBegin:true,excludeEnd:true,end:/[{;=]/,keywords:KEYWORDS,contains:[{beginKeywords:"record"},{begin:hljs.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:true,relevance:0,contains:[hljs.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:KEYWORDS,relevance:0,contains:[hljs.C_BLOCK_COMMENT_MODE]},hljs.C_LINE_COMMENT_MODE,hljs.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"("+GENERIC_IDENT_RE+"\\s+)+"+hljs.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:true,end:/[{;=]/,excludeEnd:true, keywords:KEYWORDS,contains:[{begin:hljs.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:true,relevance:0,contains:[hljs.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:KEYWORDS,relevance:0,contains:[ANNOTATION,hljs.APOS_STRING_MODE,hljs.QUOTE_STRING_MODE,NUMBER,hljs.C_BLOCK_COMMENT_MODE]},hljs.C_LINE_COMMENT_MODE,hljs.C_BLOCK_COMMENT_MODE]},NUMBER,ANNOTATION]}};var module$third_party$javascript$highlightjs$src$languages$java={}; module$third_party$javascript$highlightjs$src$languages$java.default=$jscompDefaultExport$$module$third_party$javascript$highlightjs$src$languages$java;globalThis.hljs_java=$jscompDefaultExport$$module$third_party$javascript$highlightjs$src$languages$java;var module$third_party$javascript$highlightjs$export_shims$export_java={};