1hljs.registerLanguage("filament", (hljs) => ({ 2 name: "filament", 3 keywords: { 4 keyword: "bundle in import extern for if else new where comp", 5 }, 6 contains: [ 7 hljs.QUOTE_STRING_MODE, 8 { 9 className: 'literal', 10 scope: 'number', 11 begin: '\\b[0-9]+' 12 }, 13 { 14 className: 'operator', 15 begin: '[-+*<>=]' 16 }, 17 { 18 className: 'variable', 19 begin: '#[A-Za-z][0-9A-Za-z]*' 20 }, 21 hljs.COMMENT( 22 '/\\*', // begin 23 '\\*/', // end 24 {} 25 ), 26 hljs.C_LINE_COMMENT_MODE, 27 ], 28})); 29 30hljs.registerLanguage("verilog", (hljs) => ({ 31 name: "verilog", 32 keywords: { 33 keyword: "module endmodule input output" 34 }, 35 contains: [ 36 { 37 className: 'literal', 38 scope: 'number', 39 begin: '[0-9]+' 40 }, 41 ] 42})); 43 44hljs.initHighlightingOnLoad();
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.