1const n=`# m Function Matcher for Sherlock 2 3This plugin enables [Sherlock](https://inlang.com/m/r7kp499g/app-inlang-ideExtension) (VS Code extension) to recognize \`m.message()\` function calls used by [Paraglide JS](https://inlang.com/m/gerre34r/library-inlang-paraglideJs). 4 5 6 7## What it does 8 9- **Inline previews**: See translations directly in your code editor 10- **Message extraction**: Extract hardcoded strings into messages 11- **Linting**: Get warnings for missing or invalid message references 12 13## Supported file types 14 15- TypeScript (\`.ts\`, \`.tsx\`) 16- JavaScript (\`.js\`, \`.jsx\`) 17- Svelte (\`.svelte\`) 18- Vue (\`.vue\`) 19- Astro (\`.astro\`) 20 21## Installation 22 23Add the plugin to your \`project.inlang/settings.json\`: 24 25\`\`\`json 26{ 27 "modules": [ 28 "https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@latest/dist/index.js" 29 ] 30} 31\`\`\` 32 33Then install [Sherlock](https://marketplace.visualstudio.com/items?itemName=inlang.vs-code-extension) from the VS Code marketplace. 34 35## Matched patterns 36 37The plugin recognizes these patterns: 38 39| Pattern | Example | 40| -------------- | ------------------------------- | 41| Simple call | \`m.welcome()\` | 42| With variables | \`m.greeting({ name: "World" })\` | 43| In JSX | \`{m.button_label()}\` | 44`;export{n as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.