const i=["Form","ActiveMagicEffects","Alias","ReferenceAlias","LocationAlias","Debug","Game","Math","Utility","Action","Activator","Flora","Furniture","TalkingActivator","ActorBase","Ammo","Armor","AssociationType","Book","Cell","Class","Container","Door","EffectShader","Enchantment","EncounterZone","Explosion","Faction","FormList","GlobalVariable","Hazard","Idle","ImageSpaceModifier","ImpactDataSet","Ingredient","Keyword","LocationRefType","LeveledActor","LeveledItem","LeveledSpell","Light","Location","MagicEffect","Message","MiscObject","Apparatus","ConstructableObject","Key","SoulGem","MusicType","ObjectReference","Actor","Outfit","Package","Perk","Potion","Projectile","Quest","Race","Scene","Scroll","Shout","Sound","SoundCategory","Spell","Static","TextureSet","Topic","TopicInfo","VisualEffect","VoiceType","Weapon","Weather","WordOfPower","WorldSpace"],s=["ColorComponent","FormType","GameData","Input","ModEvent","NetImmerse","SKSE","SpawnerTask","StringUtil","UI","UICallback","WornObject","ActorValueInfo","ArmorAddon","Art","ColorForm","CombatStyle","DefaultObjectManager","EquipSlot","HeadPart","SoundDescriptor","TreeObject"],l={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},a={$pattern:/\w+/,keyword:["Event","Function","EndEvent","EndFunction","State","EndState","extends","property","return"],built_in:["if","as","elseif","endif","while","endwhile","auto","self"],type:[...i,...s],literal:["false","true","NONE","string","bool","int"]};function d(e){const t=e.COMMENT(/\{/,/\}/),n=e.COMMENT(/\;(?!\/)/,/$/),o=e.COMMENT(/\;\//,/\/\;/,{relevance:7}),r={className:"string",begin:'"',end:'"',relevance:0},c={className:"function",begin:/(w\+)?(function|event)/,end:/(endfunction|endevent)/,keywords:a,contains:[r,t,n,o,e.NUMBER_MODE,l]};return{name:"Papyrus",aliases:["papyrus","psc"],case_insensitive:!0,keywords:a,contains:[t,n,o,e.NUMBER_MODE,c,r,{className:"title",keywords:"scriptname extends",relevance:7,begin:/scriptname/},{className:"class",begin:/^(?:auto )?state/,end:/endstate/,keywords:a,contains:[c,n,o,t]}]}}export{d as default};
