Files
openidea/src-tauri/tauri.macos.conf.json
Jaw ec465964d2 feat(editor): highlight JSP pages (#937)
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>
2026-11-03 17:29:59 +08:00

101 lines
1.8 KiB
JSON

{
"bundle": {
"fileAssociations": [
{
"name": "Text and Source Code",
"ext": [],
"contentTypes": [
"public.text",
"public.plain-text",
"public.source-code",
"public.script",
"public.shell-script",
"public.json",
"public.xml",
"public.yaml",
"public.python-script"
],
"role": "Editor",
"rank": "Alternate"
},
{
"name": "Source Code",
"ext": [
"rs",
"go",
"py",
"pyi",
"pyw",
"cjs",
"scss",
"less",
"rst",
"tex",
"ps1",
"bat",
"fish",
"kt",
"kts",
"gradle",
"groovy",
"scala",
"sc",
"ts",
"mts",
"cts",
"jsx",
"vue",
"svelte",
"jsp",
"dart",
"cs",
"fs",
"fsx",
"hs",
"ex",
"exs",
"erl",
"clj",
"cljs",
"edn",
"lua",
"zig",
"nix",
"jl",
"ml",
"mli",
"tf",
"hcl",
"proto",
"graphql",
"gql",
"sql",
"http",
"properties",
"ini",
"cfg",
"conf",
"env",
"lock",
"log",
"diff",
"patch",
"gitignore",
"dockerignore",
"editorconfig",
"dockerfile"
],
"role": "Editor",
"rank": "Alternate"
},
{
"name": "Folder",
"ext": [],
"contentTypes": ["public.folder"],
"role": "Viewer",
"rank": "Alternate"
}
]
}
}