fix: add stylus to CSS resolution cases and getAstGrepLang mapping

This commit is contained in:
Csaba Tuncsik
2026-03-18 20:49:29 +01:00
parent f4c5518453
commit f80eec476a
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -314,7 +314,7 @@ export function getAstGrepLang(ext: string): Lang | string | null {
".ts": Lang.TypeScript,
".tsx": Lang.Tsx,
".html": Lang.Html, ".htm": Lang.Html,
".css": Lang.Css, ".scss": Lang.Css, ".sass": Lang.Css, ".less": Lang.Css,
".css": Lang.Css, ".scss": Lang.Css, ".sass": Lang.Css, ".less": Lang.Css, ".styl": Lang.Css,
};
return map[ext] ?? null;
}
+2 -1
View File
@@ -39,7 +39,8 @@ export function resolveImport(
case "css":
case "scss":
case "sass":
case "less": {
case "less":
case "stylus": {
const cssExtensions = [".css", ".scss", ".sass", ".less", ".styl"];
// CSS @import: ./variables.css, ../mixins.scss
if (moduleSpecifier.startsWith(".")) {