дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
FreeMarker files were highlighted by a stream mode, so markup had no HTML completion and script/style content was plain text. A Lezer grammar now parses the template layer (directives, user-defined directive calls, interpolations, comments, noparse), the first directive fixing the angle or square syntax, and the text between them is mounted as one HTML document: markup nests across directives and <script>/<style> get JavaScript and CSS. Block directives fold, indent, match their end tags and get their end tag when > is typed; completion offers directives after <#, the open blocks' end tags after </, and built-ins after ?. Comment Block uses <#-- --> ([#-- --] in the square syntax). Fixes #6906
32 рядки
1.2 KiB
TypeScript
32 рядки
1.2 KiB
TypeScript
import type { KnipConfig } from "knip";
|
|
|
|
const config: KnipConfig = {
|
|
// Entries come from the Vite (index.html), Vitest, Playwright and package.json script plugins;
|
|
// standalone browser fixtures are loaded by their own HTML pages.
|
|
entry: ["e2e/*.fixture.{ts,tsx}", "perf/**/*.fixture.{ts,tsx}"],
|
|
project: [
|
|
"src/**/*.{ts,tsx,css}",
|
|
"!src/editor/core/cm/angular/parser.terms.ts",
|
|
"!src/editor/core/cm/jsp/parser.terms.ts",
|
|
"!src/editor/core/cm/astro/parser.terms.ts",
|
|
"!src/editor/core/cm/django/parser.terms.ts",
|
|
"!src/editor/core/cm/freemarker/parser.terms.ts",
|
|
"scripts/**/*.ts",
|
|
"perf/**/*.ts",
|
|
"evals/**/*.ts",
|
|
"e2e/**/*.ts",
|
|
"smoke/**/*.ts",
|
|
],
|
|
// Plugins' web pages are projects of their own (own package.json, checked by plugins/build.sh and CI).
|
|
ignore: ["plugins/**/web-src/**"],
|
|
ignoreExportsUsedInFile: true,
|
|
// System tools used by formatting and language smoke fixtures.
|
|
ignoreBinaries: ["rustfmt", "composer", "make"],
|
|
compilers: {
|
|
// Fonts come in through `@import` in global.css.
|
|
css: (text: string) => [...text.matchAll(/(?<=@)import[^;]+/g)].join("\n"),
|
|
},
|
|
};
|
|
|
|
export default config;
|