зеркало из https://github.com/nextcloud/text.git
1 строка
4.7 KiB
Plaintext
1 строка
4.7 KiB
Plaintext
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/dts.js"],"names":["module","exports","hljs","STRINGS","className","variants","inherit","QUOTE_STRING_MODE","begin","end","contains","BACKSLASH_ESCAPE","illegal","NUMBERS","C_NUMBER_RE","relevance","PREPROCESSOR","keywords","beginKeywords","C_LINE_COMMENT_MODE","C_BLOCK_COMMENT_MODE","DTS_REFERENCE","DTS_KEYWORD","DTS_LABEL","DTS_CELL_PROPERTY","DTS_NODE","returnBegin","excludeEnd","name","IDENT_RE"],"mappings":"mGAwJAA,EAAOC,QA/IP,SAAaC,GACX,IAAMC,EAAU,CACdC,UAAW,SACXC,SAAU,CACRH,EAAKI,QAAQJ,EAAKK,kBAAmB,CACnCC,MAAO,kBAET,CACEA,MAAO,aACPC,IAAK,IACLC,SAAU,CAACR,EAAKS,mBAElB,CACEH,MAAO,UACPC,IAAK,IACLG,QAAS,OAKTC,EAAU,CACdT,UAAW,SACXC,SAAU,CACR,CACEG,MAAO,kDAET,CACEA,MAAON,EAAKY,cAGhBC,UAAW,GAGPC,EAAe,CACnBZ,UAAW,OACXI,MAAO,IACPC,IAAK,IACLQ,SAAU,CACR,eAAgB,gDAElBP,SAAU,CACR,CACEF,MAAO,OACPO,UAAW,GAEb,CACEG,cAAe,UACfT,IAAK,IACLQ,SAAU,CACR,eAAgB,WAElBP,SAAU,CACRR,EAAKI,QAAQH,EAAS,CACpBC,UAAW,gBAEb,CACEA,UAAW,cACXI,MAAO,IACPC,IAAK,IACLG,QAAS,SAIfT,EACAD,EAAKiB,oBACLjB,EAAKkB,uBAIHC,EAAgB,CACpBjB,UAAW,WACXI,MAAO,gBAGHc,EAAc,CAClBlB,UAAW,eACXI,MAAO,qBAGHe,EAAY,CAChBnB,UAAW,SACXI,MAAO,gCAGHgB,EAAoB,CACxBpB,UAAW,SACXI,MAAO,IACPC,IAAK,IACLC,SAAU,CACRG,EACAQ,IAIEI,EAAW,CACfrB,UAAW,QACXI,MAAO,6BACPC,IAAK,QACLiB,aAAa,EACbC,YAAY,GAqBd,MAAO,CACLC,KAAM,cACNX,SAAU,GACVP,SAAU,CArBU,CACpBN,UAAW,QACXI,MAAO,WACPC,IAAK,MACLM,UAAW,GACXL,SAAU,CACRW,EACAC,EACAC,EACAE,EACAD,EACAtB,EAAKiB,oBACLjB,EAAKkB,qBACLP,EACAV,IASAkB,EACAC,EACAC,EACAE,EACAD,EACAtB,EAAKiB,oBACLjB,EAAKkB,qBACLP,EACAV,EACAa,EACA,CACER,MAAON,EAAK2B,SAAW,KACvBZ,SAAU","file":"highlight/dts.js?v=50adafc864e97fc5e6b8","sourcesContent":["/*\nLanguage: Device Tree\nDescription: *.dts files used in the Linux kernel\nAuthor: Martin Braun <martin.braun@ettus.com>, Moritz Fischer <moritz.fischer@ettus.com>\nWebsite: https://elinux.org/Device_Tree_Reference\nCategory: config\n*/\n\n/** @type LanguageFn */\nfunction dts(hljs) {\n const STRINGS = {\n className: 'string',\n variants: [\n hljs.inherit(hljs.QUOTE_STRING_MODE, {\n begin: '((u8?|U)|L)?\"'\n }),\n {\n begin: '(u8?|U)?R\"',\n end: '\"',\n contains: [hljs.BACKSLASH_ESCAPE]\n },\n {\n begin: '\\'\\\\\\\\?.',\n end: '\\'',\n illegal: '.'\n }\n ]\n };\n\n const NUMBERS = {\n className: 'number',\n variants: [\n {\n begin: '\\\\b(\\\\d+(\\\\.\\\\d*)?|\\\\.\\\\d+)(u|U|l|L|ul|UL|f|F)'\n },\n {\n begin: hljs.C_NUMBER_RE\n }\n ],\n relevance: 0\n };\n\n const PREPROCESSOR = {\n className: 'meta',\n begin: '#',\n end: '$',\n keywords: {\n 'meta-keyword': 'if else elif endif define undef ifdef ifndef'\n },\n contains: [\n {\n begin: /\\\\\\n/,\n relevance: 0\n },\n {\n beginKeywords: 'include',\n end: '$',\n keywords: {\n 'meta-keyword': 'include'\n },\n contains: [\n hljs.inherit(STRINGS, {\n className: 'meta-string'\n }),\n {\n className: 'meta-string',\n begin: '<',\n end: '>',\n illegal: '\\\\n'\n }\n ]\n },\n STRINGS,\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE\n ]\n };\n\n const DTS_REFERENCE = {\n className: 'variable',\n begin: /&[a-z\\d_]*\\b/\n };\n\n const DTS_KEYWORD = {\n className: 'meta-keyword',\n begin: '/[a-z][a-z\\\\d-]*/'\n };\n\n const DTS_LABEL = {\n className: 'symbol',\n begin: '^\\\\s*[a-zA-Z_][a-zA-Z\\\\d_]*:'\n };\n\n const DTS_CELL_PROPERTY = {\n className: 'params',\n begin: '<',\n end: '>',\n contains: [\n NUMBERS,\n DTS_REFERENCE\n ]\n };\n\n const DTS_NODE = {\n className: 'class',\n begin: /[a-zA-Z_][a-zA-Z\\d_@]*\\s\\{/,\n end: /[{;=]/,\n returnBegin: true,\n excludeEnd: true\n };\n\n const DTS_ROOT_NODE = {\n className: 'class',\n begin: '/\\\\s*\\\\{',\n end: /\\};/,\n relevance: 10,\n contains: [\n DTS_REFERENCE,\n DTS_KEYWORD,\n DTS_LABEL,\n DTS_NODE,\n DTS_CELL_PROPERTY,\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n NUMBERS,\n STRINGS\n ]\n };\n\n return {\n name: 'Device Tree',\n keywords: \"\",\n contains: [\n DTS_ROOT_NODE,\n DTS_REFERENCE,\n DTS_KEYWORD,\n DTS_LABEL,\n DTS_NODE,\n DTS_CELL_PROPERTY,\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n NUMBERS,\n STRINGS,\n PREPROCESSOR,\n {\n begin: hljs.IDENT_RE + '::',\n keywords: \"\"\n }\n ]\n };\n}\n\nmodule.exports = dts;\n"],"sourceRoot":""} |