vendor: 2,478 bytes, lines 1-75
1/* eslint-disable no-misleading-character-class */ 2 3// 1C:Enterprise 4// https://github.com/Diversus23/ 5// 6Prism.languages.bsl = { 7 'comment': /\/\/.*/, 8 'string': [ 9 // СÑÑоки 10 // Strings 11 { 12 pattern: /"(?:[^"]|"")*"(?!")/, 13 greedy: true 14 }, 15 // ÐаÑа и вÑÐµÐ¼Ñ 16 // Date & time 17 { 18 pattern: /'(?:[^'\r\n\\]|\\.)*'/ 19 } 20 ], 21 'keyword': [ 22 { 23 // RU 24 pattern: /(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|длÑ|новÑй|пÑеÑваÑÑ|попÑÑка|иÑклÑÑение|вÑзваÑÑиÑклÑÑение|инаÑе|конеÑпопÑÑки|неопÑеделено|ÑÑнкÑиÑ|пеÑем|возвÑаÑ|конеÑÑÑнкÑии|еÑли|инаÑееÑли|пÑоÑедÑÑа|конеÑпÑоÑедÑÑÑ|Ñогда|знаÑ|ÑкÑпоÑÑ|конеÑеÑли|из|каждого|иÑÑина|ложÑ|по|Ñикл|конеÑÑикла|вÑполниÑÑ)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i, 25 lookbehind: true 26 }, 27 { 28 // EN 29 pattern: /\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i 30 } 31 ], 32 'number': { 33 pattern: /(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i, 34 lookbehind: true 35 }, 36 'operator': [ 37 /[<>+\-*/]=?|[%=]/, 38 // RU 39 { 40 pattern: /(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i, 41 lookbehind: true 42 }, 43 // EN 44 { 45 pattern: /\b(?:and|not|or)\b/i 46 } 47 ], 48 'punctuation': /\(\.|\.\)|[()\[\]:;,.]/, 49 'directive': [ 50 // Теги пÑепÑоÑеÑÑоÑа вида &ÐлиенÑ, &СеÑвеÑ, ... 51 // Preprocessor tags of the type &Client, &Server, ... 52 { 53 pattern: /^([ \t]*)&.*/m, 54 lookbehind: true, 55 greedy: true, 56 alias: 'important' 57 }, 58 // ÐнÑÑÑÑкÑии пÑепÑоÑеÑÑоÑа вида: 59 // #ÐÑли СеÑÐ²ÐµÑ Ð¢Ð¾Ð³Ð´Ð° 60 // ... 61 // #ÐонеÑÐÑли 62 // Preprocessor instructions of the form: 63 // #If Server Then 64 // ... 65 // #EndIf 66 { 67 pattern: /^([ \t]*)#.*/gm, 68 lookbehind: true, 69 greedy: true, 70 alias: 'important' 71 } 72 ] 73}; 74 75Prism.languages.oscript = Prism.languages['bsl'];
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.