Skip to content

Add drogon-csp support - #5845

Open
rbprsp wants to merge 2 commits into
zed-industries:mainfrom
rbprsp:add-drogon-csp-language
Open

Add drogon-csp support#5845
rbprsp wants to merge 2 commits into
zed-industries:mainfrom
rbprsp:add-drogon-csp-language

Conversation

@rbprsp

@rbprsp rbprsp commented May 1, 2026

Copy link
Copy Markdown

Adds a Zed extension for Drogon CSP (.csp), the html + cpp template format used by the Drogon framework.

Tokenization comes from a small tree-sitter grammar; cpp and html are injected into the nested content.

Tags covered: <%c++ %>, <%inc %>, <%view %>, <%layout %>, [[ ]], {% %}.
Tested locally as a dev extension.
image

Extension: https://github.com/rbprsp/zed-drogon-csp
Grammar: https://github.com/rbprsp/tree-sitter-csp
License: MIT

@cla-bot cla-bot Bot added the cla-signed label May 1, 2026

@MrSubidubi MrSubidubi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this, sorry for the late feedback!

Couple of notes:

  • Please update your extension name to something more human-readable
  • Do we want the -language suffix in the ID? Just a question, your call, but would not be needed from our side
  • Please update the submodule to point at a commit present on the master-branch, please.

Thank you!

@MrSubidubi MrSubidubi changed the title Add drogon-csp-language extension Add drogon-csp-language support Aug 9, 2026
@rbprsp
rbprsp force-pushed the add-drogon-csp-language branch from 286e71f to a54e21b Compare August 16, 2026 08:56
@rbprsp

rbprsp commented Aug 16, 2026

Copy link
Copy Markdown
Author

Thanks for the review!

  • Name is Drogon CSP and ID is drogon-csp now.
  • Submodule now points at 32b1e2f, which is on master.

@rbprsp rbprsp changed the title Add drogon-csp-language support Add drogon-csp support Aug 16, 2026
@rbprsp
rbprsp requested a review from MrSubidubi August 16, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants