Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

98
Visualizações
How to inject an embedded language to tagged template strings on JavaScript?

I'm trying to contribute a grammar for an embedded language within JavaScript's tagged template strings. I'm able to inject the grammar in all template strings in the file. However, I'm interested only on tagged templates. Having the following JavaScript file:

const notTagged = ` do not inject here`;
const tagget = myparser`Foo(1 , (1+ 41))`; //Inject/apply the grammar here. 

i would like to inject the grammar on the second line of the program (i.e., the tagged template). Concretely, I would like to know how to specify this using the "injectionSelector" property of the grammar, cause at the moment I can only do "injectionSelector":"L:string.template.js" that matches all string templates on the JavaScript file.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda