fix(generate): mark TSCharacterRange as static (#4255)
Problem: Linking different parsers into one executable fails due to duplicate symbols. Solution: Mark `TSCharacterRange` as `static` when generating parsers. fixes #4209
This commit is contained in:
parent
b749c02eb5
commit
8138dba800
1 changed files with 5 additions and 1 deletions
|
|
@ -1113,7 +1113,11 @@ impl Generator {
|
|||
return;
|
||||
}
|
||||
|
||||
add_line!(self, "const TSCharacterRange {}[] = {{", info.constant_name);
|
||||
add_line!(
|
||||
self,
|
||||
"static 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