update "scripts/gen-unicode-table.js"

This commit is contained in:
Evan Wallace
2020-11-02 16:53:31 -08:00
parent 2e5f8a83f8
commit 68fd527881
2 changed files with 1356 additions and 1356 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -27,7 +27,7 @@ function generateRangeTable(codePoints) {
index++;
}
let end = codePoints[index - 1];
lines.push(`\t\t{0x${start.toString(16)}, 0x${end.toString(16)}, 1},`);
lines.push(`\t\t{Lo: 0x${start.toString(16)}, Hi: 0x${end.toString(16)}, Stride: 1},`);
}
lines.push(
@@ -43,7 +43,7 @@ function generateRangeTable(codePoints) {
index++;
}
let end = codePoints[index - 1];
lines.push(`\t\t{0x${start.toString(16)}, 0x${end.toString(16)}, 1},`);
lines.push(`\t\t{Lo: 0x${start.toString(16)}, Hi: 0x${end.toString(16)}, Stride: 1},`);
}
lines.push(
@@ -53,9 +53,9 @@ function generateRangeTable(codePoints) {
return lines.join('\n');
}
fs.writeFileSync(path.join(__dirname, '..', 'internal', 'lexer', 'unicode.go'),
fs.writeFileSync(path.join(__dirname, '..', 'internal', 'js_lexer', 'unicode.go'),
`// This file was automatically generated by ${path.basename(__filename)}. Do not edit.
package lexer
package js_lexer
import "unicode"