"use strict";(self.webpackChunksc_note_comment=self.webpackChunksc_note_comment||[]).push([[1833],{1833(r,l,h){h.d(l,{ebnf:()=>a});const a={name:"ebnf",startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(e,c){if(e){switch(0===c.stack.length&&('"'==e.peek()||"'"==e.peek()?(c.stringType=e.peek(),e.next(),c.stack.unshift(1)):e.match("/*")?(c.stack.unshift(0),c.commentType=0):e.match("(*")&&(c.stack.unshift(0),c.commentType=1)),c.stack[0]){case 1:for(;1===c.stack[0]&&!e.eol();)e.peek()===c.stringType?(e.next(),c.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return c.lhs?"property":"string";case 0:for(;0===c.stack[0]&&!e.eol();)0===c.commentType&&e.match("*/")||1===c.commentType&&e.match("*)")?(c.stack.shift(),c.commentType=null):e.match(/^.[^\*]*/);return"comment";case 2:for(;2===c.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(".")||c.stack.shift();return"operator"}var t=e.peek();switch(t){case"[":return e.next(),c.stack.unshift(2),"bracket";case":":case"|":case";":return e.next(),"operator";case"%":if(e.match("%%"))return"header";if(e.match(/[%][A-Za-z]+/))return"keyword";if(e.match(/[%][}]/))return"bracket";break;case"/":if(e.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(e.match(/[\][a-z]+/))return"string.special";case".":if(e.match("."))return"atom";case"*":case"-":case"+":case"^":if(e.match(t))return"atom";case"$":if(e.match("$$"))return"builtin";if(e.match(/[$][0-9]+/))return"variableName.special";case"<":if(e.match(/<<[a-zA-Z_]+>>/))return"builtin"}return e.match("//")?(e.skipToEnd(),"comment"):e.match("return")?"operator":e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?e.match(/(?=[\(.])/)?"variable":e.match(/(?=[\s\n]*[:=])/)?"def":"variableName.special":-1!=["[","]","(",")"].indexOf(e.peek())?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}}}]);