Skip to content

feat(editor): support syntax highlighting for JSP (.jsp) files (#9795) - #10858

Closed
hwantage wants to merge 10 commits into
stablyai:mainfrom
hwantage:feat/jsp-syntax-highlighting
Closed

hwantage wants to merge 10 commits into
stablyai:mainfrom
hwantage:feat/jsp-syntax-highlighting

Conversation

@hwantage

@hwantage hwantage commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds syntax highlighting and language configuration for JavaServer Pages (.jsp, .jspf) files in Monaco
    Editor (addresses #9795).
    • Connects Monaco's HTML Language Service (registerHTMLLanguageService) for JSP files to enable HTML tag completions, hovers, document symbols, and folding, while disabling buffer-modifying features (rename, formatting) to prevent scriptlet corruption.
    • Fixes comparison operator highlighting issue where < and > inside scriptlets or EL expressions were
      incorrectly paired as bracket match pairs.
    • Refines tokenization for Java scriptlets (ignoreCase: false to avoid colouring variables as types in List list), adds (?!%>) lookahead guards to comments/operators to prevent swallowing the %> closing tag, and
      switches operator tokens to keyword.operator for proper theme compatibility.
    • Implements state-based tokenization for JSTL / custom tags (<c:if>, <c:forEach>, etc.) and supports
      embedded ${...} and #{...} EL expressions within tag attributes.
    • Restores standard nextEmbedded: 'javascript' and nextEmbedded: 'css' stack handling for <script> and
      <style> blocks to ensure correct keyword colors (function, var, etc.) and bracket matching.
    • Special thanks to @taehwanis for collaborating on the HTML language service integration and tokenizer
      refinements. (feat(editor): support syntax highlighting for JSP (.jsp) files (#9795) #10858)

Details & Verification

What Changed

  1. Language Detection & Setup: Registered .jsp and .jspf file extensions to the jsp language ID in language-detect.ts and monaco-setup.ts (routing to htmlWorker).
  2. HTML Language Service: Wired registerHTMLLanguageService('jsp', undefined, jspHtmlModeConfiguration) to provide HTML hovers, completions, and folding while keeping buffer-editing features (rename, formatting) disabled.
  3. Bracket Matching: Excluded < and > from brackets, autoClosingPairs, and surroundingPairs in register-jsp.ts to prevent false bracket pair highlighting on comparison operators.
  4. Tokenization & Robustness:
    - Switched to case-sensitive matching for Java tokens to prevent List list from colouring list as a type.
    - Added (?!%>) lookahead guards to line comments, block comments, and % operators so scriptlet closing tags (%>) are never swallowed.
    - Used keyword.operator for theme-compatible operator highlighting.
  5. Custom & JSTL Tag Parsing: Tokenizes <c:*> and custom prefix tags with @tagRest / @tagCustom state transitions, with support for embedded EL (${...}, #{...}) and scriptlet expressions in attributes.
  6. Embedded Language Support: Smooth transition for embedded JavaScript and CSS with @pop handling on closing tags.
  7. Unit Tests: Added 17 comprehensive Vitest test cases in register-jsp.test.ts checking Monarch rule matches for operators, JSTL tags, EL expressions, comments, edge cases, and language service registration.

Screenshots / Evidence

JSP Syntax & JSTL Tags Script & Embedded JS
image image

Testing

  • Vitest Unit Tests: npx vitest run src/renderer/src/lib/monaco-languages/register-jsp.test.ts src/renderer/src/lib/language-detect.test.ts (Files 2 passed (2), Tests 19 passed (19))
  • TypeScript Check: pnpm run tc:web (0 errors)
  • Linter Check: npx oxlint on changed files (0 warnings, 0 errors)
  • pnpm lint (0 errors from this change)
  • pnpm test (Files 3463 passed | 7 skipped(3470), Tests 37046 passed | 60 skipped (37106))
  • pnpm build (success)
  • Manual Verification (pnpm dev): Tested and verified syntax highlighting, JSTL tags, and bracket matching against real-world legacy JSP files.

AI Review Report

  • Cross-Platform Compatibility: Uses standard Monaco Editor extension registration. Compatible across macOS, Linux, and Windows.
  • SSH / Remote Compatibility: Pure renderer-side Monaco tokenization module. No native process or host filesystem assumptions.
  • Performance Risk: Efficient regex-based Monarch tokenizer registered at boot. Zero memory leaks or extra network fetches.
  • Security & Reliability: Pure tokenization inside Monaco's sandboxed renderer.

Closes #9795

@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 8b64f684-d543-42f1-ba05-33044998efba

📥 Commits

Reviewing files that changed from the base of the PR and between 21ee0e3 and 22fe051.

📒 Files selected for processing (2)
  • src/renderer/src/lib/monaco-languages/register-jsp.test.ts
  • src/renderer/src/lib/monaco-languages/register-jsp.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

Adds .jsp and .jspf language detection. Adds JSP Monarch tokenization for JSP, Java, EL, HTML, JavaScript, and CSS content. Adds JSP language and HTML service configuration. Registers JSP with Monaco, routes JSP to the HTML worker, and adds tokenizer and registration tests.

Priority: Normal

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 5 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary change: JSP syntax highlighting support for .jsp files. It is concise and directly related to the pull request.
Description check ✅ Passed The description provides a clear summary, implementation details, rationale, linked issue, screenshots, testing results, and compatibility notes. It does not use every template heading, but it covers …
Linked Issues check ✅ Passed Issue #9795 requires syntax highlighting for .jsp files that combine HTML, Java snippets, and JSP tags. language-detect.ts maps .jsp and .jspf to jsp. register-jsp.ts defines Monarch rules…
Out of Scope Changes check ✅ Passed The changes remain within Issue #9795. Language detection, JSP registration, syntax tokenization, HTML service integration, worker routing, and related tests support JSP recognition and rendering. Ren…
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/renderer/src/lib/monaco-languages/register-jsp.ts (1)

81-97: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Add bracket/delimiter tokenization for Java scriptlet and EL punctuation.

jspScriptletOpen has no rule for {}()[] or ;/,, and elExpression has no rule for ()[], ,, ?, : — common in scriptlet Java code and EL function calls/array access/ternaries (e.g. ${fn:length(list)}, ${list[0]}, <% if (x) { ... } %>). These characters currently fall through to defaultToken one char at a time (no crash, but no bracket-matching or delimiter styling either).

♻️ Proposed additions
     jspScriptletOpen: [
       [/%>/, 'keyword', '`@pop`'],
       [/\/\/.*/, 'comment'],
       [/\/\*/, 'comment', '`@javaComment`'],
       [/"([^"\\]|\\.)*"/, 'string'],
       [/'([^'\\]|\\.)*'/, 'string'],
       [/\b(true|false|null)\b/, 'constant.language'],
       [
         /\b(if|else|for|while|do|switch|case|default|break|continue|return|try|catch|finally|throw|new|import|package)\b/,
         'keyword'
       ],
       [/\b(int|long|short|byte|float|double|boolean|char|void|String|Object)\b/, 'type'],
+      [/[{}()[\]]/, '`@brackets`'],
+      [/[;,.]/, 'delimiter'],
       [/<=|>=|==|!=|&&|\|\||<<|>>|>>>|[-+*/%&|^<>=!]/, 'operator'],
       [/[a-zA-Z_][a-zA-Z0-9_]*/, 'identifier'],
       [/[0-9]+/, 'number'],
       [/\s+/, 'white']
     ],
     ...
     elExpression: [
       [/\}/, 'delimiter.curly', '`@pop`'],
       [/\b(and|or|not|eq|ne|gt|lt|ge|le|empty|instanceof)\b/, 'keyword.operator'],
       [/<=|>=|==|!=|&&|\|\||[-+*/%<>=!]/, 'keyword.operator'],
       [/\b(true|false|null)\b/, 'constant.language'],
       [/"([^"\\]|\\.)*"/, 'string'],
       [/'([^'\\]|\\.)*'/, 'string'],
+      [/[()[\]]/, '`@brackets`'],
+      [/[,?:]/, 'delimiter'],
       [/[a-zA-Z_][a-zA-Z0-9_.]*/, 'variable'],
       [/[0-9]+/, 'number'],
       [/\s+/, 'white']
     ],

@brackets resolves against the already-declared brackets array (lines 9-13), so no further config changes are needed.

Also applies to: 103-113


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e3f9e211-33f0-4f7f-bb2a-2ec4bd064a50

📥 Commits

Reviewing files that changed from the base of the PR and between 58ef46d and c9fc5fd637f8c0cd9f8507583e234e809399edef.

📒 Files selected for processing (6)
  • config/localization-coverage-allowlist.json
  • src/renderer/src/lib/language-detect.test.ts
  • src/renderer/src/lib/language-detect.ts
  • src/renderer/src/lib/monaco-languages/register-jsp.test.ts
  • src/renderer/src/lib/monaco-languages/register-jsp.ts
  • src/renderer/src/lib/monaco-setup.ts

@taehwanis

Copy link
Copy Markdown
Contributor

Hi @hwantage — I work in a large JSP codebase daily, so this PR was exactly the feature I needed and I read through it closely to see if I could use it right away. Three things came up while digging in, in case any are useful:

1. The HTML language service can be attached to a custom language id. registerHTMLLanguageService(languageId, options, modeConfiguration) is exported from the html contribution, and Monaco calls it for html, handlebars and razor — all "HTML plus template syntax", same as JSP. Without it a tokenizer-only registration gives up tag completion, hovers and folding. Two things I'd flag if you try it: the worker switch in monaco-setup.ts needs a case 'jsp' in the html group (MonacoEnvironment.getWorker takes precedence over Monaco's own fallback, so otherwise every call reaches the plain editor worker), and rename is worth turning off — it is the only provider that writes to the buffer, and it derives its edits from parsing the file as HTML.

2. operator doesn't resolve in the built-in themes. vs-dark defines operator.scss, operator.sql and operator.swift but no bare operator, so line 93's comparison operators tokenize correctly and still render unstyled. keyword.operator — which your elExpression already uses on line 106 — falls back to keyword and shows up. The test asserting ... as operator passes either way, which is what makes this easy to miss.

3. <script> blocks lose EL and scriptlets. Once nextEmbedded: 'javascript' takes over, ${...} and <%= ... %> inside the block are tokenized as JavaScript. In a legacy JSP codebase I checked (~1,650 files), about a third embed EL inside <script>. Monarch can't re-enter host rules mid-embed so this may just be a known limitation, but the share is big enough to be worth documenting.

I've opened #11309 with an implementation that wires the language service. Please feel free to lift any of it into this PR — if the maintainers prefer your shape I'll close mine.

@hwantage

Copy link
Copy Markdown
Contributor Author

@taehwanis Thanks for the detailed review and code proposal! I've merged your HTML language service integration and tokenizer fixes into this PR (#10858) with Co-authored-by credit.

@greptile-apps

greptile-apps Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Greptile Summary

This PR adds full JSP (.jsp / .jspf) syntax highlighting to Monaco Editor via a new Monarch tokenizer, wires the HTML Language Service for tag completions and hovers, and registers both file extensions in the language-detect table.

  • Tokenizer (register-jsp.ts): 14 tokenizer states covering JSP directives, scriptlets, EL expressions, JSTL/custom tags, HTML comments, and embedded JavaScript/CSS blocks. (?!%>) lookahead guards and a dedicated javaBlockComment state with @popall prevent the %> scriptlet terminator from being swallowed by operators, line comments, block comments, or string literals.
  • Language configuration: Angle brackets are intentionally excluded from brackets, autoClosingPairs, and surroundingPairs to avoid false bracket-pair highlights on comparison operators inside scriptlets and EL expressions.
  • Test coverage: 17 Vitest test cases verify state transitions, delimiter match lengths, lookahead guards, embedded-language pop rules, bracket exclusions, and tokenizer state-reference integrity.

Confidence Score: 5/5

Safe to merge — the change is self-contained renderer-side tokenization with no side-effects on existing languages.

The tokenizer is carefully designed: scriptlet terminator guards are in place for operators, line comments, block comments, and string literals; the HTML language service registration is idempotent; embedded JavaScript and CSS pops use both next and nextEmbedded as Monarch requires; and 17 test cases covering edge cases all pass. No existing language registrations are touched.

Files Needing Attention: No files require special attention.

Important Files Changed

Filename Overview
src/renderer/src/lib/monaco-languages/register-jsp.ts Core JSP tokenizer: introduces a Monarch language definition with 14 tokenizer states, careful (?!%>) lookahead guards, @popall for block-comment scriptlet terminator, case-sensitive Java keyword matching, and an HTML language service registration behind an idempotency guard.
src/renderer/src/lib/monaco-languages/register-jsp.test.ts 350-line Vitest suite with 17 test cases covering state transitions, delimiter lengths, operator lookaheads, embedded-language pops, bracket exclusions, and tokenizer state-reference integrity.
src/renderer/src/lib/language-detect.ts Adds .jsp and .jspf extension mappings to the EXT_TO_LANGUAGE lookup table, inserted in alphabetical order.
src/renderer/src/lib/language-detect.test.ts Adds one test case confirming both .jsp and .jspf paths resolve to the jsp language id.
src/renderer/src/lib/monaco-setup.ts Routes jsp to htmlWorker in the worker factory switch and calls registerJspLanguage(monaco) at boot, matching the pattern used by Svelte, Astro, Nim, and JSONL.

Reviews (3): Last reviewed commit: "• fix(renderer): improve JSP scriptlet t..." | Re-trigger Greptile

@taehwanis

Copy link
Copy Markdown
Contributor

@hwantage First, thanks for folding my suggestions into this PR and for the co-author credit — and your August 1 fixes look right to me. The scriptlet terminator inside block comments and string literals was the subtle one, and you got it.

I wanted to tell you about something before doing it rather than after.

While my #11294 and #11322 were going through, I noticed a pattern in how this repo merges outside contributions: small language-detect.ts changes get picked up in a day or two (both of mine were one to three lines, full CI, merged in 24-48h). Our two JSP PRs have been open since late July and CI has never been approved on either one. I think a 570-line new grammar is simply the hardest kind of change for a reviewer to start on in a queue this size.

So I closed my #11309 — it duplicated yours anyway — and opened a two-line fallback instead: #12402 maps .jsp/.jspf onto the built-in html id. No grammar, no worker routing.

To be exact about what that does and does not do, I read the rendered token classes in a running build rather than reasoning from the diff:

  • markup, <style> and <script> blocks get colored
  • Java inside <% %> comes out as a single mtk1 span — no tokenization at all
  • ${...} EL is likewise mtk1; only the braces pick up bracket-pair colorization

Monaco's html tokenizer has no <% rule, so that ceiling is structural rather than something to tune. Scriptlet and EL tokenization is exactly what your PR provides and what an html mapping can never reach. The fallback body says that explicitly, links here, and states the two entries should become 'jsp' once this lands.

One thing I want to flag honestly: there is a chance a maintainer sees the fallback merge and treats #9795 as addressed, then closes this as superseded. A batch of PRs was closed that way on August 3. I would rather that not happen, which is why #12402 is written to point at this PR instead of competing with it.

If you would rather I hold it until yours lands, say so and I will close it — no hard feelings at all. And if you would rather own that two-line change under your own name, I will close mine right away and you can open it. It is the easiest merge on the board and I am happy for it to be yours.

@hwantage

hwantage commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Thank you so much for taking the time to share your thoughts and for keeping an eye on this!

I’ve also been closely following the daily updates in Orca and saw your two recent PRs get merged. Since Orca
is such an active project with commits almost every day, I assume the maintainers are prioritizing more critical updates and improvements, which leaves our PR further down the review queue. The fact that JSP is relatively less common in today's ecosystem might be another factor.

Still, even if it takes some time, I really hope this PR doesn't get closed and eventually gets merged. As a developer who works with JSP and Java code on a daily basis, I’m looking forward to seeing full support land in a release as soon as possible.

I completely welcome and support your fallback PR (#12402)—it will serve as a great interim workaround until this full grammar PR gets officially merged.
Thanks again for your thoughtful feedback and contribution!

hwantage and others added 4 commits September 17, 2026 09:13
…tablyai#10858)

- Attach Monaco HTML language service to JSP files for hover, completion, and document symbols
- Refine tokenization for scriptlets, comments, and EL expressions
- Disable rename and formatting for JSP HTML service to prevent buffer corruption
- Add comprehensive tests for JSP language registration and edge cases

Co-authored-by: taehwanis <[email protected]>
  - terminate scriptlets at %> inside comments and literals
  - recognize common Java collection and numeric types in JSP
- Remove superseded stopgap mapping of .jsp/.jspf to html now that dedicated jsp language is supported
- Update language-detect test to assert .jsp/.jspf map to dedicated jsp language
- Replace type assertions in register-jsp.test.ts with checked types and SAFETY rationale
@hwantage
hwantage force-pushed the feat/jsp-syntax-highlighting branch from 7fb4f6c to 21ee0e3 Compare September 17, 2026 00:27

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

🟡 Minor · Handle JSP delimiters before delegating to JavaScript or CSS. · register-jsp.ts:127-157

src/renderer/src/lib/monaco-languages/register-jsp.ts:127-157
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Handle JSP delimiters before delegating to JavaScript or CSS. When scriptOpen or styleOpen closes, it switches to @scriptBody or @styleBody and activates javascript or css. Monarch keeps that embedded tokenizer active until a nextEmbedded: '@pop' rule matches. Because these body states only match closing tags, ${...}, #{...}, and <%...%> can bypass elExpression and jspScriptlet and receive JavaScript/CSS scopes. Add JSP suspend-and-reenter transitions with regression tests, or document and test this limitation if JSP constructs are unsupported in script/style bodies. Repository embedded-language grammars already use this suspend-and-reenter pattern for template expressions.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 51ac20cb-2ce3-4c71-9317-693cdd567b93

📥 Commits

Reviewing files that changed from the base of the PR and between 7fb4f6c7d38f9180158fe7f64e3e02d560825baa and 21ee0e3.

📒 Files selected for processing (4)
  • src/renderer/src/lib/language-detect.test.ts
  • src/renderer/src/lib/language-detect.ts
  • src/renderer/src/lib/monaco-languages/register-jsp.test.ts
  • src/renderer/src/lib/monaco-setup.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Monarch hands a <script> or <style> body to the JavaScript or CSS
tokenizer until the closing tag, so `${...}`, `#{...}` and `<% ... %>`
inside those blocks were coloured as JavaScript or CSS.

Add rules to scriptBody and styleBody that pop the embed on an EL or
scriptlet opener, tokenize the island with the existing elExpression and
jspScriptlet rules, and resume the embed on the closer. The two island
states are shared: the state name carries the body to return to and the
language to resume.

Known limits: the embedded tokenizer restarts on resume, so an island
inside a JavaScript string or comment leaves the rest of that literal
mis-coloured, and `<%-- --%>` inside a body is treated as a scriptlet.
@hwantage

hwantage commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor Author

@coderabbitai
scriptBody and styleBody now pop the embed on ${, #{ and <%[=!]?, tokenize the island through the existing elExpression / jspScriptlet rules, and resume the embed on the closer. The two island states are shared between script and style: the state name carries the body to return to and the language to resume(@embedEl.scriptBody.javascript).

Regression tests run the real MonarchTokenizer via monarch-tokenizer-test-harness and assert the per-token language sequence for EL and scriptlets in a script body (including resuming JavaScript on the following line) and for EL in a style body.

Known limits, left as-is: the embedded tokenizer restarts from its initial state on resume, so an island inside a JavaScript string or comment leaves the rest of that literal mis-coloured. <%-- --%> inside a body is treated as a scriptlet.

@coderabbitai

coderabbitai Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

ast-grep outline src/renderer/src/lib/monaco-languages/register-jsp.ts --items all
ast-grep outline src/renderer/src/lib/monaco-languages/register-jsp.test.ts --items all

printf '\n--- tokenizer transitions ---\n'
rg -n -A45 -B12 'scriptBody|styleBody|embedEl|embedScriptlet|nextEmbedded|jspScriptlet|elExpression' \
  src/renderer/src/lib/monaco-languages/register-jsp.ts

printf '\n--- regression tests ---\n'
rg -n -A60 -B12 'MonarchTokenizer|script body|style body|per-token|embedded.*(JavaScript|CSS)|resum' \
  src/renderer/src/lib/monaco-languages/register-jsp.test.ts

Length of output: 12367


@hwantage The implementation addresses the embedded-body tokenization issue.

scriptBody and styleBody now suspend the javascript or css embed before EL and scriptlet islands. embedEl and embedScriptlet then return to the originating body state and resume the correct embedded language through $S2 and $S3.

The regression tests use the real MonarchTokenizer. They verify JSP tokenization inside <script> and <style> bodies. They also verify that JavaScript and CSS resume after the island.

The known limitations are clear and acceptable for this change. An island inside an embedded string or comment cannot preserve the prior embedded tokenizer state. Treating <%-- --%> as a scriptlet inside an embedded body is also documented.


✏️ Learnings added
Learnt from: hwantage
URL: https://github.com/stablyai/orca/pull/10858

Timestamp: 2026-09-20T02:19:30.085Z
Learning: In `src/renderer/src/lib/monaco-languages/register-jsp.ts`, JSP EL and scriptlet islands inside `scriptBody` and `styleBody` suspend the Monaco embedded JavaScript or CSS tokenizer. The shared `embedEl` and `embedScriptlet` states use state parameters to return to the originating body and resume the embedded language. The embedded tokenizer restarts after an island, so islands inside an embedded JavaScript string or comment can mis-color the remaining literal or comment. JSP comments (`<%-- --%>`) inside embedded bodies are currently treated as scriptlets.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.


If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

You are interacting with an AI system.

@nwparker

Copy link
Copy Markdown
Contributor

Thank you @hwantage for this! We've shipped JSP as the official JSP Syntax plugin instead of building it into Orca, so it can be updated on its own. Your work is credited: you're a co-author of the plugin commit.

To install: Settings → Plugins → turn on plugins → search for it and install. It needs Orca 1.4.246 or newer (older versions show "Needs Orca 1.4.246"), because that's the first release where an enabled plugin syntax takes precedence over Orca's own mapping for these files.

Closing this PR as superseded. If it falls short for you, please reopen and tell us what is missing.

@nwparker nwparker closed this Oct 30, 2026
senadaruc pushed a commit to senadaruc/orca-plugins that referenced this pull request Oct 31, 2026
Highlights .jsp, .jspf and .tag files with the vscode-jsp grammar (MIT) and
bundles the HTML, Java, CSS and JavaScript grammars it embeds (VS Code, MIT;
TextMate HTML bundle notice included). Orca reads no grammar injections, so
JSP's injected rules are inlined. Needs Orca 1.4.246, the first release where
an enabled plugin syntax beats Orca's HTML stopgap for .jsp/.jspf.

Replaces stablyai/orca#10858 and stablyai/orca#11309 for stablyai/orca#9795.

Co-authored-by: hwantage <[email protected]>
Co-authored-by: taehwanis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Support syntax highlighting and formatting for JSP (.jsp) files

4 participants