I have string literals in javascript code and they have attributes whose values are methods, for example:
const test = `<div data-click="foo">test<div>`;
function foo() {}
And I'm trying to make "foo" highlighted separately, not just as a string, and so that you can use ctrl+b to go to the method:
I'm trying to use Language injection what am I doing wrong?
I believe this can be achieved by copying the built-in setting “*/@on.” and replacing the argument “on” with “data-click.” However, in my case, the configuration persistence after editing turned out to be broken.