Skip to content

CodeEditApp/CodeEditLanguages

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 includes a binary framework CodeLanguagesContainer.xcframework which bundles all tree-sitter languages in a single binary to greatly reduce SPM package resolution times.

The languages are then served as a CodeLanguage.

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

Watchers

Forks

Contributors 9