feat(lib): use const for TSCharacterRanges
This commit is contained in:
parent
00674e3162
commit
8744a4e3f2
2 changed files with 4 additions and 8 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue