diff --git a/server/src/inlay.ts b/server/src/inlay.ts index 9e2b246..6788b1b 100644 --- a/server/src/inlay.ts +++ b/server/src/inlay.ts @@ -45,7 +45,7 @@ export function getHints( let regex: RegExp; if (traExt == "msg") { regex = - /(Reply|NOption|GOption|BOption|mstr|display_mstr|floater|NLowOption|BLowOption|GLowOption)\((\d+)/g; + /(Reply|NOption|GOption|BOption|mstr|display_mstr|floater|NLowOption|BLowOption|GLowOption|GMessage|NMessage|BMessage|CompOption)\((\d+)/g; } else { regex = /@(\d+)/g; } diff --git a/server/src/translation.ts b/server/src/translation.ts index 0e57335..675ac54 100644 --- a/server/src/translation.ts +++ b/server/src/translation.ts @@ -237,7 +237,7 @@ export class Translation implements Translation { } const regexMsg = - /^(Reply|NOption|GOption|BOption|mstr|display_mstr|floater|NLowOption|BLowOption|GLowOption|GMessage|NMessage|BMessage)\((\d+)$/; + /^(Reply|NOption|GOption|BOption|mstr|display_mstr|floater|NLowOption|BLowOption|GLowOption|GMessage|NMessage|BMessage|CompOption)\((\d+)$/; const regexTra = /^@[0-9]+$/; function getLineKey(word: string, ext: "tra" | "msg") {