Skip to content

Instantly share code, notes, and snippets.

hljs.registerLanguage("jai", function(e) {
return {
aliases: ["jai"],
keywords: {
keyword: "xx break case continue defer else enum enum_flags for if return struct type_of union using inline no_inline push_context remove ifx then interface operator",
literal: "true false null",
},
illegal: "</",
contains: [
package bs;
import "core:mem"
// How many bytes the bitstream will initially allocate
BITSTREAM_INITIAL_SIZE: int: 128;
// By how much the buffer grows in each resize
BITSTREAM_GROWTH_RATE: f64: 2.0;