]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/sqf.js
1 /*! `sqf` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
8 Author: Søren Enevoldsen <senevoldsen90@gmail.com>
9 Contributors: Marvin Saignat <contact@zgmrvn.com>, Dedmen Miller <dedmen@dedmen.de>, Leopard20
10 Description: Scripting language for the Arma game series
11 Website: https://community.bistudio.com/wiki/SQF_syntax
13 Last update: 07.01.2023, Arma 3 v2.11
17 ////////////////////////////////////////////////////////////////////////////////////////////
21 This script can be used to dump all commands to the clipboard.
22 Make sure you're using the Diag EXE to dump all of the commands.
25 Simply replace the _KEYWORDS and _LITERAL arrays with the one from this sqf.js file.
26 Execute the script from the debug console.
27 All commands will be copied to the clipboard.
28 ////////////////////////////////////////////////////////////////////////////////////////////
29 _KEYWORDS = ['if']; //Array of all KEYWORDS
30 _LITERALS = ['west']; //Array of all LITERALS
31 _allCommands = createHashMap;
33 _type = _x select [0,1];
34 if (_type != "t") then {
35 _command_lowercase = ((_x select [2]) splitString " ")#(((["n", "u", "b"] find _type) - 1) max 0);
36 _command_uppercase = supportInfo ("i:" + _command_lowercase) # 0 # 2;
37 _allCommands set [_command_lowercase, _command_uppercase];
39 } forEach supportInfo "";
40 _allCommands = _allCommands toArray false;
41 _allCommands sort true; //sort by lowercase
42 _allCommands = ((_allCommands apply {_x#1}) -_KEYWORDS)-_LITERALS; //remove KEYWORDS and LITERALS
43 copyToClipboard (str (_allCommands select {_x regexMatch "\w+"}) regexReplace ["""", "'"] regexReplace [",", ",\n"]);
47 // In SQF, a local variable starts with _
49 className: 'variable',
50 begin: /\b_+[a-zA-Z]\w*/
53 // In SQF, a function should fit myTag_fnc_myFunction pattern
54 // https://community.bistudio.com/wiki/Functions_Library_(Arma_3)#Adding_a_Function
57 begin: /[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/
60 // In SQF strings, quotes matching the start are escaped by adding a consecutive.
61 // Example of single escaped quotes: " "" " and ' '' '.
161 'actionKeysNamesArray',
167 'activeTitleEffectParams',
169 'add3DENEventHandler',
174 'addBackpackCargoGlobal',
179 'addCuratorCameraArea',
180 'addCuratorEditableObjects',
181 'addCuratorEditingArea',
186 'addForceGeneratorRTD',
193 'addItemCargoGlobal',
200 'addMagazineAmmoCargo',
202 'addMagazineCargoGlobal',
209 'addMissionEventHandler',
211 'addMusicEventHandler',
215 'addPrimaryWeaponItem',
216 'addPublicVariableEventHandler',
221 'addSecondaryWeaponItem',
224 'addToRemainsCollector',
227 'addUserActionEventHandler',
233 'addWeaponCargoGlobal',
238 'addWeaponWithAttachmentsCargo',
239 'addWeaponWithAttachmentsCargoGlobal',
246 'airDensityCurveRTD',
253 'allActiveTitleEffects',
264 'allEnv3DSoundSources',
272 'allowCrewInImmobile',
273 'allowCuratorLogicIgnoreAreas',
277 'allowFileOperations',
290 'ambientTemperature',
301 'animationSourcePhase',
313 'assignAsCargoIndex',
328 'assignedVehicleRole',
352 'bezierInterpolation',
363 'buldozer_EnableRoadDiag',
364 'buldozer_IsEnabledRoadDiag',
365 'buldozer_LoadNewRoads',
366 'buldozer_reloadOperMap',
371 'calculatePlayerVisibilityByFriendly',
378 'camConstuctionSetParams',
382 'cameraEffectEnableHUD',
386 'campaignConfigFile',
394 'camPrepareFovRange',
410 'canAddItemToBackpack',
411 'canAddItemToUniform',
413 'cancelSimpleTaskDestination',
420 'canTriggerDynamicSimulation',
433 'clear3DENAttribute',
434 'clear3DENInventory',
435 'clearAllItemsFromBackpack',
436 'clearBackpackCargo',
437 'clearBackpackCargoGlobal',
441 'clearItemCargoGlobal',
443 'clearMagazineCargo',
444 'clearMagazineCargoGlobal',
449 'clearWeaponCargoGlobal',
455 'collapseObjectTree',
456 'collect3DENHistory',
458 'collisionDisabledWith',
461 'commandArtilleryFire',
472 'commandSuppressiveFire',
478 'compatibleMagazines',
490 'configSourceAddonList',
492 'configSourceModList',
493 'confirmSensorTarget',
494 'connectTerminalToUAV',
497 'conversationDisabled',
508 'create3DENComposition',
515 'createDiarySubject',
519 'createGuardedPoint',
521 'createHashMapFromArray',
527 'createMissionDisplay',
528 'createMPCampaignDisplay',
529 'createSimpleObject',
539 'createVehicleLocal',
553 'ctrlAddEventHandler',
556 'ctrlAnimationPhaseModel',
558 'ctrlAutoScrollDelay',
559 'ctrlAutoScrollRewind',
560 'ctrlAutoScrollSpeed',
561 'ctrlBackgroundColor',
572 'ctrlForegroundColor',
584 'ctrlMapScreenToWorld',
585 'ctrlMapSetPosition',
586 'ctrlMapWorldToScreen',
592 'ctrlParentControlsGroup',
594 'ctrlRemoveAllEventHandlers',
595 'ctrlRemoveEventHandler',
598 'ctrlSetActiveColor',
600 'ctrlSetAutoScrollDelay',
601 'ctrlSetAutoScrollRewind',
602 'ctrlSetAutoScrollSpeed',
603 'ctrlSetBackgroundColor',
605 'ctrlSetDisabledColor',
606 'ctrlSetEventHandler',
623 'ctrlSetFontHeightH1',
624 'ctrlSetFontHeightH2',
625 'ctrlSetFontHeightH3',
626 'ctrlSetFontHeightH4',
627 'ctrlSetFontHeightH5',
628 'ctrlSetFontHeightH6',
629 'ctrlSetFontHeightSecondary',
632 'ctrlSetFontSecondary',
633 'ctrlSetForegroundColor',
635 'ctrlSetModelDirAndUp',
637 'ctrlSetMousePosition',
638 'ctrlSetPixelPrecision',
645 'ctrlSetScrollValues',
647 'ctrlSetStructuredText',
650 'ctrlSetTextColorSecondary',
651 'ctrlSetTextSecondary',
652 'ctrlSetTextSelection',
654 'ctrlSetTooltipColorBox',
655 'ctrlSetTooltipColorShade',
656 'ctrlSetTooltipColorText',
657 'ctrlSetTooltipMaxWidth',
659 'ctrlSetURLOverlayMode',
673 'ctrlURLOverlayMode',
679 'ctSetHeaderTemplate',
686 'curatorCameraAreaCeiling',
688 'curatorEditableObjects',
689 'curatorEditingArea',
690 'curatorEditingAreaType',
693 'curatorRegisteredObjects',
695 'curatorWaypointCost',
696 'current3DENOperation',
700 'currentMagazineDetail',
701 'currentMagazineDetailTurret',
702 'currentMagazineTurret',
713 'currentWeaponTurret',
719 'customWaypointPosition',
734 'delete3DENEntities',
738 'deleteEditorObject',
740 'deleteGroupWhenEmpty',
755 'diag_activeMissionFSMs',
756 'diag_activeScripts',
757 'diag_activeSQFScripts',
758 'diag_activeSQSScripts',
759 'diag_allMissionEventHandlers',
761 'diag_captureFrameToFile',
762 'diag_captureSlowFrame',
763 'diag_codePerformance',
766 'diag_dumpCalltraceToLog',
767 'diag_dumpScriptAssembly',
768 'diag_dumpTerrainSynth',
769 'diag_dynamicSimulationEnd',
773 'diag_exportTerrainSVG',
777 'diag_getTerrainSegmentOffset',
783 'diag_mergeConfigFile',
784 'diag_recordTurretLimits',
793 'diarySubjectExists',
798 'difficultyEnabledRTD',
801 'directionStabilizationEnabled',
805 'disableCollisionWith',
806 'disableConversation',
807 'disableDebriefingStats',
808 'disableMapIndicators',
809 'disableNVGEquipment',
810 'disableRemoteSensors',
811 'disableSerialization',
812 'disableTIEquipment',
813 'disableUAVConnectability',
815 'displayAddEventHandler',
819 'displayRemoveAllEventHandlers',
820 'displayRemoveEventHandler',
821 'displaySetEventHandler',
828 'distributionRegion',
855 'dynamicSimulationDistance',
856 'dynamicSimulationDistanceCoef',
857 'dynamicSimulationEnabled',
858 'dynamicSimulationSystemEnabled',
860 'edit3DENMissionAttributes',
862 'editorSetEventHandler',
863 'effectiveCommander',
868 'enableAimPrecision',
870 'enableAudioFeature',
871 'enableAutoStartUpRTD',
876 'enableCollisionWith',
878 'enableDebriefingStats',
880 'enableDirectionStabilization',
881 'enableDynamicSimulation',
882 'enableDynamicSimulationSystem',
884 'enableEngineArtillery',
888 'enableInfoPanelComponent',
891 'enablePersonTurret',
895 'enableSatNormalOnDetail',
899 'enableSimulationGlobal',
901 'enableStressDamage',
904 'enableUAVConnectability',
905 'enableUAVWaypoints',
906 'enableVehicleCargo',
907 'enableVehicleSensor',
908 'enableWeaponDisassembly',
917 'environmentEnabled',
920 'estimatedEndServerTime',
922 'evalObjectArgument',
930 'expectedDestination',
943 'fillWeaponsFromPool',
950 'findEmptyPositionReady',
959 'flagAnimationPhase',
973 'forceAtPositionRTD',
974 'forceCadetDifficulty',
986 'forceWeatherChange',
988 'forEachMemberAgent',
993 'formationDirection',
1006 'gearSlotAmmoCount',
1010 'get3DENActionState',
1013 'get3DENConnections',
1017 'get3DENIconsVisible',
1018 'get3DENLayerEntities',
1019 'get3DENLinesVisible',
1020 'get3DENMissionAttribute',
1024 'getAllEnv3DSoundControllers',
1025 'getAllEnvSoundControllers',
1026 'getAllHitPointsDamage',
1029 'getAllSoundControllers',
1032 'getAnimAimPrecision',
1036 'getArtilleryComputerSettings',
1039 'getAssignedCuratorLogic',
1040 'getAssignedCuratorUnit',
1042 'getAudioOptionVolumes',
1044 'getBleedingRemaining',
1046 'getCalculatePlayerVisibilityByFriendly',
1047 'getCameraViewDirection',
1051 'getClientStateNumber',
1052 'getCompatiblePylonMagazines',
1054 'getConnectedUAVUnit',
1055 'getContainerMaxLoad',
1058 'getCursorObjectParams',
1060 'getCustomSoundController',
1061 'getCustomSoundControllerCount',
1063 'getDebriefingText',
1068 'getDLCAssetsUsage',
1069 'getDLCAssetsUsageByName',
1074 'getEditorObjectScope',
1075 'getElevationOffset',
1076 'getEngineTargetRPMRTD',
1077 'getEnv3DSoundController',
1078 'getEnvSoundController',
1079 'getEventHandlerInfo',
1081 'getFieldManualStartPage',
1082 'getForcedFlagTexture',
1089 'getGroupIconParams',
1094 'getHitPointDamage',
1098 'getLoadedModsInfo',
1106 'getMissionConfigValue',
1108 'getMissionLayerEntities',
1113 'getMusicPlayedTime',
1115 'getObjectArgument',
1116 'getObjectChildren',
1120 'getObjectMaterials',
1123 'getObjectTextures',
1125 'getObjectViewDistance',
1129 'getOxygenRemaining',
1130 'getPersonUsedDLCs',
1131 'getPilotCameraDirection',
1132 'getPilotCameraPosition',
1133 'getPilotCameraRotation',
1134 'getPilotCameraTarget',
1135 'getPiPViewDistance',
1141 'getPlayerVoNVolume',
1150 'getPosWorldVisual',
1151 'getPylonMagazines',
1154 'getRemoteSensorsDisabled',
1161 'getShadowDistance',
1164 'getSoundController',
1165 'getSoundControllerResult',
1169 'getSteamFriendsServers',
1170 'getSubtitleOptions',
1174 'getTerrainHeightASL',
1181 'getTotalDLCUsageTime',
1184 'getTurretOpticsMode',
1185 'getUnitFreefallInfo',
1188 'getUnloadInCombat',
1197 'getWingsOrientationRTD',
1198 'getWingsPositionRTD',
1208 'groupIconSelectable',
1209 'groupIconsVisible',
1214 'groupSelectedUnits',
1230 'hcRemoveAllGroups',
1249 'HUDMovementLevels',
1257 'incapacitatedState',
1261 'infoPanelComponentEnabled',
1262 'infoPanelComponents',
1264 'inGameUISetEventHandler',
1271 'inRangeOfArtillery',
1273 'insertEditorObject',
1276 'is3DENMultiplayer',
1279 'isActionMenuVisible',
1281 'isAimPrecisionEnabled',
1282 'isAllowedCrewInImmobile',
1286 'isAutoStartUpEnabledRTD',
1293 'isCollisionLightOn',
1305 'isEqualTypeParams',
1306 'isFilePatchingEnabled',
1311 'isFormationLeader',
1314 'isGroupDeletedWhenEmpty',
1316 'isInRemainsCollector',
1317 'isInstructorFigureEnabled',
1325 'isMarkedForCollection',
1326 'isMissionProfileNamespaceLoaded',
1328 'isMultiplayerSolo',
1341 'isRemoteExecutedJIP',
1343 'isSensorTargetConfirmed',
1350 'isSteamOverlayEnabled',
1351 'isStreamFriendlyUIEnabled',
1352 'isStressDamageEnabled',
1356 'isTutHintsEnabled',
1363 'isVehicleSensorEnabled',
1369 'itemsWithMagazines',
1376 'kbAddDatabaseTargets',
1408 'lbSetPictureColor',
1409 'lbSetPictureColorDisabled',
1410 'lbSetPictureColorSelected',
1411 'lbSetPictureRight',
1412 'lbSetPictureRightColor',
1413 'lbSetPictureRightColorDisabled',
1414 'lbSetPictureRightColorSelected',
1416 'lbSetSelectColorRight',
1431 'leaderboardDeInit',
1432 'leaderboardGetRows',
1434 'leaderboardRequestRowsFriends',
1435 'leaderboardRequestRowsGlobal',
1436 'leaderboardRequestRowsGlobalAroundUser',
1437 'leaderboardsRequestUploadScore',
1438 'leaderboardsRequestUploadScoreKeepBest',
1442 'libraryDisclaimers',
1444 'lightAttachObject',
1445 'lightDetachObject',
1451 'lineIntersectsObjs',
1452 'lineIntersectsSurfaces',
1453 'lineIntersectsWith',
1457 'listRemoteTargets',
1458 'listVehicleSensors',
1470 'lnbGetColumnsPosition',
1479 'lnbSetPictureColor',
1480 'lnbSetPictureColorRight',
1481 'lnbSetPictureColorSelected',
1482 'lnbSetPictureColorSelectedRight',
1483 'lnbSetPictureRight',
1527 'logNetworkTerminate',
1532 'magazinesAllTurrets',
1534 'magazinesAmmoCargo',
1535 'magazinesAmmoFull',
1537 'magazinesDetailBackpack',
1538 'magazinesDetailUniform',
1539 'magazinesDetailVest',
1541 'magazineTurretAmmo',
1546 'mapCenterOnCamera',
1548 'markAsFinishedOnSteam',
1599 'missionConfigFile',
1600 'missionDifficulty',
1603 'missionNameSource',
1605 'missionProfileNamespace',
1610 'modelToWorldVisual',
1611 'modelToWorldVisualWorld',
1612 'modelToWorldWorld',
1639 'nearestLocationWithDubbing',
1643 'nearestTerrainObjects',
1654 'nextMenuItemIndex',
1655 'nextWeatherChange',
1658 'numberOfEnginesRTD',
1667 'onBriefingTeamSwitch',
1668 'onCommandModeChanged',
1672 'onGroupIconOverEnter',
1673 'onGroupIconOverLeave',
1674 'onHCGroupSelectionChanged',
1676 'onPlayerConnected',
1677 'onPlayerDisconnected',
1678 'onPreloadFinished',
1682 'openCuratorInterface',
1700 'periscopeElevation',
1705 'pixelGridNoUIScale',
1708 'playableSlotsNumber',
1713 'playerRespawnTime',
1721 'playScriptedMission',
1727 'positionCameraToWorld',
1732 'ppEffectCommitted',
1737 'ppEffectForceInNVG',
1745 'preprocessFileLineNumbers',
1747 'primaryWeaponItems',
1748 'primaryWeaponMagazine',
1755 'progressLoadingScreen',
1757 'progressSetPosition',
1759 'publicVariableClient',
1760 'publicVariableServer',
1765 'queryMagazinePool',
1769 'radioChannelCreate',
1771 'radioChannelRemove',
1772 'radioChannelSetCallSign',
1773 'radioChannelSetLabel',
1794 'remoteExecutedOwner',
1795 'remove3DENConnection',
1796 'remove3DENEventHandler',
1799 'removeAll3DENEventHandlers',
1801 'removeAllAssignedItems',
1802 'removeAllBinocularItems',
1803 'removeAllContainers',
1804 'removeAllCuratorAddons',
1805 'removeAllCuratorCameraAreas',
1806 'removeAllCuratorEditingAreas',
1807 'removeAllEventHandlers',
1808 'removeAllHandgunItems',
1810 'removeAllItemsWithMagazines',
1811 'removeAllMissionEventHandlers',
1812 'removeAllMPEventHandlers',
1813 'removeAllMusicEventHandlers',
1814 'removeAllOwnedMines',
1815 'removeAllPrimaryWeaponItems',
1816 'removeAllSecondaryWeaponItems',
1817 'removeAllUserActionEventHandlers',
1820 'removeBackpackGlobal',
1821 'removeBinocularItem',
1822 'removeCuratorAddons',
1823 'removeCuratorCameraArea',
1824 'removeCuratorEditableObjects',
1825 'removeCuratorEditingArea',
1826 'removeDiaryRecord',
1827 'removeDiarySubject',
1830 'removeEventHandler',
1831 'removeFromRemainsCollector',
1834 'removeHandgunItem',
1837 'removeItemFromBackpack',
1838 'removeItemFromUniform',
1839 'removeItemFromVest',
1842 'removeMagazineGlobal',
1844 'removeMagazinesTurret',
1845 'removeMagazineTurret',
1847 'removeMissionEventHandler',
1848 'removeMPEventHandler',
1849 'removeMusicEventHandler',
1851 'removePrimaryWeaponItem',
1852 'removeSecondaryWeaponItem',
1854 'removeSwitchableUnit',
1857 'removeUserActionEventHandler',
1860 'removeWeaponAttachmentCargo',
1861 'removeWeaponCargo',
1862 'removeWeaponGlobal',
1863 'removeWeaponTurret',
1864 'reportRemoteTarget',
1867 'resetSubgroupDirection',
1871 'restartEditorCamera',
1879 'ropeAttachedObjects',
1881 'ropeAttachEnabled',
1904 'save3DENInventory',
1908 'saveMissionProfileNamespace',
1910 'saveProfileNamespace',
1926 'secondaryWeaponItems',
1927 'secondaryWeaponMagazine',
1930 'selectDiarySubject',
1931 'selectedEditorObjects',
1932 'selectEditorObject',
1934 'selectionPosition',
1935 'selectionVectorDirAndUp',
1942 'selectRandomWeighted',
1944 'selectWeaponTurret',
1946 'sendSimpleCommand',
1952 'serverCommandAvailable',
1953 'serverCommandExecutable',
1959 'set3DENAttributes',
1961 'set3DENIconsVisible',
1963 'set3DENLinesVisible',
1965 'set3DENMissionAttribute',
1966 'set3DENMissionAttributes',
1967 'set3DENModelsVisible',
1968 'set3DENObjectType',
1971 'setActualCollectiveRTD',
1972 'setAirplaneThrottle',
1984 'setBehaviourStrong',
1985 'setBleedingRemaining',
1987 'setCameraInterest',
1988 'setCamShakeDefParams',
1989 'setCamShakeParams',
1993 'setCollisionLight',
1994 'setCombatBehaviour',
1996 'setCompassOscillation',
1997 'setConvoySeparation',
1999 'setCuratorCameraAreaCeiling',
2001 'setCuratorEditingAreaType',
2002 'setCuratorWaypointCost',
2003 'setCurrentChannel',
2005 'setCurrentWaypoint',
2007 'SetCustomMissionData',
2008 'setCustomSoundController',
2009 'setCustomWeightRTD',
2013 'setDebriefingText',
2016 'setDetailMapBlendPars',
2017 'setDiaryRecordText',
2018 'setDiarySubjectPicture',
2024 'setDynamicSimulationDistance',
2025 'setDynamicSimulationDistanceCoef',
2027 'setEditorObjectScope',
2028 'setEffectCondition',
2029 'setEffectiveCommander',
2035 'setFlagAnimationPhase',
2040 'setForceGeneratorRTD',
2050 'setGroupIconParams',
2051 'setGroupIconsSelectable',
2052 'setGroupIconsVisible',
2060 'setHitPointDamage',
2061 'setHorizonParallaxCoef',
2062 'setHUDMovementLevels',
2069 'setLightAttenuation',
2070 'setLightBrightness',
2074 'setLightFlareMaxDistance',
2075 'setLightFlareSize',
2076 'setLightIntensity',
2080 'setLightVolumeShape',
2081 'setLocalWindParams',
2082 'setMagazineTurretAmmo',
2084 'setMarkerAlphaLocal',
2086 'setMarkerBrushLocal',
2088 'setMarkerColorLocal',
2090 'setMarkerDirLocal',
2091 'setMarkerPolyline',
2092 'setMarkerPolylineLocal',
2094 'setMarkerPosLocal',
2096 'setMarkerShadowLocal',
2098 'setMarkerShapeLocal',
2100 'setMarkerSizeLocal',
2102 'setMarkerTextLocal',
2104 'setMarkerTypeLocal',
2109 'setMissileTargetPos',
2112 'setMusicEventHandler',
2115 'setObjectArguments',
2116 'setObjectMaterial',
2117 'setObjectMaterialGlobal',
2121 'setObjectTextureGlobal',
2122 'setObjectViewDistance',
2126 'setOxygenRemaining',
2127 'setParticleCircle',
2130 'setParticleParams',
2131 'setParticleRandom',
2132 'setPilotCameraDirection',
2133 'setPilotCameraRotation',
2134 'setPilotCameraTarget',
2137 'setPiPViewDistance',
2141 'setPlayerRespawnTime',
2142 'setPlayerVoNVolume',
2151 'setPylonsPriority',
2160 'setShadowDistance',
2163 'setSimpleTaskAlwaysVisible',
2164 'setSimpleTaskCustomData',
2165 'setSimpleTaskDescription',
2166 'setSimpleTaskDestination',
2167 'setSimpleTaskTarget',
2168 'setSimpleTaskType',
2169 'setSimulWeatherLayers',
2183 'setTaskMarkerOffset',
2189 'setTimeMultiplier',
2193 'setTrafficDensity',
2194 'setTrafficDistance',
2197 'setTriggerActivation',
2199 'setTriggerInterval',
2200 'setTriggerStatements',
2202 'setTriggerTimeout',
2205 'setTurretOpticsMode',
2209 'setUnitCombatMode',
2210 'setUnitFreefallHeight',
2215 'setUnitRecoilCoefficient',
2217 'setUnloadInCombat',
2218 'setUserActionText',
2223 'setVectorDirAndUp',
2226 'setVehicleAmmoDef',
2231 'setVehiclePosition',
2233 'setVehicleReceiveRemoteTargets',
2234 'setVehicleReportOwnPosition',
2235 'setVehicleReportRemoteTargets',
2237 'setVehicleVarName',
2239 'setVelocityModelSpace',
2240 'setVelocityTransformation',
2242 'setVisibleIfTreeCollapsed',
2245 'setWaypointBehaviour',
2246 'setWaypointCombatMode',
2247 'setWaypointCompletionRadius',
2248 'setWaypointDescription',
2249 'setWaypointForceBehaviour',
2250 'setWaypointFormation',
2251 'setWaypointHousePosition',
2252 'setWaypointLoiterAltitude',
2253 'setWaypointLoiterRadius',
2254 'setWaypointLoiterType',
2256 'setWaypointPosition',
2257 'setWaypointScript',
2259 'setWaypointStatements',
2260 'setWaypointTimeout',
2262 'setWaypointVisible',
2263 'setWeaponReloadingTime',
2269 'setWingForceScaleRTD',
2274 'showCommandingMenu',
2276 'showCuratorCompass',
2281 'shownArtilleryComputer',
2284 'shownCuratorCompass',
2285 'showNewEditorObject',
2309 'simulationEnabled',
2310 'simulCloudDensity',
2311 'simulCloudOcclusion',
2323 'sliderSetPosition',
2327 'slingLoadAssistantShown',
2341 'startLoadingScreen',
2360 'synchronizedObjects',
2361 'synchronizedTriggers',
2362 'synchronizedWaypoints',
2363 'synchronizeObjectsAdd',
2364 'synchronizeObjectsRemove',
2365 'synchronizeTrigger',
2366 'synchronizeWaypoint',
2376 'taskAlwaysVisible',
2393 'teamSwitchEnabled',
2397 'terrainIntersectASL',
2398 'terrainIntersectAtASL',
2418 'triggerActivation',
2421 'triggerAttachedVehicle',
2422 'triggerAttachObject',
2423 'triggerAttachVehicle',
2424 'triggerDynamicSimulation',
2426 'triggerStatements',
2429 'triggerTimeoutCurrent',
2453 'tvSetPictureColor',
2454 'tvSetPictureColorDisabled',
2455 'tvSetPictureColorSelected',
2456 'tvSetPictureRight',
2457 'tvSetPictureRightColor',
2458 'tvSetPictureRightColorDisabled',
2459 'tvSetPictureRightColorSelected',
2490 'unitAimPositionVisual',
2496 'unitRecoilCoefficient',
2501 'unlockAchievement',
2506 'useAIOperMapObstructionTest',
2507 'useAISteeringComponent',
2508 'useAudioTimeForMoves',
2509 'userInputDisabled',
2513 'vectorCrossProduct',
2518 'vectorDistanceSqr',
2521 'vectorLinearConversion',
2523 'vectorMagnitudeSqr',
2524 'vectorModelToWorld',
2525 'vectorModelToWorldVisual',
2530 'vectorWorldToModel',
2531 'vectorWorldToModelVisual',
2533 'vehicleCargoEnabled',
2537 'vehicleReceiveRemoteTargets',
2538 'vehicleReportOwnPosition',
2539 'vehicleReportRemoteTargets',
2543 'velocityModelSpace',
2554 'visiblePositionASL',
2555 'visibleScoretable',
2558 'waypointAttachedObject',
2559 'waypointAttachedVehicle',
2560 'waypointAttachObject',
2561 'waypointAttachVehicle',
2562 'waypointBehaviour',
2563 'waypointCombatMode',
2564 'waypointCompletionRadius',
2565 'waypointDescription',
2566 'waypointForceBehaviour',
2567 'waypointFormation',
2568 'waypointHousePosition',
2569 'waypointLoiterAltitude',
2570 'waypointLoiterRadius',
2571 'waypointLoiterType',
2576 'waypointsEnabledUAV',
2579 'waypointStatements',
2581 'waypointTimeoutCurrent',
2584 'weaponAccessories',
2585 'weaponAccessoriesCargo',
2590 'weaponReloadingTime',
2594 'weaponsItemsCargo',
2607 'worldToModelVisual',
2611 // list of keywords from:
2612 // https://community.bistudio.com/wiki/PreProcessor_Commands
2613 const PREPROCESSOR
= {
2615 begin: /#\s*[a-z]+\b/,
2617 keywords: 'define undef ifdef ifndef else endif include if',
2623 hljs
.inherit(STRINGS
, { className: 'string' }),
2629 hljs
.C_LINE_COMMENT_MODE
,
2630 hljs
.C_BLOCK_COMMENT_MODE
2636 case_insensitive: true,
2643 hljs
.C_LINE_COMMENT_MODE
,
2644 hljs
.C_BLOCK_COMMENT_MODE
,
2652 //$ is only valid when used with Hex numbers (e.g. $FF)
2655 /\?/, //There's no ? in SQF
2656 /@/, //There's no @ in SQF
2657 // Brute-force-fixing the build error. See https://github.com/highlightjs/highlight.js/pull/3193#issuecomment-843088729
2659 // . is only used in numbers
2671 hljs
.registerLanguage('sqf', hljsGrammar
);