@treelight/ecma
v0.6.0
Published
Shared ECMAScript highlight queries for Treelight languages.
Downloads
977
Maintainers
Readme
@treelight/ecma
Shared ECMAScript highlight and injection queries for Treelight language packages. JavaScript-family packages use these injections for tagged templates, regular-expression literals, and JSDoc comments.
Install
npm install @treelight/ecmaUsage
Most applications should install @treelight/javascript, @treelight/typescript, or @treelight/tsx instead. Those packages consume the shared ECMAScript queries from this package.
import ecma, { ecmaHighlightQuery } from '@treelight/ecma';
console.log(ecma.id);
console.log(ecmaHighlightQuery);See the Treelight README for runtime usage.
