There are many more than just TypeScript and SCSS, as shown here. The difficulty here comes from the fact that these files can support any number of new languages simply with the help of new loaders; it seems there would need to be a generic way to tokei to analyze them properly, using the lang attribute, for Vue and Svelte, and type attribute for Svelte (MIME Types).
As shown by the correct report of Pug in .vue files, such code to allow thing probably exists in the codebase and might only need to be extended to allow for <script> and <style> tags.
Changes will also have to be made to Svelte in languages.json to add <template to important_syntax.
Some languages that are affected include: Pug, CoffeeScript, TypeScript, LESS, PostCSS, Sass, Stylus and SugarSS.
Currently,
.vue
and.svelte
files do not correctly report their embedded languages when not using the defaults.Sample Vue File
Tokei Output
There are many more than just TypeScript and SCSS, as shown here. The difficulty here comes from the fact that these files can support any number of new languages simply with the help of new loaders; it seems there would need to be a generic way to tokei to analyze them properly, using the
lang
attribute, for Vue and Svelte, andtype
attribute for Svelte (MIME Types).As shown by the correct report of Pug in
.vue
files, such code to allow thing probably exists in the codebase and might only need to be extended to allow for<script>
and<style>
tags.Changes will also have to be made to
Svelte
in languages.json to add<template
toimportant_syntax
.Some languages that are affected include: Pug, CoffeeScript, TypeScript, LESS, PostCSS, Sass, Stylus and SugarSS.