Swiftpack.co - CodeEditApp/CodeEditLanguages as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by CodeEditApp.
CodeEditApp/CodeEditLanguages 0.1.4
A Collection of Tree-Sitter Parsers for Syntax Highlighting
⭐️ 14
🕓 3 days ago
macOS
.package(url: "https://github.com/CodeEditApp/CodeEditLanguages.git", from: "0.1.4")

CodeEditLanguages Icon

CodeEditLanguages

A collection of tree-sitter languages for syntax highlighting.

Github Tests Documentation 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
Elixir
ERB, EJS
Go
Haskell
HTML
Java
JavaScript/JSX
JSDoc
JSON
Julia not available
Kotlin not available
Markdown not available
OCaml
Plain Text not available
Perl not available
PHP
Python
Regex
Ruby
Rust
Scala
Sql
Swift
TOML
TypeScript/TSX
Verilog not available
YAML not available
Zig

Related Repositories

CodeEdit

CodeEditTextView

CodeEditKit

GitHub

link
Stars: 14
Last commit: 3 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

0.1.4
3 days ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics