1Prism.languages.filament = { 2 'diff-addition': { 3 pattern: /^\+.*$/m 4 }, 5 'diff-deletion': { 6 pattern: /^-.*$/m 7 }, 8 'comment': Prism.languages.clike.comment, 9 'regex': { 10 pattern: /'[a-zA-Z]+/, 11 greedy: true 12 }, 13 'string': { 14 pattern: /(["])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, 15 greedy: true 16 }, 17 'class-name': { 18 pattern: /(\b(?:comp|new)\s+)\w+/i, 19 lookbehind: true 20 }, 21 'namespace': { 22 pattern: /\b(?:extern|comp)\b/, 23 lookbehind: true, 24 }, 25 'keyword': { 26 pattern: /\b(?:new|bundle|for|if)\b/, 27 lookbehind: true, 28 }, 29 'number': [ 30 { 31 pattern: /\b[0-9]+'b[0-1]+\b/ 32 }, 33 { 34 pattern: /\b[0-9]+'d[0-9]+\b/ 35 }, 36 { 37 pattern: /\b[0-9]+'x[0-9A-Fa-f]+\b/ 38 }, 39 { 40 pattern: /\b[0-9]+'o[0-7]+\b/ 41 }, 42 { 43 pattern: /\b(?:[0-9]+)(?!')\b/ 44 } 45 ], 46};
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.