Add C3 language support with syntax highlighting and LSP#2101
Merged
sinelaw merged 1 commit intoMay 25, 2026
mastersinelaw/fresh:masterfrom
claude/intelligent-brahmagupta-2Pm5ysinelaw/fresh:claude/intelligent-brahmagupta-2Pm5yCopy head branch name to clipboard
Merged
Add C3 language support with syntax highlighting and LSP#2101sinelaw merged 1 commit intomastersinelaw/fresh:masterfrom claude/intelligent-brahmagupta-2Pm5ysinelaw/fresh:claude/intelligent-brahmagupta-2Pm5yCopy head branch name to clipboard
sinelaw merged 1 commit into
mastersinelaw/fresh:masterfrom
claude/intelligent-brahmagupta-2Pm5ysinelaw/fresh:claude/intelligent-brahmagupta-2Pm5yCopy head branch name to clipboard
Conversation
Adds a sublime-syntax grammar for C3 (no new tree-sitter dependency), embeds it into the syntax packdump, and ships default language and LSP (c3lsp) config so .c3/.c3i/.c3t files are detected, highlighted, and can attach a language server out of the box. Closes #2096 https://claude.ai/code/session_01S1AYaz6BDywqqHdMXTQ7qC
Owner
Author
|
Fixes #2096 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive support for the C3 programming language to Fresh editor, including syntax highlighting, language configuration, and Language Server Protocol (LSP) integration.
Key Changes
C3 Syntax Grammar (
c3.sublime-syntax): Added a complete TextMate-compatible syntax definition for C3 with support for:$and$$prefixes)@prefix)Language Configuration (
config.rs): Registered C3 as a supported language with:.c3,.c3i,.c3t//LSP Integration (
config.rs): Added Language Server Protocol configuration for C3:c3lspproject.jsonand.gitGrammar Registry (
types.rsandbuild.rs): Integrated the C3 grammar into the editor's grammar registry system for proper syntax highlighting supportImplementation Details
The C3 syntax grammar follows the language reference from https://c3-lang.org/ and includes proper scoping for all major language constructs. The LSP configuration references the c3lsp language server (https://github.com/pherrymason/c3-lsp), which users can install separately.
https://claude.ai/code/session_01S1AYaz6BDywqqHdMXTQ7qC