Skip to content

feat: add ggsql as a bundled language for input_code_editor()#2192

Open
cpsievert wants to merge 3 commits intomainfrom
feat/ggsql-language
Open

feat: add ggsql as a bundled language for input_code_editor()#2192
cpsievert wants to merge 3 commits intomainfrom
feat/ggsql-language

Conversation

@cpsievert
Copy link
Collaborator

Summary

  • Adds ggsql language support to prism-code-editor so ui.input_code_editor(language="ggsql") works
  • Copies the ggsql grammar file from bslib and adds "ggsql" to the CodeEditorBundledLanguage Literal type

Dependencies

Files changed

  • shiny/www/shared/prism-code-editor/prism/languages/ggsql.js — Prism grammar extending SQL with ggsql tokens
  • shiny/ui/_input_code_editor_bundle.py — added "ggsql" to CodeEditorBundledLanguage

Test plan

  • python -c "from shiny.ui import input_code_editor; print(input_code_editor('test', language='ggsql', value='SELECT 1 VISUALISE x DRAW point'))" — should produce HTML without ValueError

🤖 Generated with Claude Code

Add ggsql language support to prism-code-editor. The grammar file
extends SQL with ggsql-specific tokens for visualization queries.

Depends on rstudio/bslib#feat/ggsql-language for the grammar source.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cpsievert cpsievert changed the title Add ggsql as a bundled language for input_code_editor feat: add ggsql as a bundled language for input_code_editor() Mar 7, 2026
cpsievert and others added 2 commits March 6, 2026 19:28
Regenerated by Rscript tools/build_ggsql_grammar.R in bslib.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant