Welcome to mirror list, hosted at ThFree Co, Russian Federation.

applescript.js.map « highlight « js - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4120c21b4f8a73631c5918d4b65abc45c7d726ef (plain)
1
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/applescript.js"],"names":["module","exports","hljs","STRING","inherit","QUOTE_STRING_MODE","illegal","PARAMS","className","begin","end","contains","C_NUMBER_MODE","COMMENT_MODE_1","COMMENT","COMMENTS","HASH_COMMENT_MODE","name","aliases","keywords","keyword","literal","built_in","beginKeywords","UNDERSCORE_TITLE_MODE","concat"],"mappings":"kGA4GAA,EAAOC,QApGP,SAAqBC,GACnB,IAAMC,EAASD,EAAKE,QAAQF,EAAKG,kBAAmB,CAClDC,QAAS,KAELC,EAAS,CACbC,UAAW,SACXC,MAAO,MACPC,IAAK,MACLC,SAAU,CACR,OACAT,EAAKU,cACLT,IAGEU,EAAiBX,EAAKY,QAAQ,KAAM,KAWpCC,EAAW,CACfF,EAXqBX,EAAKY,QAC1B,SACA,SACA,CACEH,SAAU,CACR,OACAE,KAOJX,EAAKc,mBAGP,MAAO,CACLC,KAAM,cACNC,QAAS,CAAC,aACVC,SAAU,CACRC,QACE,0iBAUFC,QACE,mEACFC,SACE,sUAQJX,SAAU,CACRR,EACAD,EAAKU,cACL,CACEJ,UAAW,WACXC,MACE,kcAUJ,CACED,UAAW,UACXC,MACE,kEAEJ,CACED,UAAW,UACXC,MACE,qSAMJ,CACEc,cAAe,KACfjB,QAAS,YACTK,SAAU,CACRT,EAAKsB,sBACLjB,KAGJkB,OAAOV,GACTT,QAAS","file":"highlight/applescript.js?v=7f9af4304cc5c74effb4","sourcesContent":["/*\nLanguage: AppleScript\nAuthors: Nathan Grigg <nathan@nathanamy.org>, Dr. Drang <drdrang@gmail.com>\nCategory: scripting\nWebsite: https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html\n*/\n\n/** @type LanguageFn */\nfunction applescript(hljs) {\n  const STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, {\n    illegal: ''\n  });\n  const PARAMS = {\n    className: 'params',\n    begin: '\\\\(',\n    end: '\\\\)',\n    contains: [\n      'self',\n      hljs.C_NUMBER_MODE,\n      STRING\n    ]\n  };\n  const COMMENT_MODE_1 = hljs.COMMENT('--', '$');\n  const COMMENT_MODE_2 = hljs.COMMENT(\n    '\\\\(\\\\*',\n    '\\\\*\\\\)',\n    {\n      contains: [\n        'self', // allow nesting\n        COMMENT_MODE_1\n      ]\n    }\n  );\n  const COMMENTS = [\n    COMMENT_MODE_1,\n    COMMENT_MODE_2,\n    hljs.HASH_COMMENT_MODE\n  ];\n\n  return {\n    name: 'AppleScript',\n    aliases: ['osascript'],\n    keywords: {\n      keyword:\n        'about above after against and around as at back before beginning ' +\n        'behind below beneath beside between but by considering ' +\n        'contain contains continue copy div does eighth else end equal ' +\n        'equals error every exit fifth first for fourth from front ' +\n        'get given global if ignoring in into is it its last local me ' +\n        'middle mod my ninth not of on onto or over prop property put ref ' +\n        'reference repeat returning script second set seventh since ' +\n        'sixth some tell tenth that the|0 then third through thru ' +\n        'timeout times to transaction try until where while whose with ' +\n        'without',\n      literal:\n        'AppleScript false linefeed return pi quote result space tab true',\n      built_in:\n        'alias application boolean class constant date file integer list ' +\n        'number real record string text ' +\n        'activate beep count delay launch log offset read round ' +\n        'run say summarize write ' +\n        'character characters contents day frontmost id item length ' +\n        'month name paragraph paragraphs rest reverse running time version ' +\n        'weekday word words year'\n    },\n    contains: [\n      STRING,\n      hljs.C_NUMBER_MODE,\n      {\n        className: 'built_in',\n        begin:\n          '\\\\b(clipboard info|the clipboard|info for|list (disks|folder)|' +\n          'mount volume|path to|(close|open for) access|(get|set) eof|' +\n          'current date|do shell script|get volume settings|random number|' +\n          'set volume|system attribute|system info|time to GMT|' +\n          '(load|run|store) script|scripting components|' +\n          'ASCII (character|number)|localized string|' +\n          'choose (application|color|file|file name|' +\n          'folder|from list|remote application|URL)|' +\n          'display (alert|dialog))\\\\b|^\\\\s*return\\\\b'\n      },\n      {\n        className: 'literal',\n        begin:\n          '\\\\b(text item delimiters|current application|missing value)\\\\b'\n      },\n      {\n        className: 'keyword',\n        begin:\n          '\\\\b(apart from|aside from|instead of|out of|greater than|' +\n          \"isn't|(doesn't|does not) (equal|come before|come after|contain)|\" +\n          '(greater|less) than( or equal)?|(starts?|ends|begins?) with|' +\n          'contained by|comes (before|after)|a (ref|reference)|POSIX file|' +\n          'POSIX path|(date|time) string|quoted form)\\\\b'\n      },\n      {\n        beginKeywords: 'on',\n        illegal: '[${=;\\\\n]',\n        contains: [\n          hljs.UNDERSCORE_TITLE_MODE,\n          PARAMS\n        ]\n      }\n    ].concat(COMMENTS),\n    illegal: '//|->|=>|\\\\[\\\\['\n  };\n}\n\nmodule.exports = applescript;\n"],"sourceRoot":""}