Skip to content
 
 

Repository files navigation

CodeEditLanguages Icon

CodeEditLanguages

A collection of tree-sitter languages for syntax highlighting.

Github Tests GitHub Repo stars GitHub forks Discord Badge

Overview

This package exposes language query resources:

  • CodeEditLanguages: resources only (highlights.scm, injections.scm, locals.scm, etc.)

Fork Maintenance Note

In this fork, CodeEditLanguages is maintained as a grammar/resource provider only. Language modeling, language detection, and consumer-facing CodeLanguage logic are implemented in WriteMind.

Parser binaries are intentionally not linked by this package; consumers load parser symbols via parser packs.

When syncing from CodeEditApp/CodeEditLanguages, conflicts around CodeLanguage* source files should generally prefer this fork's architecture (resource-only package).

SwiftTreeSitter

This package heavily depends on SwiftTreeSitter by Matt Massicotte.

Documentation

The documentation including a guide on how to add support for new languages can be found here!

Supported Languages

There are several language grammars available for tree-sitter. Many of them are already supported in CodeEditLanguages. In order to use syntax-highlighting with those grammars, they need to supply a highlights.scm file. Grammars for which this file does not exist yet, are marked with not available below. This file has to be added to the grammar's repo directly.

In order to add support for additional languages we have a complete guide on how to implement them in CodeEditLanguages available here.

If you want to add support for another language, please file an issue first, so everyone knows that this is in progress.

Grammar Implemented Syntax Highlighting
Agda ✅ not available
Bash ✅ ✅
C ✅ ✅
C++ ✅ ✅
C# ✅ ✅
CSS ✅ ✅
Dart ✅ ✅
Dockerfile ✅ ✅
Elixir ✅ ✅
ERB, EJS
Go ✅ ✅
Haskell ✅ ✅
HTML ✅ ✅
Java ✅ ✅
JavaScript/JSX ✅ ✅
JSDoc ✅ ✅
JSON ✅ ✅
Julia ✅ not available
Kotlin ✅ ✅
Lua ✅ ✅
Markdown ✅ ✅
Objective C ✅ ✅
OCaml ✅ ✅
Plain Text ✅ not available
Perl ✅ not available
PHP ✅ ✅
Python ✅ ✅
Regex ✅ ✅
Ruby ✅ ✅
Rust ✅ ✅
Scala ✅ ✅
Sql ✅ ✅
Swift ✅ ✅
TOML ✅ ✅
TypeScript/TSX ✅ ✅
Verilog ✅ not available
YAML ✅ ✅
Zig ✅ ✅

Related Repositories

        CodeEdit        

CodeEditSourceEditor

CodeEditTextView

CodeEditCLI

     CodeEditKit     

About

A Collection of Tree-Sitter Parsers for Syntax Highlighting

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages