Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

highlight.js

Package Overview
Dependencies
Maintainers
4
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highlight.js - npm Package Compare versions

Comparing version 11.7.0 to 11.8.0

4

es/languages/bash.js

@@ -115,2 +115,3 @@ /*

"while",
"until",
"in",

@@ -121,3 +122,4 @@ "do",

"esac",
"function"
"function",
"select"
];

@@ -124,0 +126,0 @@

@@ -132,2 +132,3 @@ /*

"await",
"base",
"break",

@@ -162,3 +163,3 @@ "case",

"in",
"inferface",
"interface",
"is",

@@ -176,2 +177,3 @@ "late",

"return",
"sealed",
"set",

@@ -190,2 +192,3 @@ "show",

"void",
"when",
"while",

@@ -192,0 +195,0 @@ "with",

@@ -180,3 +180,14 @@ /*

// TODO: characters.
// Single characters.
{
scope: 'string',
begin: /'(?=\\?.')/,
end: /'/,
contains: [
{
scope: 'char.escape',
match: /\\./,
},
]
},
hljs.QUOTE_STRING_MODE,

@@ -183,0 +194,0 @@ NUMBER,

@@ -11,3 +11,3 @@ /*

const regex = hljs.regex;
const VERSION = 'HTTP/(2|1\\.[01])';
const VERSION = 'HTTP/([32]|1\\.[01])';
const HEADER_NAME = /[A-Za-z][A-Za-z0-9-]*/;

@@ -14,0 +14,0 @@ const HEADER = {

@@ -148,2 +148,3 @@ const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';

"localStorage",
"sessionStorage",
"module",

@@ -317,2 +318,15 @@ "global" // Node.js

};
const GRAPHQL_TEMPLATE = {
begin: 'gql`',
end: '',
starts: {
end: '`',
returnEnd: false,
contains: [
hljs.BACKSLASH_ESCAPE,
SUBST
],
subLanguage: 'graphql'
}
};
const TEMPLATE_STRING = {

@@ -379,2 +393,3 @@ className: 'string',

CSS_TEMPLATE,
GRAPHQL_TEMPLATE,
TEMPLATE_STRING,

@@ -597,3 +612,3 @@ // Skip numbers when they are part of a variable name

return {
name: 'Javascript',
name: 'JavaScript',
aliases: ['js', 'jsx', 'mjs', 'cjs'],

@@ -615,2 +630,3 @@ keywords: KEYWORDS$1,

CSS_TEMPLATE,
GRAPHQL_TEMPLATE,
TEMPLATE_STRING,

@@ -617,0 +633,0 @@ COMMENT,

@@ -54,6 +54,14 @@ /*

});
const HEREDOC = hljs.END_SAME_AS_BEGIN({
begin: /<<<[ \t]*(\w+)\n/,
const HEREDOC = {
begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/,
end: /[ \t]*(\w+)\b/,
contains: hljs.QUOTE_STRING_MODE.contains.concat(SUBST),
'on:begin': (m, resp) => { resp.data._beginMatch = m[1] || m[2]; },
'on:end': (m, resp) => { if (resp.data._beginMatch !== m[1]) resp.ignoreMatch(); },
};
const NOWDOC = hljs.END_SAME_AS_BEGIN({
begin: /<<<[ \t]*'(\w+)'\n/,
end: /[ \t]*(\w+)\b/,
});

@@ -67,3 +75,4 @@ // list of valid whitespaces because non-breaking space might be part of a IDENT_RE

SINGLE_QUOTED,
HEREDOC
HEREDOC,
NOWDOC
]

@@ -70,0 +79,0 @@ };

@@ -50,2 +50,3 @@ /*

name: 'Protocol Buffers',
aliases: ['proto'],
keywords: {

@@ -52,0 +53,0 @@ keyword: KEYWORDS,

@@ -370,3 +370,3 @@ /*

keywords: KEYWORDS,
illegal: /(<\/|->|\?)|=>/,
illegal: /(<\/|\?)|=>/,
contains: [

@@ -373,0 +373,0 @@ PROMPT,

/*
Language: SQF
Author: Søren Enevoldsen <senevoldsen90@gmail.com>
Contributors: Marvin Saignat <contact@zgmrvn.com>, Dedmen Miller <dedmen@dedmen.de>
Contributors: Marvin Saignat <contact@zgmrvn.com>, Dedmen Miller <dedmen@dedmen.de>, Leopard20
Description: Scripting language for the Arma game series
Website: https://community.bistudio.com/wiki/SQF_syntax
Category: scripting
Last update: 28.03.2021, Arma 3 v2.02
Last update: 07.01.2023, Arma 3 v2.11
*/
/*
////////////////////////////////////////////////////////////////////////////////////////////
* Author: Leopard20
* Description:
This script can be used to dump all commands to the clipboard.
Make sure you're using the Diag EXE to dump all of the commands.
* How to use:
Simply replace the _KEYWORDS and _LITERAL arrays with the one from this sqf.js file.
Execute the script from the debug console.
All commands will be copied to the clipboard.
////////////////////////////////////////////////////////////////////////////////////////////
_KEYWORDS = ['if']; //Array of all KEYWORDS
_LITERALS = ['west']; //Array of all LITERALS
_allCommands = createHashMap;
{
_type = _x select [0,1];
if (_type != "t") then {
_command_lowercase = ((_x select [2]) splitString " ")#(((["n", "u", "b"] find _type) - 1) max 0);
_command_uppercase = supportInfo ("i:" + _command_lowercase) # 0 # 2;
_allCommands set [_command_lowercase, _command_uppercase];
};
} forEach supportInfo "";
_allCommands = _allCommands toArray false;
_allCommands sort true; //sort by lowercase
_allCommands = ((_allCommands apply {_x#1}) -_KEYWORDS)-_LITERALS; //remove KEYWORDS and LITERALS
copyToClipboard (str (_allCommands select {_x regexMatch "\w+"}) regexReplace ["""", "'"] regexReplace [",", ",\n"]);
*/
function sqf(hljs) {
// In SQF, a variable start with _
// In SQF, a local variable starts with _
const VARIABLE = {

@@ -22,3 +52,3 @@ className: 'variable',

className: 'title',
begin: /[a-zA-Z]\w+_fnc_\w+/
begin: /[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/
};

@@ -55,4 +85,10 @@

const KEYWORDS = [
'break',
'breakWith',
'breakOut',
'breakTo',
'case',
'catch',
'continue',
'continueWith',
'default',

@@ -67,4 +103,6 @@ 'do',

'if',
'local',
'private',
'switch',
'step',
'then',

@@ -85,2 +123,3 @@ 'throw',

'displayNull',
'diaryRecordNull',
'east',

@@ -101,2 +140,4 @@ 'endl',

'sideEmpty',
'sideEnemy',
'sideFriendly',
'sideLogic',

@@ -117,2 +158,3 @@ 'sideUnknown',

'actionKeys',
'actionKeysEx',
'actionKeysImages',

@@ -126,2 +168,3 @@ 'actionKeysNames',

'activateKey',
'activeTitleEffectParams',
'add3DENConnection',

@@ -186,2 +229,3 @@ 'add3DENEventHandler',

'addUniform',
'addUserActionEventHandler',
'addVehicle',

@@ -220,8 +264,12 @@ 'addVest',

'allDeadMen',
'allDiaryRecords',
'allDiarySubjects',
'allDisplays',
'allEnv3DSoundSources',
'allGroups',
'allLODs',
'allMapMarkers',
'allMines',
'allMissionObjects',
'allObjects',
'allow3DMode',

@@ -232,5 +280,7 @@ 'allowCrewInImmobile',

'allowDammage',
'allowedService',
'allowFileOperations',
'allowFleeing',
'allowGetIn',
'allowService',
'allowSprint',

@@ -243,3 +293,5 @@ 'allPlayers',

'allUnitsUAV',
'allUsers',
'allVariables',
'ambientTemperature',
'ammo',

@@ -276,2 +328,3 @@ 'ammoOnPylon',

'assignedDriver',
'assignedGroup',
'assignedGunner',

@@ -283,2 +336,3 @@ 'assignedItems',

'assignedVehicleRole',
'assignedVehicles',
'assignItem',

@@ -297,2 +351,3 @@ 'assignTeam',

'attackEnabled',
'awake',
'backpack',

@@ -304,3 +359,2 @@ 'backpackCargo',

'backpackSpaceFor',
'batteryChargeRTD',
'behaviour',

@@ -315,6 +369,3 @@ 'benchmark',

'boundingCenter',
'break',
'breakOut',
'breakTo',
'breakWith',
'brakesDisabled',
'briefingName',

@@ -374,2 +425,3 @@ 'buildingExit',

'cancelSimpleTaskDestination',
'canDeployWeapon',
'canFire',

@@ -408,3 +460,2 @@ 'canMove',

'clearRadio',
'clearVehicleInit',
'clearWeaponCargo',

@@ -420,2 +471,3 @@ 'clearWeaponCargoGlobal',

'collectiveRTD',
'collisionDisabledWith',
'combatBehaviour',

@@ -439,2 +491,4 @@ 'combatMode',

'commitOverlay',
'compatibleItems',
'compatibleMagazines',
'compile',

@@ -457,5 +511,4 @@ 'compileFinal',

'connectToServer',
'continue',
'continueWith',
'controlsGroupCtrl',
'conversationDisabled',
'copyFromClipboard',

@@ -496,3 +549,2 @@ 'copyToClipboard',

'createSoundSource',
'createTarget',
'createTask',

@@ -522,5 +574,7 @@ 'createTeam',

'ctrlAnimationPhaseModel',
'ctrlAt',
'ctrlAutoScrollDelay',
'ctrlAutoScrollRewind',
'ctrlAutoScrollSpeed',
'ctrlBackgroundColor',
'ctrlChecked',

@@ -536,2 +590,3 @@ 'ctrlClassName',

'ctrlFontHeight',
'ctrlForegroundColor',
'ctrlHTMLLoaded',

@@ -546,4 +601,6 @@ 'ctrlIDC',

'ctrlMapMouseOver',
'ctrlMapPosition',
'ctrlMapScale',
'ctrlMapScreenToWorld',
'ctrlMapSetPosition',
'ctrlMapWorldToScreen',

@@ -609,2 +666,3 @@ 'ctrlModel',

'ctrlSetScrollValues',
'ctrlSetShadow',
'ctrlSetStructuredText',

@@ -620,3 +678,6 @@ 'ctrlSetText',

'ctrlSetTooltipColorText',
'ctrlSetTooltipMaxWidth',
'ctrlSetURL',
'ctrlSetURLOverlayMode',
'ctrlShadow',
'ctrlShow',

@@ -634,2 +695,3 @@ 'ctrlShown',

'ctrlURL',
'ctrlURLOverlayMode',
'ctrlVisible',

@@ -688,3 +750,3 @@ 'ctRowControls',

'dateToNumber',
'daytime',
'dayTime',
'deActivateKey',

@@ -711,3 +773,2 @@ 'debriefingText',

'deleteStatus',
'deleteTarget',
'deleteTeam',

@@ -721,35 +782,38 @@ 'deleteVehicle',

'diag_activeScripts',
'diag_activeSQFScripts',
'diag_activeSQSScripts',
'diag_allMissionEventHandlers',
'diag_captureFrame',
'diag_captureFrameToFile',
'diag_captureSlowFrame',
'diag_codePerformance',
'diag_deltaTime',
'diag_drawMode',
'diag_enable',
'diag_enabled',
'diag_fps',
'diag_fpsMin',
'diag_frameNo',
'diag_list',
'diag_mergeConfigFile',
'diag_scope',
'diag_activeSQFScripts',
'diag_allMissionEventHandlers',
'diag_captureFrame',
'diag_codePerformance',
'diag_drawmode',
'diag_dumpCalltraceToLog',
'diag_dumpScriptAssembly',
'diag_dumpTerrainSynth',
'diag_dynamicSimulationEnd',
'diag_enable',
'diag_enabled',
'diag_exportConfig',
'diag_exportTerrainSVG',
'diag_fps',
'diag_fpsmin',
'diag_frameno',
'diag_getTerrainSegmentOffset',
'diag_lightNewLoad',
'diag_list',
'diag_localized',
'diag_log',
'diag_logSlowFrame',
'diag_mergeConfigFile',
'diag_recordTurretLimits',
'diag_resetShapes',
'diag_resetFSM',
'diag_resetshapes',
'diag_scope',
'diag_setLightNew',
'diag_stacktrace',
'diag_tickTime',
'diag_toggle',
'dialog',
'diaryRecordNull',
'diarySubjectExists',

@@ -763,4 +827,6 @@ 'didJIP',

'direction',
'directionStabilizationEnabled',
'directSay',
'disableAI',
'disableBrakes',
'disableCollisionWith',

@@ -777,2 +843,3 @@ 'disableConversation',

'displayAddEventHandler',
'displayChild',
'displayCtrl',

@@ -783,2 +850,4 @@ 'displayParent',

'displaySetEventHandler',
'displayUniqueName',
'displayUpdate',
'dissolveTeam',

@@ -805,2 +874,3 @@ 'distance',

'drawIcon3D',
'drawLaser',
'drawLine',

@@ -840,2 +910,3 @@ 'drawLine3D',

'enableDiagLegend',
'enableDirectionStabilization',
'enableDynamicSimulation',

@@ -871,3 +942,2 @@ 'enableDynamicSimulationSystem',

'endMission',
'enemy',
'engineOn',

@@ -881,2 +951,3 @@ 'enginesIsOnRTD',

'environmentVolume',
'equipmentDisabled',
'estimatedEndServerTime',

@@ -894,3 +965,2 @@ 'estimatedTimeLeft',

'exportJIPMessages',
'exportLandscapeXYZ',
'eyeDirection',

@@ -909,2 +979,3 @@ 'eyePos',

'find',
'findAny',
'findCover',

@@ -964,4 +1035,4 @@ 'findDisplay',

'formLeader',
'freeExtension',
'freeLook',
'friendly',
'fromEditor',

@@ -973,2 +1044,3 @@ 'fuel',

'gearSlotData',
'gestureState',
'get',

@@ -989,2 +1061,3 @@ 'get3DENActionState',

'getAimingCoef',
'getAllEnv3DSoundControllers',
'getAllEnvSoundControllers',

@@ -1019,3 +1092,6 @@ 'getAllHitPointsDamage',

'getConnectedUAV',
'getConnectedUAVUnit',
'getContainerMaxLoad',
'getCorpse',
'getCruiseControl',
'getCursorObjectParams',

@@ -1026,2 +1102,3 @@ 'getCustomAimCoef',

'getDammage',
'getDebriefingText',
'getDescription',

@@ -1039,6 +1116,10 @@ 'getDir',

'getElevationOffset',
'getEngineTargetRPMRTD',
'getEnv3DSoundController',
'getEnvSoundController',
'getEventHandlerInfo',
'getFatigue',
'getFieldManualStartPage',
'getForcedFlagTexture',
'getForcedSpeed',
'getFriend',

@@ -1079,2 +1160,3 @@ 'getFSMVariable',

'getObjectFOV',
'getObjectID',
'getObjectMaterials',

@@ -1086,3 +1168,5 @@ 'getObjectProxy',

'getObjectViewDistance',
'getOpticsMode',
'getOrDefault',
'getOrDefaultCall',
'getOxygenRemaining',

@@ -1094,2 +1178,3 @@ 'getPersonUsedDLCs',

'getPilotCameraTarget',
'getPiPViewDistance',
'getPlateNumber',

@@ -1100,3 +1185,2 @@ 'getPlayerChannel',

'getPlayerUID',
'getPlayerUIDOld',
'getPlayerVoNVolume',

@@ -1120,2 +1204,4 @@ 'getPos',

'getRotorBrakeRTD',
'getSensorTargets',
'getSensorThreats',
'getShadowDistance',

@@ -1133,10 +1219,19 @@ 'getShotParents',

'getTerrainGrid',
'getTerrainHeight',
'getTerrainHeightASL',
'getTerrainInfo',
'getText',
'getTextRaw',
'getTextureInfo',
'getTextWidth',
'getTiParameters',
'getTotalDLCUsageTime',
'getTrimOffsetRTD',
'getTurretLimits',
'getTurretOpticsMode',
'getUnitFreefallInfo',
'getUnitLoadout',
'getUnitTrait',
'getUnloadInCombat',
'getUserInfo',
'getUserMFDText',

@@ -1146,3 +1241,3 @@ 'getUserMFDValue',

'getVehicleCargo',
'getVehicleTIPars',
'getVehicleTiPars',
'getWeaponCargo',

@@ -1152,3 +1247,2 @@ 'getWeaponSway',

'getWingsPositionRTD',
'getWorld',
'getWPPos',

@@ -1165,5 +1259,6 @@ 'glanceAt',

'groupIconsVisible',
'groupId',
'groupID',
'groupOwner',
'groupRadio',
'groups',
'groupSelectedUnits',

@@ -1178,2 +1273,3 @@ 'groupSelectUnit',

'handsHit',
'hashValue',
'hasInterface',

@@ -1193,3 +1289,2 @@ 'hasPilotCamera',

'headgear',
'hideBehindScripted',
'hideBody',

@@ -1199,3 +1294,2 @@ 'hideObject',

'hideSelection',
'hierarchyObjectsCount',
'hint',

@@ -1228,2 +1322,4 @@ 'hintC',

'inputAction',
'inputController',
'inputMouse',
'inRangeOfArtillery',

@@ -1240,2 +1336,3 @@ 'insert',

'isAimPrecisionEnabled',
'isAllowedCrewInImmobile',
'isArray',

@@ -1247,2 +1344,3 @@ 'isAutoHoverOn',

'isAutoTrimOnRTD',
'isAwake',
'isBleeding',

@@ -1257,2 +1355,3 @@ 'isBurning',

'isEngineOn',
'isEqualRef',
'isEqualTo',

@@ -1274,3 +1373,2 @@ 'isEqualType',

'isHidden',
'isHideBehindScripted',
'isInRemainsCollector',

@@ -1286,5 +1384,7 @@ 'isInstructorFigureEnabled',

'isMarkedForCollection',
'isMissionProfileNamespaceLoaded',
'isMultiplayer',
'isMultiplayerSolo',
'isNil',
'isNotEqualRef',
'isNotEqualTo',

@@ -1301,2 +1401,3 @@ 'isNull',

'isRemoteExecutedJIP',
'isSaving',
'isSensorTargetConfirmed',

@@ -1309,2 +1410,3 @@ 'isServer',

'isSteamMission',
'isSteamOverlayEnabled',
'isStreamFriendlyUIEnabled',

@@ -1383,5 +1485,7 @@ 'isStressDamageEnabled',

'lbSort',
'lbSortBy',
'lbSortByValue',
'lbText',
'lbTextRight',
'lbTooltip',
'lbValue',

@@ -1448,2 +1552,3 @@ 'leader',

'lnbSort',
'lnbSortBy',
'lnbSortByValue',

@@ -1456,2 +1561,3 @@ 'lnbText',

'loadBackpack',
'loadConfig',
'loadFile',

@@ -1465,3 +1571,2 @@ 'loadGame',

'loadVest',
'local',
'localize',

@@ -1475,2 +1580,3 @@ 'localNamespace',

'locked',
'lockedCameraTo',
'lockedCargo',

@@ -1483,3 +1589,3 @@ 'lockedDriver',

'lockTurret',
'lockWP',
'lockWp',
'log',

@@ -1525,2 +1631,3 @@ 'logEntities',

'max',
'maxLoad',
'members',

@@ -1562,5 +1669,7 @@ 'menuAction',

'missionDifficulty',
'missionEnd',
'missionName',
'missionNameSource',
'missionNamespace',
'missionProfileNamespace',
'missionStart',

@@ -1587,3 +1696,2 @@ 'missionVersion',

'moveOut',
'moveTarget',
'moveTime',

@@ -1602,2 +1710,3 @@ 'moveTo',

'nearestLocationWithDubbing',
'nearestMines',
'nearestObject',

@@ -1612,2 +1721,3 @@ 'nearestObjects',

'needReload',
'needService',
'netId',

@@ -1622,3 +1732,2 @@ 'netObjNull',

'numberToDate',
'object',
'objectCurators',

@@ -1628,3 +1737,2 @@ 'objectFromNetId',

'objStatus',
'onBriefingGear',
'onBriefingGroup',

@@ -1650,3 +1758,2 @@ 'onBriefingNotes',

'openDLCPage',
'openDSInterface',
'openGPS',

@@ -1692,2 +1799,4 @@ 'openMap',

'playSound3D',
'playSoundUI',
'pose',
'position',

@@ -1718,3 +1827,2 @@ 'positionCameraToWorld',

'processDiaryLink',
'processInitCommands',
'productVersion',

@@ -1743,5 +1851,7 @@ 'profileName',

'radioChannelSetLabel',
'radioEnabled',
'radioVolume',
'rain',
'rainbow',
'rainParams',
'random',

@@ -1752,2 +1862,5 @@ 'rank',

'rectangular',
'regexFind',
'regexMatch',
'regexReplace',
'registeredTasks',

@@ -1783,2 +1896,3 @@ 'registerTask',

'removeAllSecondaryWeaponItems',
'removeAllUserActionEventHandlers',
'removeAllWeapons',

@@ -1788,3 +1902,2 @@ 'removeBackpack',

'removeBinocularItem',
'removeClothing',
'removeCuratorAddons',

@@ -1825,2 +1938,3 @@ 'removeCuratorCameraArea',

'removeUniform',
'removeUserActionEventHandler',
'removeVest',

@@ -1858,4 +1972,4 @@ 'removeWeapon',

'ropes',
'ropesAttachedTo',
'ropeSegments',
'ropeSetCargoMass',
'ropeUnwind',

@@ -1877,2 +1991,3 @@ 'ropeUnwound',

'saveJoysticks',
'saveMissionProfileNamespace',
'saveOverlay',

@@ -1904,2 +2019,3 @@ 'saveProfileNamespace',

'selectionPosition',
'selectionVectorDirAndUp',
'selectLeader',

@@ -1919,2 +2035,3 @@ 'selectMax',

'sendUDPMessage',
'sentencesEnabled',
'serverCommand',

@@ -1924,2 +2041,3 @@ 'serverCommandAvailable',

'serverName',
'serverNamespace',
'serverTime',

@@ -1949,8 +2067,5 @@ 'set',

'setApertureNew',
'setAPURTD',
'setArmoryPoints',
'setAttributes',
'setAutonomous',
'setBatteryChargeRTD',
'setBatteryRTD',
'setBehaviour',

@@ -1960,7 +2075,6 @@ 'setBehaviourStrong',

'setBrakesRTD',
'setCameraEffect',
'setCameraInterest',
'setCamShakeDefParams',
'setCamShakeParams',
'setCamUseTI',
'setCamUseTi',
'setCaptive',

@@ -1973,2 +2087,3 @@ 'setCenterOfMass',

'setConvoySeparation',
'setCruiseControl',
'setCuratorCameraAreaCeiling',

@@ -1982,3 +2097,3 @@ 'setCuratorCoef',

'setCustomAimCoef',
'setCustomMissionData',
'SetCustomMissionData',
'setCustomSoundController',

@@ -2006,6 +2121,5 @@ 'setCustomWeightRTD',

'setEffectiveCommander',
'setEngineRPMRTD',
'setEngineRpmRTD',
'setFace',
'setFaceAnimation',
'setFaceanimation',
'setFatigue',

@@ -2031,3 +2145,3 @@ 'setFeatureType',

'setGroupIconsVisible',
'setGroupId',
'setGroupid',
'setGroupIdGlobal',

@@ -2042,2 +2156,3 @@ 'setGroupOwner',

'setHUDMovementLevels',
'setHumidity',
'setIdentity',

@@ -2051,2 +2166,3 @@ 'setImportance',

'setLightColor',
'setLightConePars',
'setLightDayLight',

@@ -2056,4 +2172,6 @@ 'setLightFlareMaxDistance',

'setLightIntensity',
'setLightIR',
'setLightnings',
'setLightUseFlare',
'setLightVolumeShape',
'setLocalWindParams',

@@ -2084,2 +2202,3 @@ 'setMagazineTurretAmmo',

'setMass',
'setMaxLoad',
'setMimic',

@@ -2101,2 +2220,3 @@ 'setMissileTarget',

'setObjectViewDistance',
'setOpticsMode',
'setOvercast',

@@ -2115,2 +2235,3 @@ 'setOwner',

'setPiPEffect',
'setPiPViewDistance',
'setPitch',

@@ -2157,3 +2278,2 @@ 'setPlateNumber',

'setStaminaScheme',
'setStarterRTD',
'setStatValue',

@@ -2167,8 +2287,8 @@ 'setSuppression',

'setTerrainGrid',
'setTerrainHeight',
'setText',
'setThrottleRTD',
'setTimeMultiplier',
'setTiParameter',
'setTitleEffect',
'setToneMapping',
'setToneMappingParams',
'setTowParent',
'setTrafficDensity',

@@ -2185,2 +2305,4 @@ 'setTrafficDistance',

'setTriggerType',
'setTurretLimits',
'setTurretOpticsMode',
'setType',

@@ -2190,2 +2312,3 @@ 'setUnconscious',

'setUnitCombatMode',
'setUnitFreefallHeight',
'setUnitLoadout',

@@ -2210,3 +2333,2 @@ 'setUnitPos',

'setVehicleId',
'setVehicleInit',
'setVehicleLock',

@@ -2218,3 +2340,3 @@ 'setVehiclePosition',

'setVehicleReportRemoteTargets',
'setVehicleTIPars',
'setVehicleTiPars',
'setVehicleVarName',

@@ -2260,3 +2382,3 @@ 'setVelocity',

'showCuratorCompass',
'showGPS',
'showGps',
'showHUD',

@@ -2270,3 +2392,3 @@ 'showLegend',

'showNewEditorObject',
'shownGPS',
'shownGps',
'shownHUD',

@@ -2277,2 +2399,3 @@ 'shownMap',

'shownScoretable',
'shownSubtitles',
'shownUAVFeed',

@@ -2292,5 +2415,2 @@ 'shownWarrant',

'sideChat',
'sideEmpty',
'sideEnemy',
'sideFriendly',
'sideRadio',

@@ -2302,3 +2422,2 @@ 'simpleTasks',

'simulInClouds',
'simulSetHumidity',
'simulWeatherSync',

@@ -2333,3 +2452,2 @@ 'sin',

'startLoadingScreen',
'step',
'stop',

@@ -2396,3 +2514,2 @@ 'stopEngineRTD',

'tg',
'throttleRTD',
'time',

@@ -2482,2 +2599,3 @@ 'timeMultiplier',

'uniformMagazines',
'uniqueUnitItems',
'unitAddons',

@@ -2505,2 +2623,3 @@ 'unitAimPosition',

'userInputDisabled',
'values',
'vectorAdd',

@@ -2546,3 +2665,3 @@ 'vectorCos',

'visibleCompass',
'visibleGPS',
'visibleGps',
'visibleMap',

@@ -2586,3 +2705,5 @@ 'visiblePosition',

'weaponLowered',
'weaponReloadingTime',
'weapons',
'weaponsInfo',
'weaponsItems',

@@ -2603,5 +2724,5 @@ 'weaponsItemsCargo',

'worldToModelVisual',
'worldToScreen',
'worldToScreen'
];
// list of keywords from:

@@ -2613,4 +2734,3 @@ // https://community.bistudio.com/wiki/PreProcessor_Commands

end: /$/,
keywords: { keyword:
'define undef ifdef ifndef else endif include' },
keywords: 'define undef ifdef ifndef else endif include if',
contains: [

@@ -2623,3 +2743,2 @@ {

{
className: 'string',
begin: /<[^\n>]*>/,

@@ -2633,3 +2752,3 @@ end: /$/,

};
return {

@@ -2652,3 +2771,15 @@ name: 'SQF',

],
illegal: /#|^\$ /
illegal: [
//$ is only valid when used with Hex numbers (e.g. $FF)
/\$[^a-fA-F0-9]/,
/\w\$/,
/\?/, //There's no ? in SQF
/@/, //There's no @ in SQF
// Brute-force-fixing the build error. See https://github.com/highlightjs/highlight.js/pull/3193#issuecomment-843088729
/ \| /,
// . is only used in numbers
/[a-zA-Z_]\./,
/\:\=/,
/\[\:/
]
};

@@ -2655,0 +2786,0 @@ }

@@ -610,3 +610,3 @@ /*

className: "variable",
begin: /@[a-z0-9]+/,
begin: /@[a-z0-9][a-z0-9_]*/,
};

@@ -613,0 +613,0 @@

@@ -148,2 +148,3 @@ const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';

"localStorage",
"sessionStorage",
"module",

@@ -317,2 +318,15 @@ "global" // Node.js

};
const GRAPHQL_TEMPLATE = {
begin: 'gql`',
end: '',
starts: {
end: '`',
returnEnd: false,
contains: [
hljs.BACKSLASH_ESCAPE,
SUBST
],
subLanguage: 'graphql'
}
};
const TEMPLATE_STRING = {

@@ -379,2 +393,3 @@ className: 'string',

CSS_TEMPLATE,
GRAPHQL_TEMPLATE,
TEMPLATE_STRING,

@@ -597,3 +612,3 @@ // Skip numbers when they are part of a variable name

return {
name: 'Javascript',
name: 'JavaScript',
aliases: ['js', 'jsx', 'mjs', 'cjs'],

@@ -615,2 +630,3 @@ keywords: KEYWORDS$1,

CSS_TEMPLATE,
GRAPHQL_TEMPLATE,
TEMPLATE_STRING,

@@ -858,3 +874,5 @@ COMMENT,

'ts',
'tsx'
'tsx',
'mts',
'cts'
]

@@ -861,0 +879,0 @@ });

@@ -115,2 +115,3 @@ /*

"while",
"until",
"in",

@@ -121,3 +122,4 @@ "do",

"esac",
"function"
"function",
"select"
];

@@ -124,0 +126,0 @@

@@ -132,2 +132,3 @@ /*

"await",
"base",
"break",

@@ -162,3 +163,3 @@ "case",

"in",
"inferface",
"interface",
"is",

@@ -176,2 +177,3 @@ "late",

"return",
"sealed",
"set",

@@ -190,2 +192,3 @@ "show",

"void",
"when",
"while",

@@ -192,0 +195,0 @@ "with",

@@ -180,3 +180,14 @@ /*

// TODO: characters.
// Single characters.
{
scope: 'string',
begin: /'(?=\\?.')/,
end: /'/,
contains: [
{
scope: 'char.escape',
match: /\\./,
},
]
},
hljs.QUOTE_STRING_MODE,

@@ -183,0 +194,0 @@ NUMBER,

@@ -11,3 +11,3 @@ /*

const regex = hljs.regex;
const VERSION = 'HTTP/(2|1\\.[01])';
const VERSION = 'HTTP/([32]|1\\.[01])';
const HEADER_NAME = /[A-Za-z][A-Za-z0-9-]*/;

@@ -14,0 +14,0 @@ const HEADER = {

@@ -148,2 +148,3 @@ const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';

"localStorage",
"sessionStorage",
"module",

@@ -317,2 +318,15 @@ "global" // Node.js

};
const GRAPHQL_TEMPLATE = {
begin: 'gql`',
end: '',
starts: {
end: '`',
returnEnd: false,
contains: [
hljs.BACKSLASH_ESCAPE,
SUBST
],
subLanguage: 'graphql'
}
};
const TEMPLATE_STRING = {

@@ -379,2 +393,3 @@ className: 'string',

CSS_TEMPLATE,
GRAPHQL_TEMPLATE,
TEMPLATE_STRING,

@@ -597,3 +612,3 @@ // Skip numbers when they are part of a variable name

return {
name: 'Javascript',
name: 'JavaScript',
aliases: ['js', 'jsx', 'mjs', 'cjs'],

@@ -615,2 +630,3 @@ keywords: KEYWORDS$1,

CSS_TEMPLATE,
GRAPHQL_TEMPLATE,
TEMPLATE_STRING,

@@ -617,0 +633,0 @@ COMMENT,

@@ -54,6 +54,14 @@ /*

});
const HEREDOC = hljs.END_SAME_AS_BEGIN({
begin: /<<<[ \t]*(\w+)\n/,
const HEREDOC = {
begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/,
end: /[ \t]*(\w+)\b/,
contains: hljs.QUOTE_STRING_MODE.contains.concat(SUBST),
'on:begin': (m, resp) => { resp.data._beginMatch = m[1] || m[2]; },
'on:end': (m, resp) => { if (resp.data._beginMatch !== m[1]) resp.ignoreMatch(); },
};
const NOWDOC = hljs.END_SAME_AS_BEGIN({
begin: /<<<[ \t]*'(\w+)'\n/,
end: /[ \t]*(\w+)\b/,
});

@@ -67,3 +75,4 @@ // list of valid whitespaces because non-breaking space might be part of a IDENT_RE

SINGLE_QUOTED,
HEREDOC
HEREDOC,
NOWDOC
]

@@ -70,0 +79,0 @@ };

@@ -50,2 +50,3 @@ /*

name: 'Protocol Buffers',
aliases: ['proto'],
keywords: {

@@ -52,0 +53,0 @@ keyword: KEYWORDS,

@@ -370,3 +370,3 @@ /*

keywords: KEYWORDS,
illegal: /(<\/|->|\?)|=>/,
illegal: /(<\/|\?)|=>/,
contains: [

@@ -373,0 +373,0 @@ PROMPT,

/*
Language: SQF
Author: Søren Enevoldsen <senevoldsen90@gmail.com>
Contributors: Marvin Saignat <contact@zgmrvn.com>, Dedmen Miller <dedmen@dedmen.de>
Contributors: Marvin Saignat <contact@zgmrvn.com>, Dedmen Miller <dedmen@dedmen.de>, Leopard20
Description: Scripting language for the Arma game series
Website: https://community.bistudio.com/wiki/SQF_syntax
Category: scripting
Last update: 28.03.2021, Arma 3 v2.02
Last update: 07.01.2023, Arma 3 v2.11
*/
/*
////////////////////////////////////////////////////////////////////////////////////////////
* Author: Leopard20
* Description:
This script can be used to dump all commands to the clipboard.
Make sure you're using the Diag EXE to dump all of the commands.
* How to use:
Simply replace the _KEYWORDS and _LITERAL arrays with the one from this sqf.js file.
Execute the script from the debug console.
All commands will be copied to the clipboard.
////////////////////////////////////////////////////////////////////////////////////////////
_KEYWORDS = ['if']; //Array of all KEYWORDS
_LITERALS = ['west']; //Array of all LITERALS
_allCommands = createHashMap;
{
_type = _x select [0,1];
if (_type != "t") then {
_command_lowercase = ((_x select [2]) splitString " ")#(((["n", "u", "b"] find _type) - 1) max 0);
_command_uppercase = supportInfo ("i:" + _command_lowercase) # 0 # 2;
_allCommands set [_command_lowercase, _command_uppercase];
};
} forEach supportInfo "";
_allCommands = _allCommands toArray false;
_allCommands sort true; //sort by lowercase
_allCommands = ((_allCommands apply {_x#1}) -_KEYWORDS)-_LITERALS; //remove KEYWORDS and LITERALS
copyToClipboard (str (_allCommands select {_x regexMatch "\w+"}) regexReplace ["""", "'"] regexReplace [",", ",\n"]);
*/
function sqf(hljs) {
// In SQF, a variable start with _
// In SQF, a local variable starts with _
const VARIABLE = {

@@ -22,3 +52,3 @@ className: 'variable',

className: 'title',
begin: /[a-zA-Z]\w+_fnc_\w+/
begin: /[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/
};

@@ -55,4 +85,10 @@

const KEYWORDS = [
'break',
'breakWith',
'breakOut',
'breakTo',
'case',
'catch',
'continue',
'continueWith',
'default',

@@ -67,4 +103,6 @@ 'do',

'if',
'local',
'private',
'switch',
'step',
'then',

@@ -85,2 +123,3 @@ 'throw',

'displayNull',
'diaryRecordNull',
'east',

@@ -101,2 +140,4 @@ 'endl',

'sideEmpty',
'sideEnemy',
'sideFriendly',
'sideLogic',

@@ -117,2 +158,3 @@ 'sideUnknown',

'actionKeys',
'actionKeysEx',
'actionKeysImages',

@@ -126,2 +168,3 @@ 'actionKeysNames',

'activateKey',
'activeTitleEffectParams',
'add3DENConnection',

@@ -186,2 +229,3 @@ 'add3DENEventHandler',

'addUniform',
'addUserActionEventHandler',
'addVehicle',

@@ -220,8 +264,12 @@ 'addVest',

'allDeadMen',
'allDiaryRecords',
'allDiarySubjects',
'allDisplays',
'allEnv3DSoundSources',
'allGroups',
'allLODs',
'allMapMarkers',
'allMines',
'allMissionObjects',
'allObjects',
'allow3DMode',

@@ -232,5 +280,7 @@ 'allowCrewInImmobile',

'allowDammage',
'allowedService',
'allowFileOperations',
'allowFleeing',
'allowGetIn',
'allowService',
'allowSprint',

@@ -243,3 +293,5 @@ 'allPlayers',

'allUnitsUAV',
'allUsers',
'allVariables',
'ambientTemperature',
'ammo',

@@ -276,2 +328,3 @@ 'ammoOnPylon',

'assignedDriver',
'assignedGroup',
'assignedGunner',

@@ -283,2 +336,3 @@ 'assignedItems',

'assignedVehicleRole',
'assignedVehicles',
'assignItem',

@@ -297,2 +351,3 @@ 'assignTeam',

'attackEnabled',
'awake',
'backpack',

@@ -304,3 +359,2 @@ 'backpackCargo',

'backpackSpaceFor',
'batteryChargeRTD',
'behaviour',

@@ -315,6 +369,3 @@ 'benchmark',

'boundingCenter',
'break',
'breakOut',
'breakTo',
'breakWith',
'brakesDisabled',
'briefingName',

@@ -374,2 +425,3 @@ 'buildingExit',

'cancelSimpleTaskDestination',
'canDeployWeapon',
'canFire',

@@ -408,3 +460,2 @@ 'canMove',

'clearRadio',
'clearVehicleInit',
'clearWeaponCargo',

@@ -420,2 +471,3 @@ 'clearWeaponCargoGlobal',

'collectiveRTD',
'collisionDisabledWith',
'combatBehaviour',

@@ -439,2 +491,4 @@ 'combatMode',

'commitOverlay',
'compatibleItems',
'compatibleMagazines',
'compile',

@@ -457,5 +511,4 @@ 'compileFinal',

'connectToServer',
'continue',
'continueWith',
'controlsGroupCtrl',
'conversationDisabled',
'copyFromClipboard',

@@ -496,3 +549,2 @@ 'copyToClipboard',

'createSoundSource',
'createTarget',
'createTask',

@@ -522,5 +574,7 @@ 'createTeam',

'ctrlAnimationPhaseModel',
'ctrlAt',
'ctrlAutoScrollDelay',
'ctrlAutoScrollRewind',
'ctrlAutoScrollSpeed',
'ctrlBackgroundColor',
'ctrlChecked',

@@ -536,2 +590,3 @@ 'ctrlClassName',

'ctrlFontHeight',
'ctrlForegroundColor',
'ctrlHTMLLoaded',

@@ -546,4 +601,6 @@ 'ctrlIDC',

'ctrlMapMouseOver',
'ctrlMapPosition',
'ctrlMapScale',
'ctrlMapScreenToWorld',
'ctrlMapSetPosition',
'ctrlMapWorldToScreen',

@@ -609,2 +666,3 @@ 'ctrlModel',

'ctrlSetScrollValues',
'ctrlSetShadow',
'ctrlSetStructuredText',

@@ -620,3 +678,6 @@ 'ctrlSetText',

'ctrlSetTooltipColorText',
'ctrlSetTooltipMaxWidth',
'ctrlSetURL',
'ctrlSetURLOverlayMode',
'ctrlShadow',
'ctrlShow',

@@ -634,2 +695,3 @@ 'ctrlShown',

'ctrlURL',
'ctrlURLOverlayMode',
'ctrlVisible',

@@ -688,3 +750,3 @@ 'ctRowControls',

'dateToNumber',
'daytime',
'dayTime',
'deActivateKey',

@@ -711,3 +773,2 @@ 'debriefingText',

'deleteStatus',
'deleteTarget',
'deleteTeam',

@@ -721,35 +782,38 @@ 'deleteVehicle',

'diag_activeScripts',
'diag_activeSQFScripts',
'diag_activeSQSScripts',
'diag_allMissionEventHandlers',
'diag_captureFrame',
'diag_captureFrameToFile',
'diag_captureSlowFrame',
'diag_codePerformance',
'diag_deltaTime',
'diag_drawMode',
'diag_enable',
'diag_enabled',
'diag_fps',
'diag_fpsMin',
'diag_frameNo',
'diag_list',
'diag_mergeConfigFile',
'diag_scope',
'diag_activeSQFScripts',
'diag_allMissionEventHandlers',
'diag_captureFrame',
'diag_codePerformance',
'diag_drawmode',
'diag_dumpCalltraceToLog',
'diag_dumpScriptAssembly',
'diag_dumpTerrainSynth',
'diag_dynamicSimulationEnd',
'diag_enable',
'diag_enabled',
'diag_exportConfig',
'diag_exportTerrainSVG',
'diag_fps',
'diag_fpsmin',
'diag_frameno',
'diag_getTerrainSegmentOffset',
'diag_lightNewLoad',
'diag_list',
'diag_localized',
'diag_log',
'diag_logSlowFrame',
'diag_mergeConfigFile',
'diag_recordTurretLimits',
'diag_resetShapes',
'diag_resetFSM',
'diag_resetshapes',
'diag_scope',
'diag_setLightNew',
'diag_stacktrace',
'diag_tickTime',
'diag_toggle',
'dialog',
'diaryRecordNull',
'diarySubjectExists',

@@ -763,4 +827,6 @@ 'didJIP',

'direction',
'directionStabilizationEnabled',
'directSay',
'disableAI',
'disableBrakes',
'disableCollisionWith',

@@ -777,2 +843,3 @@ 'disableConversation',

'displayAddEventHandler',
'displayChild',
'displayCtrl',

@@ -783,2 +850,4 @@ 'displayParent',

'displaySetEventHandler',
'displayUniqueName',
'displayUpdate',
'dissolveTeam',

@@ -805,2 +874,3 @@ 'distance',

'drawIcon3D',
'drawLaser',
'drawLine',

@@ -840,2 +910,3 @@ 'drawLine3D',

'enableDiagLegend',
'enableDirectionStabilization',
'enableDynamicSimulation',

@@ -871,3 +942,2 @@ 'enableDynamicSimulationSystem',

'endMission',
'enemy',
'engineOn',

@@ -881,2 +951,3 @@ 'enginesIsOnRTD',

'environmentVolume',
'equipmentDisabled',
'estimatedEndServerTime',

@@ -894,3 +965,2 @@ 'estimatedTimeLeft',

'exportJIPMessages',
'exportLandscapeXYZ',
'eyeDirection',

@@ -909,2 +979,3 @@ 'eyePos',

'find',
'findAny',
'findCover',

@@ -964,4 +1035,4 @@ 'findDisplay',

'formLeader',
'freeExtension',
'freeLook',
'friendly',
'fromEditor',

@@ -973,2 +1044,3 @@ 'fuel',

'gearSlotData',
'gestureState',
'get',

@@ -989,2 +1061,3 @@ 'get3DENActionState',

'getAimingCoef',
'getAllEnv3DSoundControllers',
'getAllEnvSoundControllers',

@@ -1019,3 +1092,6 @@ 'getAllHitPointsDamage',

'getConnectedUAV',
'getConnectedUAVUnit',
'getContainerMaxLoad',
'getCorpse',
'getCruiseControl',
'getCursorObjectParams',

@@ -1026,2 +1102,3 @@ 'getCustomAimCoef',

'getDammage',
'getDebriefingText',
'getDescription',

@@ -1039,6 +1116,10 @@ 'getDir',

'getElevationOffset',
'getEngineTargetRPMRTD',
'getEnv3DSoundController',
'getEnvSoundController',
'getEventHandlerInfo',
'getFatigue',
'getFieldManualStartPage',
'getForcedFlagTexture',
'getForcedSpeed',
'getFriend',

@@ -1079,2 +1160,3 @@ 'getFSMVariable',

'getObjectFOV',
'getObjectID',
'getObjectMaterials',

@@ -1086,3 +1168,5 @@ 'getObjectProxy',

'getObjectViewDistance',
'getOpticsMode',
'getOrDefault',
'getOrDefaultCall',
'getOxygenRemaining',

@@ -1094,2 +1178,3 @@ 'getPersonUsedDLCs',

'getPilotCameraTarget',
'getPiPViewDistance',
'getPlateNumber',

@@ -1100,3 +1185,2 @@ 'getPlayerChannel',

'getPlayerUID',
'getPlayerUIDOld',
'getPlayerVoNVolume',

@@ -1120,2 +1204,4 @@ 'getPos',

'getRotorBrakeRTD',
'getSensorTargets',
'getSensorThreats',
'getShadowDistance',

@@ -1133,10 +1219,19 @@ 'getShotParents',

'getTerrainGrid',
'getTerrainHeight',
'getTerrainHeightASL',
'getTerrainInfo',
'getText',
'getTextRaw',
'getTextureInfo',
'getTextWidth',
'getTiParameters',
'getTotalDLCUsageTime',
'getTrimOffsetRTD',
'getTurretLimits',
'getTurretOpticsMode',
'getUnitFreefallInfo',
'getUnitLoadout',
'getUnitTrait',
'getUnloadInCombat',
'getUserInfo',
'getUserMFDText',

@@ -1146,3 +1241,3 @@ 'getUserMFDValue',

'getVehicleCargo',
'getVehicleTIPars',
'getVehicleTiPars',
'getWeaponCargo',

@@ -1152,3 +1247,2 @@ 'getWeaponSway',

'getWingsPositionRTD',
'getWorld',
'getWPPos',

@@ -1165,5 +1259,6 @@ 'glanceAt',

'groupIconsVisible',
'groupId',
'groupID',
'groupOwner',
'groupRadio',
'groups',
'groupSelectedUnits',

@@ -1178,2 +1273,3 @@ 'groupSelectUnit',

'handsHit',
'hashValue',
'hasInterface',

@@ -1193,3 +1289,2 @@ 'hasPilotCamera',

'headgear',
'hideBehindScripted',
'hideBody',

@@ -1199,3 +1294,2 @@ 'hideObject',

'hideSelection',
'hierarchyObjectsCount',
'hint',

@@ -1228,2 +1322,4 @@ 'hintC',

'inputAction',
'inputController',
'inputMouse',
'inRangeOfArtillery',

@@ -1240,2 +1336,3 @@ 'insert',

'isAimPrecisionEnabled',
'isAllowedCrewInImmobile',
'isArray',

@@ -1247,2 +1344,3 @@ 'isAutoHoverOn',

'isAutoTrimOnRTD',
'isAwake',
'isBleeding',

@@ -1257,2 +1355,3 @@ 'isBurning',

'isEngineOn',
'isEqualRef',
'isEqualTo',

@@ -1274,3 +1373,2 @@ 'isEqualType',

'isHidden',
'isHideBehindScripted',
'isInRemainsCollector',

@@ -1286,5 +1384,7 @@ 'isInstructorFigureEnabled',

'isMarkedForCollection',
'isMissionProfileNamespaceLoaded',
'isMultiplayer',
'isMultiplayerSolo',
'isNil',
'isNotEqualRef',
'isNotEqualTo',

@@ -1301,2 +1401,3 @@ 'isNull',

'isRemoteExecutedJIP',
'isSaving',
'isSensorTargetConfirmed',

@@ -1309,2 +1410,3 @@ 'isServer',

'isSteamMission',
'isSteamOverlayEnabled',
'isStreamFriendlyUIEnabled',

@@ -1383,5 +1485,7 @@ 'isStressDamageEnabled',

'lbSort',
'lbSortBy',
'lbSortByValue',
'lbText',
'lbTextRight',
'lbTooltip',
'lbValue',

@@ -1448,2 +1552,3 @@ 'leader',

'lnbSort',
'lnbSortBy',
'lnbSortByValue',

@@ -1456,2 +1561,3 @@ 'lnbText',

'loadBackpack',
'loadConfig',
'loadFile',

@@ -1465,3 +1571,2 @@ 'loadGame',

'loadVest',
'local',
'localize',

@@ -1475,2 +1580,3 @@ 'localNamespace',

'locked',
'lockedCameraTo',
'lockedCargo',

@@ -1483,3 +1589,3 @@ 'lockedDriver',

'lockTurret',
'lockWP',
'lockWp',
'log',

@@ -1525,2 +1631,3 @@ 'logEntities',

'max',
'maxLoad',
'members',

@@ -1562,5 +1669,7 @@ 'menuAction',

'missionDifficulty',
'missionEnd',
'missionName',
'missionNameSource',
'missionNamespace',
'missionProfileNamespace',
'missionStart',

@@ -1587,3 +1696,2 @@ 'missionVersion',

'moveOut',
'moveTarget',
'moveTime',

@@ -1602,2 +1710,3 @@ 'moveTo',

'nearestLocationWithDubbing',
'nearestMines',
'nearestObject',

@@ -1612,2 +1721,3 @@ 'nearestObjects',

'needReload',
'needService',
'netId',

@@ -1622,3 +1732,2 @@ 'netObjNull',

'numberToDate',
'object',
'objectCurators',

@@ -1628,3 +1737,2 @@ 'objectFromNetId',

'objStatus',
'onBriefingGear',
'onBriefingGroup',

@@ -1650,3 +1758,2 @@ 'onBriefingNotes',

'openDLCPage',
'openDSInterface',
'openGPS',

@@ -1692,2 +1799,4 @@ 'openMap',

'playSound3D',
'playSoundUI',
'pose',
'position',

@@ -1718,3 +1827,2 @@ 'positionCameraToWorld',

'processDiaryLink',
'processInitCommands',
'productVersion',

@@ -1743,5 +1851,7 @@ 'profileName',

'radioChannelSetLabel',
'radioEnabled',
'radioVolume',
'rain',
'rainbow',
'rainParams',
'random',

@@ -1752,2 +1862,5 @@ 'rank',

'rectangular',
'regexFind',
'regexMatch',
'regexReplace',
'registeredTasks',

@@ -1783,2 +1896,3 @@ 'registerTask',

'removeAllSecondaryWeaponItems',
'removeAllUserActionEventHandlers',
'removeAllWeapons',

@@ -1788,3 +1902,2 @@ 'removeBackpack',

'removeBinocularItem',
'removeClothing',
'removeCuratorAddons',

@@ -1825,2 +1938,3 @@ 'removeCuratorCameraArea',

'removeUniform',
'removeUserActionEventHandler',
'removeVest',

@@ -1858,4 +1972,4 @@ 'removeWeapon',

'ropes',
'ropesAttachedTo',
'ropeSegments',
'ropeSetCargoMass',
'ropeUnwind',

@@ -1877,2 +1991,3 @@ 'ropeUnwound',

'saveJoysticks',
'saveMissionProfileNamespace',
'saveOverlay',

@@ -1904,2 +2019,3 @@ 'saveProfileNamespace',

'selectionPosition',
'selectionVectorDirAndUp',
'selectLeader',

@@ -1919,2 +2035,3 @@ 'selectMax',

'sendUDPMessage',
'sentencesEnabled',
'serverCommand',

@@ -1924,2 +2041,3 @@ 'serverCommandAvailable',

'serverName',
'serverNamespace',
'serverTime',

@@ -1949,8 +2067,5 @@ 'set',

'setApertureNew',
'setAPURTD',
'setArmoryPoints',
'setAttributes',
'setAutonomous',
'setBatteryChargeRTD',
'setBatteryRTD',
'setBehaviour',

@@ -1960,7 +2075,6 @@ 'setBehaviourStrong',

'setBrakesRTD',
'setCameraEffect',
'setCameraInterest',
'setCamShakeDefParams',
'setCamShakeParams',
'setCamUseTI',
'setCamUseTi',
'setCaptive',

@@ -1973,2 +2087,3 @@ 'setCenterOfMass',

'setConvoySeparation',
'setCruiseControl',
'setCuratorCameraAreaCeiling',

@@ -1982,3 +2097,3 @@ 'setCuratorCoef',

'setCustomAimCoef',
'setCustomMissionData',
'SetCustomMissionData',
'setCustomSoundController',

@@ -2006,6 +2121,5 @@ 'setCustomWeightRTD',

'setEffectiveCommander',
'setEngineRPMRTD',
'setEngineRpmRTD',
'setFace',
'setFaceAnimation',
'setFaceanimation',
'setFatigue',

@@ -2031,3 +2145,3 @@ 'setFeatureType',

'setGroupIconsVisible',
'setGroupId',
'setGroupid',
'setGroupIdGlobal',

@@ -2042,2 +2156,3 @@ 'setGroupOwner',

'setHUDMovementLevels',
'setHumidity',
'setIdentity',

@@ -2051,2 +2166,3 @@ 'setImportance',

'setLightColor',
'setLightConePars',
'setLightDayLight',

@@ -2056,4 +2172,6 @@ 'setLightFlareMaxDistance',

'setLightIntensity',
'setLightIR',
'setLightnings',
'setLightUseFlare',
'setLightVolumeShape',
'setLocalWindParams',

@@ -2084,2 +2202,3 @@ 'setMagazineTurretAmmo',

'setMass',
'setMaxLoad',
'setMimic',

@@ -2101,2 +2220,3 @@ 'setMissileTarget',

'setObjectViewDistance',
'setOpticsMode',
'setOvercast',

@@ -2115,2 +2235,3 @@ 'setOwner',

'setPiPEffect',
'setPiPViewDistance',
'setPitch',

@@ -2157,3 +2278,2 @@ 'setPlateNumber',

'setStaminaScheme',
'setStarterRTD',
'setStatValue',

@@ -2167,8 +2287,8 @@ 'setSuppression',

'setTerrainGrid',
'setTerrainHeight',
'setText',
'setThrottleRTD',
'setTimeMultiplier',
'setTiParameter',
'setTitleEffect',
'setToneMapping',
'setToneMappingParams',
'setTowParent',
'setTrafficDensity',

@@ -2185,2 +2305,4 @@ 'setTrafficDistance',

'setTriggerType',
'setTurretLimits',
'setTurretOpticsMode',
'setType',

@@ -2190,2 +2312,3 @@ 'setUnconscious',

'setUnitCombatMode',
'setUnitFreefallHeight',
'setUnitLoadout',

@@ -2210,3 +2333,2 @@ 'setUnitPos',

'setVehicleId',
'setVehicleInit',
'setVehicleLock',

@@ -2218,3 +2340,3 @@ 'setVehiclePosition',

'setVehicleReportRemoteTargets',
'setVehicleTIPars',
'setVehicleTiPars',
'setVehicleVarName',

@@ -2260,3 +2382,3 @@ 'setVelocity',

'showCuratorCompass',
'showGPS',
'showGps',
'showHUD',

@@ -2270,3 +2392,3 @@ 'showLegend',

'showNewEditorObject',
'shownGPS',
'shownGps',
'shownHUD',

@@ -2277,2 +2399,3 @@ 'shownMap',

'shownScoretable',
'shownSubtitles',
'shownUAVFeed',

@@ -2292,5 +2415,2 @@ 'shownWarrant',

'sideChat',
'sideEmpty',
'sideEnemy',
'sideFriendly',
'sideRadio',

@@ -2302,3 +2422,2 @@ 'simpleTasks',

'simulInClouds',
'simulSetHumidity',
'simulWeatherSync',

@@ -2333,3 +2452,2 @@ 'sin',

'startLoadingScreen',
'step',
'stop',

@@ -2396,3 +2514,2 @@ 'stopEngineRTD',

'tg',
'throttleRTD',
'time',

@@ -2482,2 +2599,3 @@ 'timeMultiplier',

'uniformMagazines',
'uniqueUnitItems',
'unitAddons',

@@ -2505,2 +2623,3 @@ 'unitAimPosition',

'userInputDisabled',
'values',
'vectorAdd',

@@ -2546,3 +2665,3 @@ 'vectorCos',

'visibleCompass',
'visibleGPS',
'visibleGps',
'visibleMap',

@@ -2586,3 +2705,5 @@ 'visiblePosition',

'weaponLowered',
'weaponReloadingTime',
'weapons',
'weaponsInfo',
'weaponsItems',

@@ -2603,5 +2724,5 @@ 'weaponsItemsCargo',

'worldToModelVisual',
'worldToScreen',
'worldToScreen'
];
// list of keywords from:

@@ -2613,4 +2734,3 @@ // https://community.bistudio.com/wiki/PreProcessor_Commands

end: /$/,
keywords: { keyword:
'define undef ifdef ifndef else endif include' },
keywords: 'define undef ifdef ifndef else endif include if',
contains: [

@@ -2623,3 +2743,2 @@ {

{
className: 'string',
begin: /<[^\n>]*>/,

@@ -2633,3 +2752,3 @@ end: /$/,

};
return {

@@ -2652,3 +2771,15 @@ name: 'SQF',

],
illegal: /#|^\$ /
illegal: [
//$ is only valid when used with Hex numbers (e.g. $FF)
/\$[^a-fA-F0-9]/,
/\w\$/,
/\?/, //There's no ? in SQF
/@/, //There's no @ in SQF
// Brute-force-fixing the build error. See https://github.com/highlightjs/highlight.js/pull/3193#issuecomment-843088729
/ \| /,
// . is only used in numbers
/[a-zA-Z_]\./,
/\:\=/,
/\[\:/
]
};

@@ -2655,0 +2786,0 @@ }

@@ -610,3 +610,3 @@ /*

className: "variable",
begin: /@[a-z0-9]+/,
begin: /@[a-z0-9][a-z0-9_]*/,
};

@@ -613,0 +613,0 @@

@@ -148,2 +148,3 @@ const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';

"localStorage",
"sessionStorage",
"module",

@@ -317,2 +318,15 @@ "global" // Node.js

};
const GRAPHQL_TEMPLATE = {
begin: 'gql`',
end: '',
starts: {
end: '`',
returnEnd: false,
contains: [
hljs.BACKSLASH_ESCAPE,
SUBST
],
subLanguage: 'graphql'
}
};
const TEMPLATE_STRING = {

@@ -379,2 +393,3 @@ className: 'string',

CSS_TEMPLATE,
GRAPHQL_TEMPLATE,
TEMPLATE_STRING,

@@ -597,3 +612,3 @@ // Skip numbers when they are part of a variable name

return {
name: 'Javascript',
name: 'JavaScript',
aliases: ['js', 'jsx', 'mjs', 'cjs'],

@@ -615,2 +630,3 @@ keywords: KEYWORDS$1,

CSS_TEMPLATE,
GRAPHQL_TEMPLATE,
TEMPLATE_STRING,

@@ -858,3 +874,5 @@ COMMENT,

'ts',
'tsx'
'tsx',
'mts',
'cts'
]

@@ -861,0 +879,0 @@ });

@@ -9,3 +9,3 @@ {

"homepage": "https://highlightjs.org/",
"version": "11.7.0",
"version": "11.8.0",
"author": "Josh Goebel <hello@joshgoebel.com>",

@@ -49,2 +49,3 @@ "contributors": [

"build-browser": "node ./tools/build.js -t browser :common",
"devtool": "npx http-server",
"test": "mocha test",

@@ -61,33 +62,34 @@ "test-markup": "mocha test/markup",

"@colors/colors": "^1.5.0",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@types/mocha": "^9.1.1",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"clean-css": "^5.3.0",
"@rollup/plugin-commonjs": "^24.1.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@types/mocha": "^10.0.1",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"clean-css": "^5.3.2",
"cli-table": "^0.3.1",
"commander": "9.3",
"commander": "^10.0.1",
"css": "^3.0.0",
"css-color-names": "^1.0.1",
"deep-freeze-es6": "^1.4.1",
"deep-freeze-es6": "^2.0.0",
"del": "^6.1.1",
"dependency-resolver": "^2.0.1",
"eslint": "^8.17.0",
"eslint": "^8.39.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"glob": "^7.2.3",
"glob-promise": "^4.2.2",
"eslint-plugin-promise": "^6.1.1",
"glob": "^8.0.3",
"glob-promise": "^6.0.2",
"handlebars": "^4.7.6",
"jsdom": "^20.0.0",
"http-server": "^14.1.1",
"jsdom": "^21.1.1",
"lodash": "^4.17.20",
"mocha": "^10.0.0",
"mocha": "^10.2.0",
"refa": "^0.4.1",
"rollup": "^2.47.0",
"should": "^13.2.3",
"terser": "^5.14.1",
"terser": "^5.17.1",
"tiny-worker": "^2.3.0",
"typescript": "^4.7.3",
"typescript": "^5.0.4",
"wcag-contrast": "^3.0.0"

@@ -98,3 +100,4 @@ },

"require": "./lib/index.js",
"import": "./es/index.js"
"import": "./es/index.js",
"types": "./types/index.d.ts"
},

@@ -101,0 +104,0 @@ "./package.json": "./package.json",

@@ -330,6 +330,6 @@ # Highlight.js

```html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/languages/go.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/go.min.js"></script>
```

@@ -340,7 +340,7 @@

````html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/dark.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/dark.min.css">
<script type="module">
import hljs from 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/es/highlight.min.js';
import hljs from 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/es/highlight.min.js';
// and it's easy to individually load additional languages
import go from 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/es/languages/go.min.js';
import go from 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/es/languages/go.min.js';
hljs.registerLanguage('go', go);

@@ -357,6 +357,6 @@ </script>

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/styles/default.min.css">
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/highlight.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8.0/build/styles/default.min.css">
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8.0/build/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/languages/go.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8.0/build/languages/go.min.js"></script>
```

@@ -367,7 +367,7 @@

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/styles/default.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8.0/build/styles/default.min.css">
<script type="module">
import hljs from 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/es/highlight.min.js';
import hljs from 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8.0/build/es/highlight.min.js';
// and it's easy to individually load additional languages
import go from 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/es/languages/go.min.js';
import go from 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8.0/build/es/languages/go.min.js';
hljs.registerLanguage('go', go);

@@ -382,6 +382,6 @@ </script>

```html
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.7.0/styles/default.min.css">
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.7.0/highlight.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.8.0/styles/default.min.css">
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.8.0/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.7.0/languages/go.min.js"></script>
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.8.0/languages/go.min.js"></script>
```

@@ -392,7 +392,7 @@

```html
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.7.0/styles/default.min.css">
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.8.0/styles/default.min.css">
<script type="module">
import hljs from 'https://unpkg.com/@highlightjs/cdn-assets@11.7.0/es/highlight.min.js';
import hljs from 'https://unpkg.com/@highlightjs/cdn-assets@11.8.0/es/highlight.min.js';
// and it's easy to individually load & register additional languages
import go from 'https://unpkg.com/@highlightjs/cdn-assets@11.7.0/es/languages/go.min.js';
import go from 'https://unpkg.com/@highlightjs/cdn-assets@11.8.0/es/languages/go.min.js';
hljs.registerLanguage('go', go);

@@ -399,0 +399,0 @@ </script>

@@ -37,2 +37,3 @@ # Supported Languages

| BNF | bnf | |
| BQN | bqn | [highlightjs-bqn](https://github.com/razetime/highlightjs-bqn) |
| Brainfuck | brainfuck, bf | |

@@ -43,3 +44,5 @@ | C# | csharp, cs | |

| C/AL | cal | |
| C3 | c3 | [highlightjs-c3](https://github.com/highlightjs/highlightjs-c3) |
| Cache Object Script | cos, cls | |
| Candid | candid, did | [highlightjs-motoko](https://github.com/rvanasa/highlightjs-motoko) |
| CMake | cmake, cmake.in | |

@@ -116,2 +119,3 @@ | COBOL | cobol, standard-cobol | [highlightjs-cobol](https://github.com/otterkit/highlightjs-cobol) |

| Kotlin | kotlin, kt | |
| Lang | | [highlightjs-lang](https://github.com/highlightjs/highlightjs-lang)
| LaTeX | tex | |

@@ -136,2 +140,4 @@ | Leaf | leaf | |

| Mercury | mercury | |
| MIPS Assembler | mips, mipsasm | |
| Mint | mint | [highlightjs-mint](https://github.com/mint-lang/highlightjs-mint) |
| mIRC Scripting Language | mirc, mrc | [highlightjs-mirc](https://github.com/highlightjs/highlightjs-mirc) |

@@ -144,2 +150,3 @@ | Mizar | mizar | |

| Moonscript | moonscript, moon | |
| Motoko | motoko, mo | [highlightjs-motoko](https://github.com/rvanasa/highlightjs-motoko) |
| N1QL | n1ql | |

@@ -172,3 +179,3 @@ | NSIS | nsis | |

| Properties | properties | |
| Protocol Buffers | protobuf | |
| Protocol Buffers | proto, protobuf | |
| Puppet | puppet, pp | |

@@ -201,2 +208,3 @@ | Python | python, py, gyp | |

| Scilab | scilab, sci | |
| SFZ | sfz | [highlightjs-sfz](https://github.com/sfz/highlight.js) |
| Shape Expressions | shexc | [highlightjs-shexc](https://github.com/highlightjs/highlightjs-shexc) |

@@ -225,3 +233,3 @@ | Shell | shell, console | |

| Twig | twig, craftcms | |
| TypeScript | typescript, ts, tsx | |
| TypeScript | typescript, ts, tsx, mts, cts | |
| Unicorn Rails log | unicorn-rails-log | [highlightjs-unicorn-rails-log](https://github.com/sweetppro/highlightjs-unicorn-rails-log) |

@@ -228,0 +236,0 @@ | VB.Net | vbnet, vb | |

@@ -48,2 +48,3 @@ /* eslint-disable no-unused-vars */

addPlugin: (plugin: HLJSPlugin) => void
removePlugin: (plugin: HLJSPlugin) => void
debugMode: () => void

@@ -60,2 +61,3 @@ safeMode: () => void

}
newInstance: () => HLJSApi
}

@@ -62,0 +64,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc