aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language/ja/japanese.js
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-05-31 08:06:52 -0700
committerGitHub <noreply@github.com>2024-05-31 15:06:52 +0000
commit76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch)
treebdba43d9ba704885383c7f308c6fe3f574c647c5 /ext/js/language/ja/japanese.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'ext/js/language/ja/japanese.js')
-rw-r--r--ext/js/language/ja/japanese.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/js/language/ja/japanese.js b/ext/js/language/ja/japanese.js
index 2200e077..bad773b3 100644
--- a/ext/js/language/ja/japanese.js
+++ b/ext/js/language/ja/japanese.js
@@ -63,7 +63,7 @@ const CJK_IDEOGRAPH_RANGES = [
CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E_RANGE,
CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F_RANGE,
CJK_COMPATIBILITY_IDEOGRAPHS_RANGE,
- CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT_RANGE
+ CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT_RANGE,
];
/**
@@ -90,7 +90,7 @@ const JAPANESE_RANGES = [
[0xff1a, 0xff1f], // Fullwidth punctuation 2
[0xff3b, 0xff3f], // Fullwidth punctuation 3
[0xff5b, 0xff60], // Fullwidth punctuation 4
- [0xffe0, 0xffee] // Currency markers
+ [0xffe0, 0xffee], // Currency markers
];
const SMALL_KANA_SET = new Set('ぁぃぅぇぉゃゅょゎァィゥェォャュョヮ');
@@ -151,7 +151,7 @@ const HALFWIDTH_KATAKANA_MAPPING = new Map([
['レ', 'レ--'],
['ロ', 'ロ--'],
['ワ', 'ワ--'],
- ['ン', 'ン--']
+ ['ン', 'ン--'],
]);
const VOWEL_TO_KANA_MAPPING = new Map([
@@ -160,7 +160,7 @@ const VOWEL_TO_KANA_MAPPING = new Map([
['u', 'ぅうくぐすずっつづぬふぶぷむゅゆるゥウクグスズッツヅヌフブプムュユルヴ'],
['e', 'ぇえけげせぜてでねへべぺめれゑヶェエケゲセゼテデネヘベペメレヱヶヹ'],
['o', 'ぉおこごそぞとどのほぼぽもょよろをォオコゴソゾトドノホボポモョヨロヲヺ'],
- ['', 'のノ']
+ ['', 'のノ'],
]);
/** @type {Map<string, string>} */
@@ -255,7 +255,7 @@ function segmentizeFurigana(reading, readingNormalized, groups, groupsStart) {
reading.substring(textLength),
readingNormalized.substring(textLength),
groups,
- groupsStart + 1
+ groupsStart + 1,
);
if (segments !== null) {
if (reading.startsWith(text)) {
@@ -274,7 +274,7 @@ function segmentizeFurigana(reading, readingNormalized, groups, groupsStart) {
reading.substring(i),
readingNormalized.substring(i),
groups,
- groupsStart + 1
+ groupsStart + 1,
);
if (segments !== null) {
if (result !== null) {