sqf.js 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. /*
  2. Language: SQF
  3. Author: Søren Enevoldsen <senevoldsen90@gmail.com>
  4. Contributors: Marvin Saignat <contact@zgmrvn.com>, Dedmen Miller <dedmen@dedmen.de>
  5. Description: Scripting language for the Arma game series
  6. Website: https://community.bistudio.com/wiki/SQF_syntax
  7. Category: scripting
  8. */
  9. function sqf(hljs) {
  10. // In SQF, a variable start with _
  11. const VARIABLE = {
  12. className: 'variable',
  13. begin: /\b_+[a-zA-Z]\w*/
  14. };
  15. // In SQF, a function should fit myTag_fnc_myFunction pattern
  16. // https://community.bistudio.com/wiki/Functions_Library_(Arma_3)#Adding_a_Function
  17. const FUNCTION = {
  18. className: 'title',
  19. begin: /[a-zA-Z][a-zA-Z0-9]+_fnc_\w*/
  20. };
  21. // In SQF strings, quotes matching the start are escaped by adding a consecutive.
  22. // Example of single escaped quotes: " "" " and ' '' '.
  23. const STRINGS = {
  24. className: 'string',
  25. variants: [
  26. {
  27. begin: '"',
  28. end: '"',
  29. contains: [ {
  30. begin: '""',
  31. relevance: 0
  32. } ]
  33. },
  34. {
  35. begin: '\'',
  36. end: '\'',
  37. contains: [ {
  38. begin: '\'\'',
  39. relevance: 0
  40. } ]
  41. }
  42. ]
  43. };
  44. // list of keywords from:
  45. // https://community.bistudio.com/wiki/PreProcessor_Commands
  46. const PREPROCESSOR = {
  47. className: 'meta',
  48. begin: /#\s*[a-z]+\b/,
  49. end: /$/,
  50. keywords: {
  51. 'meta-keyword':
  52. 'define undef ifdef ifndef else endif include'
  53. },
  54. contains: [
  55. {
  56. begin: /\\\n/,
  57. relevance: 0
  58. },
  59. hljs.inherit(STRINGS, {
  60. className: 'meta-string'
  61. }),
  62. {
  63. className: 'meta-string',
  64. begin: /<[^\n>]*>/,
  65. end: /$/,
  66. illegal: '\\n'
  67. },
  68. hljs.C_LINE_COMMENT_MODE,
  69. hljs.C_BLOCK_COMMENT_MODE
  70. ]
  71. };
  72. return {
  73. name: 'SQF',
  74. case_insensitive: true,
  75. keywords: {
  76. keyword:
  77. 'case catch default do else exit exitWith for forEach from if ' +
  78. 'private switch then throw to try waitUntil while with',
  79. built_in:
  80. 'abs accTime acos action actionIDs actionKeys actionKeysImages actionKeysNames ' +
  81. 'actionKeysNamesArray actionName actionParams activateAddons activatedAddons activateKey ' +
  82. 'add3DENConnection add3DENEventHandler add3DENLayer addAction addBackpack addBackpackCargo ' +
  83. 'addBackpackCargoGlobal addBackpackGlobal addCamShake addCuratorAddons addCuratorCameraArea ' +
  84. 'addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler ' +
  85. 'addForce addGoggles addGroupIcon addHandgunItem addHeadgear addItem addItemCargo ' +
  86. 'addItemCargoGlobal addItemPool addItemToBackpack addItemToUniform addItemToVest addLiveStats ' +
  87. 'addMagazine addMagazineAmmoCargo addMagazineCargo addMagazineCargoGlobal addMagazineGlobal ' +
  88. 'addMagazinePool addMagazines addMagazineTurret addMenu addMenuItem addMissionEventHandler ' +
  89. 'addMPEventHandler addMusicEventHandler addOwnedMine addPlayerScores addPrimaryWeaponItem ' +
  90. 'addPublicVariableEventHandler addRating addResources addScore addScoreSide addSecondaryWeaponItem ' +
  91. 'addSwitchableUnit addTeamMember addToRemainsCollector addTorque addUniform addVehicle addVest ' +
  92. 'addWaypoint addWeapon addWeaponCargo addWeaponCargoGlobal addWeaponGlobal addWeaponItem ' +
  93. 'addWeaponPool addWeaponTurret admin agent agents AGLToASL aimedAtTarget aimPos airDensityRTD ' +
  94. 'airplaneThrottle airportSide AISFinishHeal alive all3DENEntities allAirports allControls ' +
  95. 'allCurators allCutLayers allDead allDeadMen allDisplays allGroups allMapMarkers allMines ' +
  96. 'allMissionObjects allow3DMode allowCrewInImmobile allowCuratorLogicIgnoreAreas allowDamage ' +
  97. 'allowDammage allowFileOperations allowFleeing allowGetIn allowSprint allPlayers allSimpleObjects ' +
  98. 'allSites allTurrets allUnits allUnitsUAV allVariables ammo ammoOnPylon and animate animateBay ' +
  99. 'animateDoor animatePylon animateSource animationNames animationPhase animationSourcePhase ' +
  100. 'animationState append apply armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert ' +
  101. 'assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret ' +
  102. 'assignCurator assignedCargo assignedCommander assignedDriver assignedGunner assignedItems ' +
  103. 'assignedTarget assignedTeam assignedVehicle assignedVehicleRole assignItem assignTeam ' +
  104. 'assignToAirport atan atan2 atg ATLToASL attachedObject attachedObjects attachedTo attachObject ' +
  105. 'attachTo attackEnabled backpack backpackCargo backpackContainer backpackItems backpackMagazines ' +
  106. 'backpackSpaceFor behaviour benchmark binocular boundingBox boundingBoxReal boundingCenter ' +
  107. 'breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode ' +
  108. 'call callExtension camCommand camCommit camCommitPrepared camCommitted camConstuctionSetParams ' +
  109. 'camCreate camDestroy cameraEffect cameraEffectEnableHUD cameraInterest cameraOn cameraView ' +
  110. 'campaignConfigFile camPreload camPreloaded camPrepareBank camPrepareDir camPrepareDive ' +
  111. 'camPrepareFocus camPrepareFov camPrepareFovRange camPreparePos camPrepareRelPos camPrepareTarget ' +
  112. 'camSetBank camSetDir camSetDive camSetFocus camSetFov camSetFovRange camSetPos camSetRelPos ' +
  113. 'camSetTarget camTarget camUseNVG canAdd canAddItemToBackpack canAddItemToUniform canAddItemToVest ' +
  114. 'cancelSimpleTaskDestination canFire canMove canSlingLoad canStand canSuspend ' +
  115. 'canTriggerDynamicSimulation canUnloadInCombat canVehicleCargo captive captiveNum cbChecked ' +
  116. 'cbSetChecked ceil channelEnabled cheatsEnabled checkAIFeature checkVisibility className ' +
  117. 'clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons ' +
  118. 'clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal ' +
  119. 'clearMagazinePool clearOverlay clearRadio clearWeaponCargo clearWeaponCargoGlobal clearWeaponPool ' +
  120. 'clientOwner closeDialog closeDisplay closeOverlay collapseObjectTree collect3DENHistory ' +
  121. 'collectiveRTD combatMode commandArtilleryFire commandChat commander commandFire commandFollow ' +
  122. 'commandFSM commandGetOut commandingMenu commandMove commandRadio commandStop ' +
  123. 'commandSuppressiveFire commandTarget commandWatch comment commitOverlay compile compileFinal ' +
  124. 'completedFSM composeText configClasses configFile configHierarchy configName configProperties ' +
  125. 'configSourceAddonList configSourceMod configSourceModList confirmSensorTarget ' +
  126. 'connectTerminalToUAV controlsGroupCtrl copyFromClipboard copyToClipboard copyWaypoints cos count ' +
  127. 'countEnemy countFriendly countSide countType countUnknown create3DENComposition create3DENEntity ' +
  128. 'createAgent createCenter createDialog createDiaryLink createDiaryRecord createDiarySubject ' +
  129. 'createDisplay createGearDialog createGroup createGuardedPoint createLocation createMarker ' +
  130. 'createMarkerLocal createMenu createMine createMissionDisplay createMPCampaignDisplay ' +
  131. 'createSimpleObject createSimpleTask createSite createSoundSource createTask createTeam ' +
  132. 'createTrigger createUnit createVehicle createVehicleCrew createVehicleLocal crew ctAddHeader ' +
  133. 'ctAddRow ctClear ctCurSel ctData ctFindHeaderRows ctFindRowHeader ctHeaderControls ctHeaderCount ' +
  134. 'ctRemoveHeaders ctRemoveRows ctrlActivate ctrlAddEventHandler ctrlAngle ctrlAutoScrollDelay ' +
  135. 'ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ' +
  136. 'ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ' +
  137. 'ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone ctrlMapCursor ctrlMapMouseOver ' +
  138. 'ctrlMapScale ctrlMapScreenToWorld ctrlMapWorldToScreen ctrlModel ctrlModelDirAndUp ctrlModelScale ' +
  139. 'ctrlParent ctrlParentControlsGroup ctrlPosition ctrlRemoveAllEventHandlers ctrlRemoveEventHandler ' +
  140. 'ctrlScale ctrlSetActiveColor ctrlSetAngle ctrlSetAutoScrollDelay ctrlSetAutoScrollRewind ' +
  141. 'ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked ctrlSetEventHandler ctrlSetFade ' +
  142. 'ctrlSetFocus ctrlSetFont ctrlSetFontH1 ctrlSetFontH1B ctrlSetFontH2 ctrlSetFontH2B ctrlSetFontH3 ' +
  143. 'ctrlSetFontH3B ctrlSetFontH4 ctrlSetFontH4B ctrlSetFontH5 ctrlSetFontH5B ctrlSetFontH6 ' +
  144. 'ctrlSetFontH6B ctrlSetFontHeight ctrlSetFontHeightH1 ctrlSetFontHeightH2 ctrlSetFontHeightH3 ' +
  145. 'ctrlSetFontHeightH4 ctrlSetFontHeightH5 ctrlSetFontHeightH6 ctrlSetFontHeightSecondary ' +
  146. 'ctrlSetFontP ctrlSetFontPB ctrlSetFontSecondary ctrlSetForegroundColor ctrlSetModel ' +
  147. 'ctrlSetModelDirAndUp ctrlSetModelScale ctrlSetPixelPrecision ctrlSetPosition ctrlSetScale ' +
  148. 'ctrlSetStructuredText ctrlSetText ctrlSetTextColor ctrlSetTooltip ctrlSetTooltipColorBox ' +
  149. 'ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ' +
  150. 'ctrlTextWidth ctrlType ctrlVisible ctRowControls ctRowCount ctSetCurSel ctSetData ' +
  151. 'ctSetHeaderTemplate ctSetRowTemplate ctSetValue ctValue curatorAddons curatorCamera ' +
  152. 'curatorCameraArea curatorCameraAreaCeiling curatorCoef curatorEditableObjects curatorEditingArea ' +
  153. 'curatorEditingAreaType curatorMouseOver curatorPoints curatorRegisteredObjects curatorSelected ' +
  154. 'curatorWaypointCost current3DENOperation currentChannel currentCommand currentMagazine ' +
  155. 'currentMagazineDetail currentMagazineDetailTurret currentMagazineTurret currentMuzzle ' +
  156. 'currentNamespace currentTask currentTasks currentThrowable currentVisionMode currentWaypoint ' +
  157. 'currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorObject cursorTarget ' +
  158. 'customChat customRadio cutFadeOut cutObj cutRsc cutText damage date dateToNumber daytime ' +
  159. 'deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter ' +
  160. 'deleteCollection deleteEditorObject deleteGroup deleteGroupWhenEmpty deleteIdentity ' +
  161. 'deleteLocation deleteMarker deleteMarkerLocal deleteRange deleteResources deleteSite deleteStatus ' +
  162. 'deleteTeam deleteVehicle deleteVehicleCrew deleteWaypoint detach detectedMines ' +
  163. 'diag_activeMissionFSMs diag_activeScripts diag_activeSQFScripts diag_activeSQSScripts ' +
  164. 'diag_captureFrame diag_captureFrameToFile diag_captureSlowFrame diag_codePerformance ' +
  165. 'diag_drawMode diag_enable diag_enabled diag_fps diag_fpsMin diag_frameNo diag_lightNewLoad ' +
  166. 'diag_list diag_log diag_logSlowFrame diag_mergeConfigFile diag_recordTurretLimits ' +
  167. 'diag_setLightNew diag_tickTime diag_toggle dialog diarySubjectExists didJIP didJIPOwner ' +
  168. 'difficulty difficultyEnabled difficultyEnabledRTD difficultyOption direction directSay disableAI ' +
  169. 'disableCollisionWith disableConversation disableDebriefingStats disableMapIndicators ' +
  170. 'disableNVGEquipment disableRemoteSensors disableSerialization disableTIEquipment ' +
  171. 'disableUAVConnectability disableUserInput displayAddEventHandler displayCtrl displayParent ' +
  172. 'displayRemoveAllEventHandlers displayRemoveEventHandler displaySetEventHandler dissolveTeam ' +
  173. 'distance distance2D distanceSqr distributionRegion do3DENAction doArtilleryFire doFire doFollow ' +
  174. 'doFSM doGetOut doMove doorPhase doStop doSuppressiveFire doTarget doWatch drawArrow drawEllipse ' +
  175. 'drawIcon drawIcon3D drawLine drawLine3D drawLink drawLocation drawPolygon drawRectangle ' +
  176. 'drawTriangle driver drop dynamicSimulationDistance dynamicSimulationDistanceCoef ' +
  177. 'dynamicSimulationEnabled dynamicSimulationSystemEnabled echo edit3DENMissionAttributes editObject ' +
  178. 'editorSetEventHandler effectiveCommander emptyPositions enableAI enableAIFeature ' +
  179. 'enableAimPrecision enableAttack enableAudioFeature enableAutoStartUpRTD enableAutoTrimRTD ' +
  180. 'enableCamShake enableCaustics enableChannel enableCollisionWith enableCopilot ' +
  181. 'enableDebriefingStats enableDiagLegend enableDynamicSimulation enableDynamicSimulationSystem ' +
  182. 'enableEndDialog enableEngineArtillery enableEnvironment enableFatigue enableGunLights ' +
  183. 'enableInfoPanelComponent enableIRLasers enableMimics enablePersonTurret enableRadio enableReload ' +
  184. 'enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation ' +
  185. 'enableSimulationGlobal enableStamina enableTeamSwitch enableTraffic enableUAVConnectability ' +
  186. 'enableUAVWaypoints enableVehicleCargo enableVehicleSensor enableWeaponDisassembly ' +
  187. 'endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities ' +
  188. 'environmentEnabled estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack ' +
  189. 'everyContainer exec execEditorScript execFSM execVM exp expectedDestination exportJIPMessages ' +
  190. 'eyeDirection eyePos face faction fadeMusic fadeRadio fadeSound fadeSpeech failMission ' +
  191. 'fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition ' +
  192. 'findEmptyPositionReady findIf findNearestEnemy finishMissionInit finite fire fireAtTarget ' +
  193. 'firstBackpack flag flagAnimationPhase flagOwner flagSide flagTexture fleeing floor flyInHeight ' +
  194. 'flyInHeightASL fog fogForecast fogParams forceAddUniform forcedMap forceEnd forceFlagTexture ' +
  195. 'forceFollowRoad forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange ' +
  196. 'forEachMember forEachMemberAgent forEachMemberTeam forgetTarget format formation ' +
  197. 'formationDirection formationLeader formationMembers formationPosition formationTask formatText ' +
  198. 'formLeader freeLook fromEditor fuel fullCrew gearIDCAmmoCount gearSlotAmmoCount gearSlotData ' +
  199. 'get3DENActionState get3DENAttribute get3DENCamera get3DENConnections get3DENEntity ' +
  200. 'get3DENEntityID get3DENGrid get3DENIconsVisible get3DENLayerEntities get3DENLinesVisible ' +
  201. 'get3DENMissionAttribute get3DENMouseOver get3DENSelected getAimingCoef getAllEnvSoundControllers ' +
  202. 'getAllHitPointsDamage getAllOwnedMines getAllSoundControllers getAmmoCargo getAnimAimPrecision ' +
  203. 'getAnimSpeedCoef getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA ' +
  204. 'getAssignedCuratorLogic getAssignedCuratorUnit getBackpackCargo getBleedingRemaining ' +
  205. 'getBurningValue getCameraViewDirection getCargoIndex getCenterOfMass getClientState ' +
  206. 'getClientStateNumber getCompatiblePylonMagazines getConnectedUAV getContainerMaxLoad ' +
  207. 'getCursorObjectParams getCustomAimCoef getDammage getDescription getDir getDirVisual ' +
  208. 'getDLCAssetsUsage getDLCAssetsUsageByName getDLCs getEditorCamera getEditorMode ' +
  209. 'getEditorObjectScope getElevationOffset getEnvSoundController getFatigue getForcedFlagTexture ' +
  210. 'getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom ' +
  211. 'getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos ' +
  212. 'getMarkerSize getMarkerType getMass getMissionConfig getMissionConfigValue getMissionDLCs ' +
  213. 'getMissionLayerEntities getModelInfo getMousePosition getMusicPlayedTime getNumber ' +
  214. 'getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy ' +
  215. 'getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs ' +
  216. 'getPilotCameraDirection getPilotCameraPosition getPilotCameraRotation getPilotCameraTarget ' +
  217. 'getPlateNumber getPlayerChannel getPlayerScores getPlayerUID getPos getPosASL getPosASLVisual ' +
  218. 'getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getPylonMagazines getRelDir ' +
  219. 'getRelPos getRemoteSensorsDisabled getRepairCargo getResolution getShadowDistance getShotParents ' +
  220. 'getSlingLoad getSoundController getSoundControllerResult getSpeed getStamina getStatValue ' +
  221. 'getSuppression getTerrainGrid getTerrainHeightASL getText getTotalDLCUsageTime getUnitLoadout ' +
  222. 'getUnitTrait getUserMFDText getUserMFDvalue getVariable getVehicleCargo getWeaponCargo ' +
  223. 'getWeaponSway getWingsOrientationRTD getWingsPositionRTD getWPPos glanceAt globalChat globalRadio ' +
  224. 'goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId ' +
  225. 'groupOwner groupRadio groupSelectedUnits groupSelectUnit gunner gusts halt handgunItems ' +
  226. 'handgunMagazine handgunWeapon handsHit hasInterface hasPilotCamera hasWeapon hcAllGroups ' +
  227. 'hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup ' +
  228. 'hcShowBar hcShownBar headgear hideBody hideObject hideObjectGlobal hideSelection hint hintC ' +
  229. 'hintCadet hintSilent hmd hostMission htmlLoad HUDMovementLevels humidity image importAllGroups ' +
  230. 'importance in inArea inAreaArray incapacitatedState inflame inflamed infoPanel ' +
  231. 'infoPanelComponentEnabled infoPanelComponents infoPanels inGameUISetEventHandler inheritsFrom ' +
  232. 'initAmbientLife inPolygon inputAction inRangeOfArtillery insertEditorObject intersect is3DEN ' +
  233. 'is3DENMultiplayer isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest ' +
  234. 'isBleeding isBurning isClass isCollisionLightOn isCopilotEnabled isDamageAllowed isDedicated ' +
  235. 'isDLCAvailable isEngineOn isEqualTo isEqualType isEqualTypeAll isEqualTypeAny isEqualTypeArray ' +
  236. 'isEqualTypeParams isFilePatchingEnabled isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader ' +
  237. 'isGroupDeletedWhenEmpty isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn ' +
  238. 'isKeyActive isKindOf isLaserOn isLightOn isLocalized isManualFire isMarkedForCollection ' +
  239. 'isMultiplayer isMultiplayerSolo isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad ' +
  240. 'isPipEnabled isPlayer isRealTime isRemoteExecuted isRemoteExecutedJIP isServer isShowing3DIcons ' +
  241. 'isSimpleObject isSprintAllowed isStaminaEnabled isSteamMission isStreamFriendlyUIEnabled isText ' +
  242. 'isTouchingGround isTurnedOut isTutHintsEnabled isUAVConnectable isUAVConnected isUIContext ' +
  243. 'isUniformAllowed isVehicleCargo isVehicleRadarOn isVehicleSensorEnabled isWalking ' +
  244. 'isWeaponDeployed isWeaponRested itemCargo items itemsWithMagazines join joinAs joinAsSilent ' +
  245. 'joinSilent joinString kbAddDatabase kbAddDatabaseTargets kbAddTopic kbHasTopic kbReact ' +
  246. 'kbRemoveTopic kbTell kbWasSaid keyImage keyName knowsAbout land landAt landResult language ' +
  247. 'laserTarget lbAdd lbClear lbColor lbColorRight lbCurSel lbData lbDelete lbIsSelected lbPicture ' +
  248. 'lbPictureRight lbSelection lbSetColor lbSetColorRight lbSetCurSel lbSetData lbSetPicture ' +
  249. 'lbSetPictureColor lbSetPictureColorDisabled lbSetPictureColorSelected lbSetPictureRight ' +
  250. 'lbSetPictureRightColor lbSetPictureRightColorDisabled lbSetPictureRightColorSelected ' +
  251. 'lbSetSelectColor lbSetSelectColorRight lbSetSelected lbSetText lbSetTextRight lbSetTooltip ' +
  252. 'lbSetValue lbSize lbSort lbSortByValue lbText lbTextRight lbValue leader leaderboardDeInit ' +
  253. 'leaderboardGetRows leaderboardInit leaderboardRequestRowsFriends leaderboardsRequestUploadScore ' +
  254. 'leaderboardsRequestUploadScoreKeepBest leaderboardState leaveVehicle libraryCredits ' +
  255. 'libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed ' +
  256. 'linearConversion lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith ' +
  257. 'linkItem list listObjects listRemoteTargets listVehicleSensors ln lnbAddArray lnbAddColumn ' +
  258. 'lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow ' +
  259. 'lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData ' +
  260. 'lnbSetPicture lnbSetText lnbSetValue lnbSize lnbSort lnbSortByValue lnbText lnbValue load loadAbs ' +
  261. 'loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform ' +
  262. 'loadVest local localize locationPosition lock lockCameraTo lockCargo lockDriver locked ' +
  263. 'lockedCargo lockedDriver lockedTurret lockIdentity lockTurret lockWP log logEntities logNetwork ' +
  264. 'logNetworkTerminate lookAt lookAtPos magazineCargo magazines magazinesAllTurrets magazinesAmmo ' +
  265. 'magazinesAmmoCargo magazinesAmmoFull magazinesDetail magazinesDetailBackpack ' +
  266. 'magazinesDetailUniform magazinesDetailVest magazinesTurret magazineTurretAmmo mapAnimAdd ' +
  267. 'mapAnimClear mapAnimCommit mapAnimDone mapCenterOnCamera mapGridPosition markAsFinishedOnSteam ' +
  268. 'markerAlpha markerBrush markerColor markerDir markerPos markerShape markerSize markerText ' +
  269. 'markerType max members menuAction menuAdd menuChecked menuClear menuCollapse menuData menuDelete ' +
  270. 'menuEnable menuEnabled menuExpand menuHover menuPicture menuSetAction menuSetCheck menuSetData ' +
  271. 'menuSetPicture menuSetValue menuShortcut menuShortcutText menuSize menuSort menuText menuURL ' +
  272. 'menuValue min mineActive mineDetectedBy missionConfigFile missionDifficulty missionName ' +
  273. 'missionNamespace missionStart missionVersion mod modelToWorld modelToWorldVisual ' +
  274. 'modelToWorldVisualWorld modelToWorldWorld modParams moonIntensity moonPhase morale move ' +
  275. 'move3DENCamera moveInAny moveInCargo moveInCommander moveInDriver moveInGunner moveInTurret ' +
  276. 'moveObjectToEnd moveOut moveTime moveTo moveToCompleted moveToFailed musicVolume name nameSound ' +
  277. 'nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing ' +
  278. 'nearestObject nearestObjects nearestTerrainObjects nearObjects nearObjectsReady nearRoads ' +
  279. 'nearSupplies nearTargets needReload netId netObjNull newOverlay nextMenuItemIndex ' +
  280. 'nextWeatherChange nMenuItems not numberOfEnginesRTD numberToDate objectCurators objectFromNetId ' +
  281. 'objectParent objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch ' +
  282. 'onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter ' +
  283. 'onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected ' +
  284. 'onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch ' +
  285. 'openCuratorInterface openDLCPage openMap openSteamApp openYoutubeVideo or orderGetIn overcast ' +
  286. 'overcastForecast owner param params parseNumber parseSimpleArray parseText parsingNamespace ' +
  287. 'particlesQuality pickWeaponPool pitch pixelGrid pixelGridBase pixelGridNoUIScale pixelH pixelW ' +
  288. 'playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide ' +
  289. 'playersNumber playGesture playMission playMove playMoveNow playMusic playScriptedMission ' +
  290. 'playSound playSound3D position positionCameraToWorld posScreenToWorld posWorldToScreen ' +
  291. 'ppEffectAdjust ppEffectCommit ppEffectCommitted ppEffectCreate ppEffectDestroy ppEffectEnable ' +
  292. 'ppEffectEnabled ppEffectForceInNVG precision preloadCamera preloadObject preloadSound ' +
  293. 'preloadTitleObj preloadTitleRsc preprocessFile preprocessFileLineNumbers primaryWeapon ' +
  294. 'primaryWeaponItems primaryWeaponMagazine priority processDiaryLink productVersion profileName ' +
  295. 'profileNamespace profileNameSteam progressLoadingScreen progressPosition progressSetPosition ' +
  296. 'publicVariable publicVariableClient publicVariableServer pushBack pushBackUnique putWeaponPool ' +
  297. 'queryItemsPool queryMagazinePool queryWeaponPool rad radioChannelAdd radioChannelCreate ' +
  298. 'radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random ' +
  299. 'rank rankId rating rectangular registeredTasks registerTask reload reloadEnabled remoteControl ' +
  300. 'remoteExec remoteExecCall remoteExecutedOwner remove3DENConnection remove3DENEventHandler ' +
  301. 'remove3DENLayer removeAction removeAll3DENEventHandlers removeAllActions removeAllAssignedItems ' +
  302. 'removeAllContainers removeAllCuratorAddons removeAllCuratorCameraAreas ' +
  303. 'removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems ' +
  304. 'removeAllItemsWithMagazines removeAllMissionEventHandlers removeAllMPEventHandlers ' +
  305. 'removeAllMusicEventHandlers removeAllOwnedMines removeAllPrimaryWeaponItems removeAllWeapons ' +
  306. 'removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea ' +
  307. 'removeCuratorEditableObjects removeCuratorEditingArea removeDrawIcon removeDrawLinks ' +
  308. 'removeEventHandler removeFromRemainsCollector removeGoggles removeGroupIcon removeHandgunItem ' +
  309. 'removeHeadgear removeItem removeItemFromBackpack removeItemFromUniform removeItemFromVest ' +
  310. 'removeItems removeMagazine removeMagazineGlobal removeMagazines removeMagazinesTurret ' +
  311. 'removeMagazineTurret removeMenuItem removeMissionEventHandler removeMPEventHandler ' +
  312. 'removeMusicEventHandler removeOwnedMine removePrimaryWeaponItem removeSecondaryWeaponItem ' +
  313. 'removeSimpleTask removeSwitchableUnit removeTeamMember removeUniform removeVest removeWeapon ' +
  314. 'removeWeaponAttachmentCargo removeWeaponCargo removeWeaponGlobal removeWeaponTurret ' +
  315. 'reportRemoteTarget requiredVersion resetCamShake resetSubgroupDirection resize resources ' +
  316. 'respawnVehicle restartEditorCamera reveal revealMine reverse reversedMouseY roadAt ' +
  317. 'roadsConnectedTo roleDescription ropeAttachedObjects ropeAttachedTo ropeAttachEnabled ' +
  318. 'ropeAttachTo ropeCreate ropeCut ropeDestroy ropeDetach ropeEndPosition ropeLength ropes ' +
  319. 'ropeUnwind ropeUnwound rotorsForcesRTD rotorsRpmRTD round runInitScript safeZoneH safeZoneW ' +
  320. 'safeZoneWAbs safeZoneX safeZoneXAbs safeZoneY save3DENInventory saveGame saveIdentity ' +
  321. 'saveJoysticks saveOverlay saveProfileNamespace saveStatus saveVar savingEnabled say say2D say3D ' +
  322. 'scopeName score scoreSide screenshot screenToWorld scriptDone scriptName scudState ' +
  323. 'secondaryWeapon secondaryWeaponItems secondaryWeaponMagazine select selectBestPlaces ' +
  324. 'selectDiarySubject selectedEditorObjects selectEditorObject selectionNames selectionPosition ' +
  325. 'selectLeader selectMax selectMin selectNoPlayer selectPlayer selectRandom selectRandomWeighted ' +
  326. 'selectWeapon selectWeaponTurret sendAUMessage sendSimpleCommand sendTask sendTaskResult ' +
  327. 'sendUDPMessage serverCommand serverCommandAvailable serverCommandExecutable serverName serverTime ' +
  328. 'set set3DENAttribute set3DENAttributes set3DENGrid set3DENIconsVisible set3DENLayer ' +
  329. 'set3DENLinesVisible set3DENLogicType set3DENMissionAttribute set3DENMissionAttributes ' +
  330. 'set3DENModelsVisible set3DENObjectType set3DENSelected setAccTime setActualCollectiveRTD ' +
  331. 'setAirplaneThrottle setAirportSide setAmmo setAmmoCargo setAmmoOnPylon setAnimSpeedCoef ' +
  332. 'setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour ' +
  333. 'setBleedingRemaining setBrakesRTD setCameraInterest setCamShakeDefParams setCamShakeParams ' +
  334. 'setCamUseTI setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation ' +
  335. 'setConvoySeparation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType ' +
  336. 'setCuratorWaypointCost setCurrentChannel setCurrentTask setCurrentWaypoint setCustomAimCoef ' +
  337. 'setCustomWeightRTD setDamage setDammage setDate setDebriefingText setDefaultCamera setDestination ' +
  338. 'setDetailMapBlendPars setDir setDirection setDrawIcon setDriveOnPath setDropInterval ' +
  339. 'setDynamicSimulationDistance setDynamicSimulationDistanceCoef setEditorMode setEditorObjectScope ' +
  340. 'setEffectCondition setEngineRPMRTD setFace setFaceAnimation setFatigue setFeatureType ' +
  341. 'setFlagAnimationPhase setFlagOwner setFlagSide setFlagTexture setFog setFormation ' +
  342. 'setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo ' +
  343. 'setGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible setGroupId ' +
  344. 'setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage ' +
  345. 'setHorizonParallaxCoef setHUDMovementLevels setIdentity setImportance setInfoPanel setLeader ' +
  346. 'setLightAmbient setLightAttenuation setLightBrightness setLightColor setLightDayLight ' +
  347. 'setLightFlareMaxDistance setLightFlareSize setLightIntensity setLightnings setLightUseFlare ' +
  348. 'setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush ' +
  349. 'setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal ' +
  350. 'setMarkerPos setMarkerPosLocal setMarkerShape setMarkerShapeLocal setMarkerSize ' +
  351. 'setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass ' +
  352. 'setMimic setMousePosition setMusicEffect setMusicEventHandler setName setNameSound ' +
  353. 'setObjectArguments setObjectMaterial setObjectMaterialGlobal setObjectProxy setObjectTexture ' +
  354. 'setObjectTextureGlobal setObjectViewDistance setOvercast setOwner setOxygenRemaining ' +
  355. 'setParticleCircle setParticleClass setParticleFire setParticleParams setParticleRandom ' +
  356. 'setPilotCameraDirection setPilotCameraRotation setPilotCameraTarget setPilotLight setPiPEffect ' +
  357. 'setPitch setPlateNumber setPlayable setPlayerRespawnTime setPos setPosASL setPosASL2 setPosASLW ' +
  358. 'setPosATL setPosition setPosWorld setPylonLoadOut setPylonsPriority setRadioMsg setRain ' +
  359. 'setRainbow setRandomLip setRank setRectangular setRepairCargo setRotorBrakeRTD setShadowDistance ' +
  360. 'setShotParents setSide setSimpleTaskAlwaysVisible setSimpleTaskCustomData ' +
  361. 'setSimpleTaskDescription setSimpleTaskDestination setSimpleTaskTarget setSimpleTaskType ' +
  362. 'setSimulWeatherLayers setSize setSkill setSlingLoad setSoundEffect setSpeaker setSpeech ' +
  363. 'setSpeedMode setStamina setStaminaScheme setStatValue setSuppression setSystemOfUnits ' +
  364. 'setTargetAge setTaskMarkerOffset setTaskResult setTaskState setTerrainGrid setText ' +
  365. 'setTimeMultiplier setTitleEffect setTrafficDensity setTrafficDistance setTrafficGap ' +
  366. 'setTrafficSpeed setTriggerActivation setTriggerArea setTriggerStatements setTriggerText ' +
  367. 'setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility setUnitLoadout setUnitPos ' +
  368. 'setUnitPosWeak setUnitRank setUnitRecoilCoefficient setUnitTrait setUnloadInCombat ' +
  369. 'setUserActionText setUserMFDText setUserMFDvalue setVariable setVectorDir setVectorDirAndUp ' +
  370. 'setVectorUp setVehicleAmmo setVehicleAmmoDef setVehicleArmor setVehicleCargo setVehicleId ' +
  371. 'setVehicleLock setVehiclePosition setVehicleRadar setVehicleReceiveRemoteTargets ' +
  372. 'setVehicleReportOwnPosition setVehicleReportRemoteTargets setVehicleTIPars setVehicleVarName ' +
  373. 'setVelocity setVelocityModelSpace setVelocityTransformation setViewDistance ' +
  374. 'setVisibleIfTreeCollapsed setWantedRPMRTD setWaves setWaypointBehaviour setWaypointCombatMode ' +
  375. 'setWaypointCompletionRadius setWaypointDescription setWaypointForceBehaviour setWaypointFormation ' +
  376. 'setWaypointHousePosition setWaypointLoiterRadius setWaypointLoiterType setWaypointName ' +
  377. 'setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout ' +
  378. 'setWaypointType setWaypointVisible setWeaponReloadingTime setWind setWindDir setWindForce ' +
  379. 'setWindStr setWingForceScaleRTD setWPPos show3DIcons showChat showCinemaBorder showCommandingMenu ' +
  380. 'showCompass showCuratorCompass showGPS showHUD showLegend showMap shownArtilleryComputer ' +
  381. 'shownChat shownCompass shownCuratorCompass showNewEditorObject shownGPS shownHUD shownMap ' +
  382. 'shownPad shownRadio shownScoretable shownUAVFeed shownWarrant shownWatch showPad showRadio ' +
  383. 'showScoretable showSubtitles showUAVFeed showWarrant showWatch showWaypoint showWaypoints side ' +
  384. 'sideChat sideEnemy sideFriendly sideRadio simpleTasks simulationEnabled simulCloudDensity ' +
  385. 'simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime ' +
  386. 'sleep sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed sliderSpeed ' +
  387. 'slingLoadAssistantShown soldierMagazines someAmmo sort soundVolume spawn speaker speed speedMode ' +
  388. 'splitString sqrt squadParams stance startLoadingScreen step stop stopEngineRTD stopped str ' +
  389. 'sunOrMoon supportInfo suppressFor surfaceIsWater surfaceNormal surfaceType swimInDepth ' +
  390. 'switchableUnits switchAction switchCamera switchGesture switchLight switchMove ' +
  391. 'synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd ' +
  392. 'synchronizeObjectsRemove synchronizeTrigger synchronizeWaypoint systemChat systemOfUnits tan ' +
  393. 'targetKnowledge targets targetsAggregate targetsQuery taskAlwaysVisible taskChildren ' +
  394. 'taskCompleted taskCustomData taskDescription taskDestination taskHint taskMarkerOffset taskParent ' +
  395. 'taskResult taskState taskType teamMember teamName teams teamSwitch teamSwitchEnabled teamType ' +
  396. 'terminate terrainIntersect terrainIntersectASL terrainIntersectAtASL text textLog textLogFormat ' +
  397. 'tg time timeMultiplier titleCut titleFadeOut titleObj titleRsc titleText toArray toFixed toLower ' +
  398. 'toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle ' +
  399. 'triggerAttachObject triggerAttachVehicle triggerDynamicSimulation triggerStatements triggerText ' +
  400. 'triggerTimeout triggerTimeoutCurrent triggerType turretLocal turretOwner turretUnit tvAdd tvClear ' +
  401. 'tvCollapse tvCollapseAll tvCount tvCurSel tvData tvDelete tvExpand tvExpandAll tvPicture ' +
  402. 'tvSetColor tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetPictureColorDisabled ' +
  403. 'tvSetPictureColorSelected tvSetPictureRight tvSetPictureRightColor tvSetPictureRightColorDisabled ' +
  404. 'tvSetPictureRightColorSelected tvSetText tvSetTooltip tvSetValue tvSort tvSortByValue tvText ' +
  405. 'tvTooltip tvValue type typeName typeOf UAVControl uiNamespace uiSleep unassignCurator ' +
  406. 'unassignItem unassignTeam unassignVehicle underwater uniform uniformContainer uniformItems ' +
  407. 'uniformMagazines unitAddons unitAimPosition unitAimPositionVisual unitBackpack unitIsUAV unitPos ' +
  408. 'unitReady unitRecoilCoefficient units unitsBelowHeight unlinkItem unlockAchievement ' +
  409. 'unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAISteeringComponent ' +
  410. 'useAudioTimeForMoves userInputDisabled vectorAdd vectorCos vectorCrossProduct vectorDiff ' +
  411. 'vectorDir vectorDirVisual vectorDistance vectorDistanceSqr vectorDotProduct vectorFromTo ' +
  412. 'vectorMagnitude vectorMagnitudeSqr vectorModelToWorld vectorModelToWorldVisual vectorMultiply ' +
  413. 'vectorNormalized vectorUp vectorUpVisual vectorWorldToModel vectorWorldToModelVisual vehicle ' +
  414. 'vehicleCargoEnabled vehicleChat vehicleRadio vehicleReceiveRemoteTargets vehicleReportOwnPosition ' +
  415. 'vehicleReportRemoteTargets vehicles vehicleVarName velocity velocityModelSpace verifySignature ' +
  416. 'vest vestContainer vestItems vestMagazines viewDistance visibleCompass visibleGPS visibleMap ' +
  417. 'visiblePosition visiblePositionASL visibleScoretable visibleWatch waves waypointAttachedObject ' +
  418. 'waypointAttachedVehicle waypointAttachObject waypointAttachVehicle waypointBehaviour ' +
  419. 'waypointCombatMode waypointCompletionRadius waypointDescription waypointForceBehaviour ' +
  420. 'waypointFormation waypointHousePosition waypointLoiterRadius waypointLoiterType waypointName ' +
  421. 'waypointPosition waypoints waypointScript waypointsEnabledUAV waypointShow waypointSpeed ' +
  422. 'waypointStatements waypointTimeout waypointTimeoutCurrent waypointType waypointVisible ' +
  423. 'weaponAccessories weaponAccessoriesCargo weaponCargo weaponDirection weaponInertia weaponLowered ' +
  424. 'weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD WFSideText wind ',
  425. literal:
  426. 'blufor civilian configNull controlNull displayNull east endl false grpNull independent lineBreak ' +
  427. 'locationNull nil objNull opfor pi resistance scriptNull sideAmbientLife sideEmpty sideLogic ' +
  428. 'sideUnknown taskNull teamMemberNull true west'
  429. },
  430. contains: [
  431. hljs.C_LINE_COMMENT_MODE,
  432. hljs.C_BLOCK_COMMENT_MODE,
  433. hljs.NUMBER_MODE,
  434. VARIABLE,
  435. FUNCTION,
  436. STRINGS,
  437. PREPROCESSOR
  438. ],
  439. illegal: /#|^\$ /
  440. };
  441. }
  442. module.exports = sqf;