Skip to content

Commit

Permalink
Add CompOption to translation and inlay hints, also GMessage/NMessage…
Browse files Browse the repository at this point in the history
…/BMessage to inlay.
  • Loading branch information
burner1024 committed Mar 10, 2024
1 parent b7367fc commit 5b73e63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/inlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion server/src/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 5b73e63

Please sign in to comment.