mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 08:07:49 +00:00
JSP files had no highlighting and showed a `?` icon; the HTML mode left directives, scriptlets, JSP comments and EL as plain text and flagged `<c:out/>` / `<jsp:include/>` as unclosed elements. - A JSP grammar layer (comments, directives, scriptlets, expressions, declarations, EL) with HTML and Java overlays, so markup split by JSP elements still nests and braces match across scriptlets. - EL as its own grammar top: member/index/method calls, namespaced functions, keyword operators, ternaries, lambdas and collection literals. - Block comments use `<%-- --%>` in markup and `//` in scriptlets; JSP comments and scriptlets fold. - `.jsp .jspf .jspx .jsph .tag .tagf .tagx` map to the JSP language with a file icon; `gen:jsp-grammar` regenerates the parser and a test checks it matches the grammar. Closes #870. Co-authored-by: jaw52 <53564781+jaw52@users.noreply.github.com>
23 lines
686 B
TypeScript
23 lines
686 B
TypeScript
import type { KnipConfig } from "knip";
|
|
|
|
const config: KnipConfig = {
|
|
// Entries come from the Vite (index.html), Vitest, Playwright and package.json script plugins.
|
|
project: [
|
|
"src/**/*.{ts,tsx,css}",
|
|
"!src/editor/core/cm/angular/parser.terms.ts",
|
|
"!src/editor/core/cm/jsp/parser.terms.ts",
|
|
"scripts/**/*.ts",
|
|
"perf/**/*.ts",
|
|
"e2e/**/*.ts",
|
|
],
|
|
ignoreExportsUsedInFile: true,
|
|
// lint-staged formats Rust files with the toolchain's rustfmt.
|
|
ignoreBinaries: ["rustfmt"],
|
|
compilers: {
|
|
// Fonts come in through `@import` in global.css.
|
|
css: (text: string) => [...text.matchAll(/(?<=@)import[^;]+/g)].join("\n"),
|
|
},
|
|
};
|
|
|
|
export default config;
|