tree-sitter-typescript icon indicating copy to clipboard operation
tree-sitter-typescript copied to clipboard

[Question] Should we reuse `highlights.scm`?

Open jcs090218 opened this issue 4 years ago • 0 comments

I know people are able to write javascript inside a typescript file. Should people load JavaScript's hightlights.scm file for a TypeScript file? Or should we just load scheme file separately for each language?

  • file.ts -> load ts/highlights.scm and js/highlights.scm
  • file.js -> load js/highlights.scm

or

  • file.ts -> load ts/highlights.scm
  • file.js -> load js/highlights.scm

jcs090218 avatar Feb 13 '21 14:02 jcs090218