Skip to content

feat(editor): SQL syntax highlighting in QueryaCodeEditor (#49) - #74

Merged
ZhuchkaTriplesix merged 3 commits into
devfrom
issue/49-sql-syntax-highlighting
May 28, 2026
Merged

feat(editor): SQL syntax highlighting in QueryaCodeEditor (#49)#74
ZhuchkaTriplesix merged 3 commits into
devfrom
issue/49-sql-syntax-highlighting

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Adds syntax_highlight with SQL/JSON grammars initialized at app startup.
  • Maps QueryaEditorTheme token colors to HighlighterTheme and drives highlighting through QueryaHighlightController inside QueryaCodeEditor.
  • Keeps external TextEditingController in sync for workspace execute/run flows.

Test plan

  • flutter analyze
  • flutter test (329 tests)
  • Manual: open SQL workspace, type SELECT, -- comment, strings; switch theme preset and confirm colors update.

Closes #49

Wire QueryaHighlightController into QueryaCodeEditor for SQL/JSON, map
QueryaEditorTheme tokens to HighlighterTheme, and init grammars at startup.
@ZhuchkaTriplesix ZhuchkaTriplesix added enhancement New feature or request theme Theming, colors, VS Code themes editor Code/SQL editor labels May 28, 2026
@github-actions github-actions Bot added this to the Theme system milestone May 28, 2026

@ZhuchkaTriplesix ZhuchkaTriplesix left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

123

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 0eb5624 into dev May 28, 2026
4 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/49-sql-syntax-highlighting branch June 13, 2026 20:09
ZhuchkaTriplesix added a commit that referenced this pull request Jul 27, 2026
feat(editor): SQL syntax highlighting in QueryaCodeEditor (#49)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editor Code/SQL editor enhancement New feature or request theme Theming, colors, VS Code themes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant