PageSourceSearch

https://pika.page/assets/highlight.js--lib--languages--yaml-17de95…09308156caa6582ebd754ff136727263af56f5f6.js

js pika.page collected 2026-09-25 18:56:43 UTC 2,107 bytes, 4 lines download raw bytes

vendor: 2,107 bytes, lines 1-4
1// highlight.js/lib/languages/[email protected] downloaded from https://ga.jspm.io/npm:[email protected]/es/languages/yaml.js
2
3function yaml(e){const n="true false yes no null";const a="[\\w#;/?:@&=+$,.~*'()[\\]]+";const s={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]};const t={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]};const c={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]};const i={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,t]};const l=e.inherit(i,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]});const r="[0-9]{4}(-[0-9][0-9]){0,2}";const b="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?";const g="(\\.[0-9]*)?";const o="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?";const m={className:"number",begin:"\\b"+r+b+g+o+"\\b"};const N={end:",",endsWithParent:true,excludeEnd:true,keywords:n,relevance:0};const d={begin:/\{/,end:/\}/,contains:[N],illegal:"\\n",relevance:0};const u={begin:"\\[",end:"\\]",contains:[N],illegal:"\\n",relevance:0};const v=[s,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:true,excludeEnd:true,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},m,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},d,u,c,i];const E=[...v];E.pop();E.push(l);N.contains=E;return{name:"YAML",case_insensitive:true,aliases:["yml"],contains:v}}export{yaml as default};
4

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.