Skip to content
    Back to all Bounties

    Earn 27,000 ($270.00)

    Time Remainingdue 1 year ago
    In Progress

    Zig Language Mode for CodeMirror 6

    masfrost
    masfrost
    Posted 1 year ago

    Bounty Description

    Problem Description:

    Zig (https://ziglang.org/) is a new general-purpose programming language that is gaining popularity.

    You can find the grammar spec here https://github.com/ziglang/zig-spec/blob/master/grammar/README.md

    You can also use the sublime package for reference. https://github.com/ziglang/sublime-zig-language/blob/master/Syntaxes/Zig.YAML-tmLanguage as well as the vscode package https://github.com/ziglang/vscode-zig

    Replit uses CodeMirror as the editor and we would like to add first-class support for Zig. One of the main blockers is syntax highlighting.

    We have a template for authoring language modes here https://replit.com/@util/CodeMirror-Lezer-Language-Template, read the README for guidance.

    Acceptance Criteria:
    Match tm-bundle highlighting and add folding ranges. As a point of reference, it should match vscode and sublime modes for zig

    Copyright © 2024 Replit, Inc. All rights reserved.
    • twitter
    • tiktok
    • instagram
    • facebook

    Replit

    Programming languages

    • Python
    • JavaScript
    • TypeScript
    • Node.js
    • Nix
    • HTML, CSS, JS
    • C++
    • Golang