feat(lib): use const for TSCharacterRanges

This commit is contained in:
Amaan Qureshi 2024-12-22 23:25:48 -05:00
parent 00674e3162
commit 8744a4e3f2
2 changed files with 4 additions and 8 deletions

View file

@ -983,11 +983,7 @@ impl Generator {
return;
}
add_line!(
self,
"static TSCharacterRange {}[] = {{",
info.constant_name
);
add_line!(self, "const TSCharacterRange {}[] = {{", info.constant_name);
indent!(self);
for (ix, range) in characters.ranges().enumerate() {