]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/sqf.js
1 /*! `sqf` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar
= (function () {
7 Author: Søren Enevoldsen <senevoldsen90@gmail.com>
8 Contributors: Marvin Saignat <contact@zgmrvn.com>, Dedmen Miller <dedmen@dedmen.de>, Leopard20
9 Description: Scripting language for the Arma game series
10 Website: https://community.bistudio.com/wiki/SQF_syntax
12 Last update: 07.01.2023, Arma 3 v2.11
16 ////////////////////////////////////////////////////////////////////////////////////////////
20 This script can be used to dump all commands to the clipboard.
21 Make sure you're using the Diag EXE to dump all of the commands.
24 Simply replace the _KEYWORDS and _LITERAL arrays with the one from this sqf.js file.
25 Execute the script from the debug console.
26 All commands will be copied to the clipboard.
27 ////////////////////////////////////////////////////////////////////////////////////////////
28 _KEYWORDS = ['if']; //Array of all KEYWORDS
29 _LITERALS = ['west']; //Array of all LITERALS
30 _allCommands = createHashMap;
32 _type = _x select [0,1];
33 if (_type != "t") then {
34 _command_lowercase = ((_x select [2]) splitString " ")#(((["n", "u", "b"] find _type) - 1) max 0);
35 _command_uppercase = supportInfo ("i:" + _command_lowercase) # 0 # 2;
36 _allCommands set [_command_lowercase, _command_uppercase];
38 } forEach supportInfo "";
39 _allCommands = _allCommands toArray false;
40 _allCommands sort true; //sort by lowercase
41 _allCommands = ((_allCommands apply {_x#1}) -_KEYWORDS)-_LITERALS; //remove KEYWORDS and LITERALS
42 copyToClipboard (str (_allCommands select {_x regexMatch "\w+"}) regexReplace ["""", "'"] regexReplace [",", ",\n"]);
46 // In SQF, a local variable starts with _
48 className: 'variable',
49 begin: /\b_+[a-zA-Z]\w*/
52 // In SQF, a function should fit myTag_fnc_myFunction pattern
53 // https://community.bistudio.com/wiki/Functions_Library_(Arma_3)#Adding_a_Function
56 begin: /[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/
59 // In SQF strings, quotes matching the start are escaped by adding a consecutive.
60 // Example of single escaped quotes: " "" " and ' '' '.
160 'actionKeysNamesArray',
166 'activeTitleEffectParams',
168 'add3DENEventHandler',
173 'addBackpackCargoGlobal',
178 'addCuratorCameraArea',
179 'addCuratorEditableObjects',
180 'addCuratorEditingArea',
185 'addForceGeneratorRTD',
192 'addItemCargoGlobal',
199 'addMagazineAmmoCargo',
201 'addMagazineCargoGlobal',
208 'addMissionEventHandler',
210 'addMusicEventHandler',
214 'addPrimaryWeaponItem',
215 'addPublicVariableEventHandler',
220 'addSecondaryWeaponItem',
223 'addToRemainsCollector',
226 'addUserActionEventHandler',
232 'addWeaponCargoGlobal',
237 'addWeaponWithAttachmentsCargo',
238 'addWeaponWithAttachmentsCargoGlobal',
245 'airDensityCurveRTD',
252 'allActiveTitleEffects',
263 'allEnv3DSoundSources',
271 'allowCrewInImmobile',
272 'allowCuratorLogicIgnoreAreas',
276 'allowFileOperations',
289 'ambientTemperature',
300 'animationSourcePhase',
312 'assignAsCargoIndex',
327 'assignedVehicleRole',
351 'bezierInterpolation',
362 'buldozer_EnableRoadDiag',
363 'buldozer_IsEnabledRoadDiag',
364 'buldozer_LoadNewRoads',
365 'buldozer_reloadOperMap',
370 'calculatePlayerVisibilityByFriendly',
377 'camConstuctionSetParams',
381 'cameraEffectEnableHUD',
385 'campaignConfigFile',
393 'camPrepareFovRange',
409 'canAddItemToBackpack',
410 'canAddItemToUniform',
412 'cancelSimpleTaskDestination',
419 'canTriggerDynamicSimulation',
432 'clear3DENAttribute',
433 'clear3DENInventory',
434 'clearAllItemsFromBackpack',
435 'clearBackpackCargo',
436 'clearBackpackCargoGlobal',
440 'clearItemCargoGlobal',
442 'clearMagazineCargo',
443 'clearMagazineCargoGlobal',
448 'clearWeaponCargoGlobal',
454 'collapseObjectTree',
455 'collect3DENHistory',
457 'collisionDisabledWith',
460 'commandArtilleryFire',
471 'commandSuppressiveFire',
477 'compatibleMagazines',
489 'configSourceAddonList',
491 'configSourceModList',
492 'confirmSensorTarget',
493 'connectTerminalToUAV',
496 'conversationDisabled',
507 'create3DENComposition',
514 'createDiarySubject',
518 'createGuardedPoint',
520 'createHashMapFromArray',
526 'createMissionDisplay',
527 'createMPCampaignDisplay',
528 'createSimpleObject',
538 'createVehicleLocal',
552 'ctrlAddEventHandler',
555 'ctrlAnimationPhaseModel',
557 'ctrlAutoScrollDelay',
558 'ctrlAutoScrollRewind',
559 'ctrlAutoScrollSpeed',
560 'ctrlBackgroundColor',
571 'ctrlForegroundColor',
583 'ctrlMapScreenToWorld',
584 'ctrlMapSetPosition',
585 'ctrlMapWorldToScreen',
591 'ctrlParentControlsGroup',
593 'ctrlRemoveAllEventHandlers',
594 'ctrlRemoveEventHandler',
597 'ctrlSetActiveColor',
599 'ctrlSetAutoScrollDelay',
600 'ctrlSetAutoScrollRewind',
601 'ctrlSetAutoScrollSpeed',
602 'ctrlSetBackgroundColor',
604 'ctrlSetDisabledColor',
605 'ctrlSetEventHandler',
622 'ctrlSetFontHeightH1',
623 'ctrlSetFontHeightH2',
624 'ctrlSetFontHeightH3',
625 'ctrlSetFontHeightH4',
626 'ctrlSetFontHeightH5',
627 'ctrlSetFontHeightH6',
628 'ctrlSetFontHeightSecondary',
631 'ctrlSetFontSecondary',
632 'ctrlSetForegroundColor',
634 'ctrlSetModelDirAndUp',
636 'ctrlSetMousePosition',
637 'ctrlSetPixelPrecision',
644 'ctrlSetScrollValues',
646 'ctrlSetStructuredText',
649 'ctrlSetTextColorSecondary',
650 'ctrlSetTextSecondary',
651 'ctrlSetTextSelection',
653 'ctrlSetTooltipColorBox',
654 'ctrlSetTooltipColorShade',
655 'ctrlSetTooltipColorText',
656 'ctrlSetTooltipMaxWidth',
658 'ctrlSetURLOverlayMode',
672 'ctrlURLOverlayMode',
678 'ctSetHeaderTemplate',
685 'curatorCameraAreaCeiling',
687 'curatorEditableObjects',
688 'curatorEditingArea',
689 'curatorEditingAreaType',
692 'curatorRegisteredObjects',
694 'curatorWaypointCost',
695 'current3DENOperation',
699 'currentMagazineDetail',
700 'currentMagazineDetailTurret',
701 'currentMagazineTurret',
712 'currentWeaponTurret',
718 'customWaypointPosition',
733 'delete3DENEntities',
737 'deleteEditorObject',
739 'deleteGroupWhenEmpty',
754 'diag_activeMissionFSMs',
755 'diag_activeScripts',
756 'diag_activeSQFScripts',
757 'diag_activeSQSScripts',
758 'diag_allMissionEventHandlers',
760 'diag_captureFrameToFile',
761 'diag_captureSlowFrame',
762 'diag_codePerformance',
765 'diag_dumpCalltraceToLog',
766 'diag_dumpScriptAssembly',
767 'diag_dumpTerrainSynth',
768 'diag_dynamicSimulationEnd',
772 'diag_exportTerrainSVG',
776 'diag_getTerrainSegmentOffset',
782 'diag_mergeConfigFile',
783 'diag_recordTurretLimits',
792 'diarySubjectExists',
797 'difficultyEnabledRTD',
800 'directionStabilizationEnabled',
804 'disableCollisionWith',
805 'disableConversation',
806 'disableDebriefingStats',
807 'disableMapIndicators',
808 'disableNVGEquipment',
809 'disableRemoteSensors',
810 'disableSerialization',
811 'disableTIEquipment',
812 'disableUAVConnectability',
814 'displayAddEventHandler',
818 'displayRemoveAllEventHandlers',
819 'displayRemoveEventHandler',
820 'displaySetEventHandler',
827 'distributionRegion',
854 'dynamicSimulationDistance',
855 'dynamicSimulationDistanceCoef',
856 'dynamicSimulationEnabled',
857 'dynamicSimulationSystemEnabled',
859 'edit3DENMissionAttributes',
861 'editorSetEventHandler',
862 'effectiveCommander',
867 'enableAimPrecision',
869 'enableAudioFeature',
870 'enableAutoStartUpRTD',
875 'enableCollisionWith',
877 'enableDebriefingStats',
879 'enableDirectionStabilization',
880 'enableDynamicSimulation',
881 'enableDynamicSimulationSystem',
883 'enableEngineArtillery',
887 'enableInfoPanelComponent',
890 'enablePersonTurret',
894 'enableSatNormalOnDetail',
898 'enableSimulationGlobal',
900 'enableStressDamage',
903 'enableUAVConnectability',
904 'enableUAVWaypoints',
905 'enableVehicleCargo',
906 'enableVehicleSensor',
907 'enableWeaponDisassembly',
916 'environmentEnabled',
919 'estimatedEndServerTime',
921 'evalObjectArgument',
929 'expectedDestination',
942 'fillWeaponsFromPool',
949 'findEmptyPositionReady',
958 'flagAnimationPhase',
972 'forceAtPositionRTD',
973 'forceCadetDifficulty',
985 'forceWeatherChange',
987 'forEachMemberAgent',
992 'formationDirection',
1005 'gearSlotAmmoCount',
1009 'get3DENActionState',
1012 'get3DENConnections',
1016 'get3DENIconsVisible',
1017 'get3DENLayerEntities',
1018 'get3DENLinesVisible',
1019 'get3DENMissionAttribute',
1023 'getAllEnv3DSoundControllers',
1024 'getAllEnvSoundControllers',
1025 'getAllHitPointsDamage',
1028 'getAllSoundControllers',
1031 'getAnimAimPrecision',
1035 'getArtilleryComputerSettings',
1038 'getAssignedCuratorLogic',
1039 'getAssignedCuratorUnit',
1041 'getAudioOptionVolumes',
1043 'getBleedingRemaining',
1045 'getCalculatePlayerVisibilityByFriendly',
1046 'getCameraViewDirection',
1050 'getClientStateNumber',
1051 'getCompatiblePylonMagazines',
1053 'getConnectedUAVUnit',
1054 'getContainerMaxLoad',
1057 'getCursorObjectParams',
1059 'getCustomSoundController',
1060 'getCustomSoundControllerCount',
1062 'getDebriefingText',
1067 'getDLCAssetsUsage',
1068 'getDLCAssetsUsageByName',
1073 'getEditorObjectScope',
1074 'getElevationOffset',
1075 'getEngineTargetRPMRTD',
1076 'getEnv3DSoundController',
1077 'getEnvSoundController',
1078 'getEventHandlerInfo',
1080 'getFieldManualStartPage',
1081 'getForcedFlagTexture',
1088 'getGroupIconParams',
1093 'getHitPointDamage',
1097 'getLoadedModsInfo',
1105 'getMissionConfigValue',
1107 'getMissionLayerEntities',
1112 'getMusicPlayedTime',
1114 'getObjectArgument',
1115 'getObjectChildren',
1119 'getObjectMaterials',
1122 'getObjectTextures',
1124 'getObjectViewDistance',
1128 'getOxygenRemaining',
1129 'getPersonUsedDLCs',
1130 'getPilotCameraDirection',
1131 'getPilotCameraPosition',
1132 'getPilotCameraRotation',
1133 'getPilotCameraTarget',
1134 'getPiPViewDistance',
1140 'getPlayerVoNVolume',
1149 'getPosWorldVisual',
1150 'getPylonMagazines',
1153 'getRemoteSensorsDisabled',
1160 'getShadowDistance',
1163 'getSoundController',
1164 'getSoundControllerResult',
1168 'getSteamFriendsServers',
1169 'getSubtitleOptions',
1173 'getTerrainHeightASL',
1180 'getTotalDLCUsageTime',
1183 'getTurretOpticsMode',
1184 'getUnitFreefallInfo',
1187 'getUnloadInCombat',
1196 'getWingsOrientationRTD',
1197 'getWingsPositionRTD',
1207 'groupIconSelectable',
1208 'groupIconsVisible',
1213 'groupSelectedUnits',
1229 'hcRemoveAllGroups',
1248 'HUDMovementLevels',
1256 'incapacitatedState',
1260 'infoPanelComponentEnabled',
1261 'infoPanelComponents',
1263 'inGameUISetEventHandler',
1270 'inRangeOfArtillery',
1272 'insertEditorObject',
1275 'is3DENMultiplayer',
1278 'isActionMenuVisible',
1280 'isAimPrecisionEnabled',
1281 'isAllowedCrewInImmobile',
1285 'isAutoStartUpEnabledRTD',
1292 'isCollisionLightOn',
1304 'isEqualTypeParams',
1305 'isFilePatchingEnabled',
1310 'isFormationLeader',
1313 'isGroupDeletedWhenEmpty',
1315 'isInRemainsCollector',
1316 'isInstructorFigureEnabled',
1324 'isMarkedForCollection',
1325 'isMissionProfileNamespaceLoaded',
1327 'isMultiplayerSolo',
1340 'isRemoteExecutedJIP',
1342 'isSensorTargetConfirmed',
1349 'isSteamOverlayEnabled',
1350 'isStreamFriendlyUIEnabled',
1351 'isStressDamageEnabled',
1355 'isTutHintsEnabled',
1362 'isVehicleSensorEnabled',
1368 'itemsWithMagazines',
1375 'kbAddDatabaseTargets',
1407 'lbSetPictureColor',
1408 'lbSetPictureColorDisabled',
1409 'lbSetPictureColorSelected',
1410 'lbSetPictureRight',
1411 'lbSetPictureRightColor',
1412 'lbSetPictureRightColorDisabled',
1413 'lbSetPictureRightColorSelected',
1415 'lbSetSelectColorRight',
1430 'leaderboardDeInit',
1431 'leaderboardGetRows',
1433 'leaderboardRequestRowsFriends',
1434 'leaderboardRequestRowsGlobal',
1435 'leaderboardRequestRowsGlobalAroundUser',
1436 'leaderboardsRequestUploadScore',
1437 'leaderboardsRequestUploadScoreKeepBest',
1441 'libraryDisclaimers',
1443 'lightAttachObject',
1444 'lightDetachObject',
1450 'lineIntersectsObjs',
1451 'lineIntersectsSurfaces',
1452 'lineIntersectsWith',
1456 'listRemoteTargets',
1457 'listVehicleSensors',
1469 'lnbGetColumnsPosition',
1478 'lnbSetPictureColor',
1479 'lnbSetPictureColorRight',
1480 'lnbSetPictureColorSelected',
1481 'lnbSetPictureColorSelectedRight',
1482 'lnbSetPictureRight',
1526 'logNetworkTerminate',
1531 'magazinesAllTurrets',
1533 'magazinesAmmoCargo',
1534 'magazinesAmmoFull',
1536 'magazinesDetailBackpack',
1537 'magazinesDetailUniform',
1538 'magazinesDetailVest',
1540 'magazineTurretAmmo',
1545 'mapCenterOnCamera',
1547 'markAsFinishedOnSteam',
1598 'missionConfigFile',
1599 'missionDifficulty',
1602 'missionNameSource',
1604 'missionProfileNamespace',
1609 'modelToWorldVisual',
1610 'modelToWorldVisualWorld',
1611 'modelToWorldWorld',
1638 'nearestLocationWithDubbing',
1642 'nearestTerrainObjects',
1653 'nextMenuItemIndex',
1654 'nextWeatherChange',
1657 'numberOfEnginesRTD',
1666 'onBriefingTeamSwitch',
1667 'onCommandModeChanged',
1671 'onGroupIconOverEnter',
1672 'onGroupIconOverLeave',
1673 'onHCGroupSelectionChanged',
1675 'onPlayerConnected',
1676 'onPlayerDisconnected',
1677 'onPreloadFinished',
1681 'openCuratorInterface',
1699 'periscopeElevation',
1704 'pixelGridNoUIScale',
1707 'playableSlotsNumber',
1712 'playerRespawnTime',
1720 'playScriptedMission',
1726 'positionCameraToWorld',
1731 'ppEffectCommitted',
1736 'ppEffectForceInNVG',
1744 'preprocessFileLineNumbers',
1746 'primaryWeaponItems',
1747 'primaryWeaponMagazine',
1754 'progressLoadingScreen',
1756 'progressSetPosition',
1758 'publicVariableClient',
1759 'publicVariableServer',
1764 'queryMagazinePool',
1768 'radioChannelCreate',
1770 'radioChannelRemove',
1771 'radioChannelSetCallSign',
1772 'radioChannelSetLabel',
1793 'remoteExecutedOwner',
1794 'remove3DENConnection',
1795 'remove3DENEventHandler',
1798 'removeAll3DENEventHandlers',
1800 'removeAllAssignedItems',
1801 'removeAllBinocularItems',
1802 'removeAllContainers',
1803 'removeAllCuratorAddons',
1804 'removeAllCuratorCameraAreas',
1805 'removeAllCuratorEditingAreas',
1806 'removeAllEventHandlers',
1807 'removeAllHandgunItems',
1809 'removeAllItemsWithMagazines',
1810 'removeAllMissionEventHandlers',
1811 'removeAllMPEventHandlers',
1812 'removeAllMusicEventHandlers',
1813 'removeAllOwnedMines',
1814 'removeAllPrimaryWeaponItems',
1815 'removeAllSecondaryWeaponItems',
1816 'removeAllUserActionEventHandlers',
1819 'removeBackpackGlobal',
1820 'removeBinocularItem',
1821 'removeCuratorAddons',
1822 'removeCuratorCameraArea',
1823 'removeCuratorEditableObjects',
1824 'removeCuratorEditingArea',
1825 'removeDiaryRecord',
1826 'removeDiarySubject',
1829 'removeEventHandler',
1830 'removeFromRemainsCollector',
1833 'removeHandgunItem',
1836 'removeItemFromBackpack',
1837 'removeItemFromUniform',
1838 'removeItemFromVest',
1841 'removeMagazineGlobal',
1843 'removeMagazinesTurret',
1844 'removeMagazineTurret',
1846 'removeMissionEventHandler',
1847 'removeMPEventHandler',
1848 'removeMusicEventHandler',
1850 'removePrimaryWeaponItem',
1851 'removeSecondaryWeaponItem',
1853 'removeSwitchableUnit',
1856 'removeUserActionEventHandler',
1859 'removeWeaponAttachmentCargo',
1860 'removeWeaponCargo',
1861 'removeWeaponGlobal',
1862 'removeWeaponTurret',
1863 'reportRemoteTarget',
1866 'resetSubgroupDirection',
1870 'restartEditorCamera',
1878 'ropeAttachedObjects',
1880 'ropeAttachEnabled',
1903 'save3DENInventory',
1907 'saveMissionProfileNamespace',
1909 'saveProfileNamespace',
1925 'secondaryWeaponItems',
1926 'secondaryWeaponMagazine',
1929 'selectDiarySubject',
1930 'selectedEditorObjects',
1931 'selectEditorObject',
1933 'selectionPosition',
1934 'selectionVectorDirAndUp',
1941 'selectRandomWeighted',
1943 'selectWeaponTurret',
1945 'sendSimpleCommand',
1951 'serverCommandAvailable',
1952 'serverCommandExecutable',
1958 'set3DENAttributes',
1960 'set3DENIconsVisible',
1962 'set3DENLinesVisible',
1964 'set3DENMissionAttribute',
1965 'set3DENMissionAttributes',
1966 'set3DENModelsVisible',
1967 'set3DENObjectType',
1970 'setActualCollectiveRTD',
1971 'setAirplaneThrottle',
1983 'setBehaviourStrong',
1984 'setBleedingRemaining',
1986 'setCameraInterest',
1987 'setCamShakeDefParams',
1988 'setCamShakeParams',
1992 'setCollisionLight',
1993 'setCombatBehaviour',
1995 'setCompassOscillation',
1996 'setConvoySeparation',
1998 'setCuratorCameraAreaCeiling',
2000 'setCuratorEditingAreaType',
2001 'setCuratorWaypointCost',
2002 'setCurrentChannel',
2004 'setCurrentWaypoint',
2006 'SetCustomMissionData',
2007 'setCustomSoundController',
2008 'setCustomWeightRTD',
2012 'setDebriefingText',
2015 'setDetailMapBlendPars',
2016 'setDiaryRecordText',
2017 'setDiarySubjectPicture',
2023 'setDynamicSimulationDistance',
2024 'setDynamicSimulationDistanceCoef',
2026 'setEditorObjectScope',
2027 'setEffectCondition',
2028 'setEffectiveCommander',
2034 'setFlagAnimationPhase',
2039 'setForceGeneratorRTD',
2049 'setGroupIconParams',
2050 'setGroupIconsSelectable',
2051 'setGroupIconsVisible',
2059 'setHitPointDamage',
2060 'setHorizonParallaxCoef',
2061 'setHUDMovementLevels',
2068 'setLightAttenuation',
2069 'setLightBrightness',
2073 'setLightFlareMaxDistance',
2074 'setLightFlareSize',
2075 'setLightIntensity',
2079 'setLightVolumeShape',
2080 'setLocalWindParams',
2081 'setMagazineTurretAmmo',
2083 'setMarkerAlphaLocal',
2085 'setMarkerBrushLocal',
2087 'setMarkerColorLocal',
2089 'setMarkerDirLocal',
2090 'setMarkerPolyline',
2091 'setMarkerPolylineLocal',
2093 'setMarkerPosLocal',
2095 'setMarkerShadowLocal',
2097 'setMarkerShapeLocal',
2099 'setMarkerSizeLocal',
2101 'setMarkerTextLocal',
2103 'setMarkerTypeLocal',
2108 'setMissileTargetPos',
2111 'setMusicEventHandler',
2114 'setObjectArguments',
2115 'setObjectMaterial',
2116 'setObjectMaterialGlobal',
2120 'setObjectTextureGlobal',
2121 'setObjectViewDistance',
2125 'setOxygenRemaining',
2126 'setParticleCircle',
2129 'setParticleParams',
2130 'setParticleRandom',
2131 'setPilotCameraDirection',
2132 'setPilotCameraRotation',
2133 'setPilotCameraTarget',
2136 'setPiPViewDistance',
2140 'setPlayerRespawnTime',
2141 'setPlayerVoNVolume',
2150 'setPylonsPriority',
2159 'setShadowDistance',
2162 'setSimpleTaskAlwaysVisible',
2163 'setSimpleTaskCustomData',
2164 'setSimpleTaskDescription',
2165 'setSimpleTaskDestination',
2166 'setSimpleTaskTarget',
2167 'setSimpleTaskType',
2168 'setSimulWeatherLayers',
2182 'setTaskMarkerOffset',
2188 'setTimeMultiplier',
2192 'setTrafficDensity',
2193 'setTrafficDistance',
2196 'setTriggerActivation',
2198 'setTriggerInterval',
2199 'setTriggerStatements',
2201 'setTriggerTimeout',
2204 'setTurretOpticsMode',
2208 'setUnitCombatMode',
2209 'setUnitFreefallHeight',
2214 'setUnitRecoilCoefficient',
2216 'setUnloadInCombat',
2217 'setUserActionText',
2222 'setVectorDirAndUp',
2225 'setVehicleAmmoDef',
2230 'setVehiclePosition',
2232 'setVehicleReceiveRemoteTargets',
2233 'setVehicleReportOwnPosition',
2234 'setVehicleReportRemoteTargets',
2236 'setVehicleVarName',
2238 'setVelocityModelSpace',
2239 'setVelocityTransformation',
2241 'setVisibleIfTreeCollapsed',
2244 'setWaypointBehaviour',
2245 'setWaypointCombatMode',
2246 'setWaypointCompletionRadius',
2247 'setWaypointDescription',
2248 'setWaypointForceBehaviour',
2249 'setWaypointFormation',
2250 'setWaypointHousePosition',
2251 'setWaypointLoiterAltitude',
2252 'setWaypointLoiterRadius',
2253 'setWaypointLoiterType',
2255 'setWaypointPosition',
2256 'setWaypointScript',
2258 'setWaypointStatements',
2259 'setWaypointTimeout',
2261 'setWaypointVisible',
2262 'setWeaponReloadingTime',
2268 'setWingForceScaleRTD',
2273 'showCommandingMenu',
2275 'showCuratorCompass',
2280 'shownArtilleryComputer',
2283 'shownCuratorCompass',
2284 'showNewEditorObject',
2308 'simulationEnabled',
2309 'simulCloudDensity',
2310 'simulCloudOcclusion',
2322 'sliderSetPosition',
2326 'slingLoadAssistantShown',
2340 'startLoadingScreen',
2359 'synchronizedObjects',
2360 'synchronizedTriggers',
2361 'synchronizedWaypoints',
2362 'synchronizeObjectsAdd',
2363 'synchronizeObjectsRemove',
2364 'synchronizeTrigger',
2365 'synchronizeWaypoint',
2375 'taskAlwaysVisible',
2392 'teamSwitchEnabled',
2396 'terrainIntersectASL',
2397 'terrainIntersectAtASL',
2417 'triggerActivation',
2420 'triggerAttachedVehicle',
2421 'triggerAttachObject',
2422 'triggerAttachVehicle',
2423 'triggerDynamicSimulation',
2425 'triggerStatements',
2428 'triggerTimeoutCurrent',
2452 'tvSetPictureColor',
2453 'tvSetPictureColorDisabled',
2454 'tvSetPictureColorSelected',
2455 'tvSetPictureRight',
2456 'tvSetPictureRightColor',
2457 'tvSetPictureRightColorDisabled',
2458 'tvSetPictureRightColorSelected',
2489 'unitAimPositionVisual',
2495 'unitRecoilCoefficient',
2500 'unlockAchievement',
2505 'useAIOperMapObstructionTest',
2506 'useAISteeringComponent',
2507 'useAudioTimeForMoves',
2508 'userInputDisabled',
2512 'vectorCrossProduct',
2517 'vectorDistanceSqr',
2520 'vectorLinearConversion',
2522 'vectorMagnitudeSqr',
2523 'vectorModelToWorld',
2524 'vectorModelToWorldVisual',
2529 'vectorWorldToModel',
2530 'vectorWorldToModelVisual',
2532 'vehicleCargoEnabled',
2536 'vehicleReceiveRemoteTargets',
2537 'vehicleReportOwnPosition',
2538 'vehicleReportRemoteTargets',
2542 'velocityModelSpace',
2553 'visiblePositionASL',
2554 'visibleScoretable',
2557 'waypointAttachedObject',
2558 'waypointAttachedVehicle',
2559 'waypointAttachObject',
2560 'waypointAttachVehicle',
2561 'waypointBehaviour',
2562 'waypointCombatMode',
2563 'waypointCompletionRadius',
2564 'waypointDescription',
2565 'waypointForceBehaviour',
2566 'waypointFormation',
2567 'waypointHousePosition',
2568 'waypointLoiterAltitude',
2569 'waypointLoiterRadius',
2570 'waypointLoiterType',
2575 'waypointsEnabledUAV',
2578 'waypointStatements',
2580 'waypointTimeoutCurrent',
2583 'weaponAccessories',
2584 'weaponAccessoriesCargo',
2589 'weaponReloadingTime',
2593 'weaponsItemsCargo',
2606 'worldToModelVisual',
2610 // list of keywords from:
2611 // https://community.bistudio.com/wiki/PreProcessor_Commands
2612 const PREPROCESSOR
= {
2614 begin: /#\s*[a-z]+\b/,
2616 keywords: 'define undef ifdef ifndef else endif include if',
2622 hljs
.inherit(STRINGS
, { className: 'string' }),
2628 hljs
.C_LINE_COMMENT_MODE
,
2629 hljs
.C_BLOCK_COMMENT_MODE
2635 case_insensitive: true,
2642 hljs
.C_LINE_COMMENT_MODE
,
2643 hljs
.C_BLOCK_COMMENT_MODE
,
2651 //$ is only valid when used with Hex numbers (e.g. $FF)
2654 /\?/, //There's no ? in SQF
2655 /@/, //There's no @ in SQF
2656 // Brute-force-fixing the build error. See https://github.com/highlightjs/highlight.js/pull/3193#issuecomment-843088729
2658 // . is only used in numbers
2670 export default hljsGrammar
;