Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

93
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda