A Collection of Tree-Sitter Parsers for Syntax Highlighting

Overview

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 languages as a binary.

The languages are then served as a CodeLanguage.

Documentation is currently not available online. Clone the product and build the documentation locally instead.

You might also like...
A Swift library for efficient highlighting, indenting, and querying the structure of language syntax.

Neon A Swift library for efficient highlighting, indenting, and querying the structure of language syntax. It features: Minimal text invalidation Supp

SwiftUI library to easily render diagrams given a tree of objects. Similar to ring chart, sunburst chart, multilevel pie chart.
SwiftUI library to easily render diagrams given a tree of objects. Similar to ring chart, sunburst chart, multilevel pie chart.

Swift Sunburst Diagram Sunburst diagram is a library written with SwiftUI to easily render diagrams given a tree of objects. Similar to ring chart, su

List tree data souce to display hierachical data structures in lists-like way. It's UI agnostic, just like view-model and doesn't depend on UI framework
List tree data souce to display hierachical data structures in lists-like way. It's UI agnostic, just like view-model and doesn't depend on UI framework

SwiftListTreeDataSource List tree data souce to display hierachical data structures in lists-like way. It's UI agnostic, just like view-model, so can

Profile in Tree structure developed in UIKit
Profile in Tree structure developed in UIKit

Profile-Tree Profile in Tree structure developed in UIKit Screenshot Video Profi

🐝 Draw Xcode targets and dependencies tree
🐝 Draw Xcode targets and dependencies tree

🐝 Bee Draw Xcode targets and dependencies tree.

Blueprints is a collection of flow layouts that is meant to make your life easier when working with collection view flow layouts.
Blueprints is a collection of flow layouts that is meant to make your life easier when working with collection view flow layouts.

Blueprints is a collection of flow layouts that is meant to make your life easier when working with collection view flow layouts. It comes

Modern-collection-view - Modern collection view for swift

Modern collection view Sample application demonstrating the use of collection vi

Advanced Natural Motion Animations, Simple Blocks Based Syntax
Advanced Natural Motion Animations, Simple Blocks Based Syntax

FlightAnimator Moved to Swift 3.1 Support: For Swift 3.1 - Use tag Version 0.9.9 See Installation Instructions for clarification Introduction FlightAn

AudioPlayer is syntax and feature sugar over AVPlayer. It plays your audio files (local & remote).

AudioPlayer AudioPlayer is a wrapper around AVPlayer. It also offers cool features such as: Quality control based on number of interruption (buffering

KeyPathKit is a library that provides the standard functions to manipulate data along with a call-syntax that relies on typed keypaths to make the call sites as short and clean as possible.

KeyPathKit Context Swift 4 has introduced a new type called KeyPath, with allows to access the properties of an object with a very nice syntax. For in

SQLite.swift provides compile-time confidence in SQL statement syntax and intent.
SQLite.swift provides compile-time confidence in SQL statement syntax and intent.

SQLite.swift A type-safe, Swift-language layer over SQLite3. SQLite.swift provides compile-time confidence in SQL statement syntax and intent. Feature

FlexLayout adds a nice Swift interface to the highly optimized facebook/yoga flexbox implementation. Concise, intuitive & chainable syntax.
FlexLayout adds a nice Swift interface to the highly optimized facebook/yoga flexbox implementation. Concise, intuitive & chainable syntax.

FlexLayout adds a nice Swift interface to the highly optimized Yoga flexbox implementation. Concise, intuitive & chainable syntax. Flexbox is an incre

Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer]
Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer]

Extremely Fast views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainabl

MisterFusion is Swift DSL for AutoLayout. It is the extremely clear, but concise syntax, in addition, can be used in both Swift and Objective-C. Support Safe Area and Size Class.
MisterFusion is Swift DSL for AutoLayout. It is the extremely clear, but concise syntax, in addition, can be used in both Swift and Objective-C. Support Safe Area and Size Class.

MisterFusion MisterFusion makes more easier to use AutoLayout in Swift & Objective-C code. Features Simple And Concise Syntax Use in Swift and Objecti

SwiftyTimer allows you to instantly schedule delays and repeating timers using convenient closure syntax. It's time to get rid of Objective-C cruft.

SwiftyTimer Modern Swifty API for NSTimer SwiftyTimer allows you to instantly schedule delays and repeating timers using convenient closure syntax. It

📦 KeyPath dynamicMemberLookup based syntax sugar for Swift.

DuctTape 📦 KeyPath dynamicMemberLookup based syntax sugar for Swift. let label: UILabel = UILabel().ductTape .numberOfLines(0) .textColor(.re

PreviewDevice - library with elegant syntax for Preview Device in SwiftUI
PreviewDevice - library with elegant syntax for Preview Device in SwiftUI

PreviewDevice Requirements Xcode 13.x iOS 13.0+, macOS 10.15+, Mac Catalyst 13.0+, tvOS 13.0+, watchOS 6.0+ Usage Example: import PreviewDevice struc

☠️SkeletonUI aims to bring an elegant, declarative syntax to skeleton loading animations.
☠️SkeletonUI aims to bring an elegant, declarative syntax to skeleton loading animations.

SkeletonUI aims to bring an elegant, declarative syntax to skeleton loading animations. Get rid of loading screens or spinners and start using skeletons to represent final content shapes.

🔥 🔥 🔥Support for ORM operation,Customize the PQL syntax for quick queries,Support dynamic query,Secure thread protection mechanism,Support native operation,Support for XML configuration operations,Support compression, backup, porting MySQL, SQL Server operation,Support transaction operations.

🔥 🔥 🔥Support for ORM operation,Customize the PQL syntax for quick queries,Support dynamic query,Secure thread protection mechanism,Support native operation,Support for XML configuration operations,Support compression, backup, porting MySQL, SQL Server operation,Support transaction operations.

Comments
  • 🐞 [DocC]: Documentation Not Generated

    🐞 [DocC]: Documentation Not Generated

    The documentation of CodeEditLanguages is not generated properly. Not locally and not on our CI. Using Xcode to build it works though.

    Terminal command

    swift package --allow-writing-to-directory ./docs generate-documentation --target CodeEditLanguages --output-path ./docs --hosting-base-path CodeEditLanguages --disable-indexing --transform-for-static-hosting
    

    Expected Result

    After completion a docs directory should be created. Inside this folder a directory called documentation should be created.

    Actual Result

    There is a docs directory. There is NO documentation directory inside.

    bug documentation help wanted 
    opened by lukepistrol 1
  • support for rust language highlighting

    support for rust language highlighting

    Is your feature request related to a problem? Please describe.

    support for a very popular language

    Describe the solution you'd like

    Rust as the most loved language since 2020, widely used. Add language source for Rust will be very useful, it was considered a good replacement for C++

    Describe alternatives you've considered

    nothing, check the Lapce editor (https://lapce.dev)

    Additional context

    no

    enhancement 
    opened by jianshu93 2
  • 👀 Missing Languages

    👀 Missing Languages

    There are several language grammars available for tree-sitter. Checked items have SPM already implemented.

    * Some of them don't yet have a highlights.scm file included and thus syntax highlighting will not work.

    Important to know is that some language grammars depend on another grammar to function properly (e.g.: C++ depends on the C grammar). Therefore the highlights.scm files need to be concatenated when run.

    This can also happen when there are different flavors available (e.g: JavaScript & JSX). In this case there is an additional highlights-jsx.scm file located in the JavaScript's grammar queries folder.

    Add new Languages

    In order to make it a little easier to add SPM support to grammars, I wrote an article in the documentation: Add languages

    enhancement help wanted 
    opened by lukepistrol 14
Releases(0.1.5)
  • 0.1.5(Jan 2, 2023)

    What's Changed

    • Update dependencies by @lukepistrol in https://github.com/CodeEditApp/CodeEditLanguages/pull/13

    Full Changelog: https://github.com/CodeEditApp/CodeEditLanguages/compare/0.1.4...0.1.5

    Source code(tar.gz)
    Source code(zip)
  • 0.1.4(Dec 2, 2022)

    What's Changed

    • update readme by @lukepistrol in https://github.com/CodeEditApp/CodeEditLanguages/pull/11
    • update 'SwiftTreeSitter' to 0.7.1 by @lukepistrol in https://github.com/CodeEditApp/CodeEditLanguages/pull/12

    Full Changelog: https://github.com/CodeEditApp/CodeEditLanguages/compare/0.1.3...0.1.4

    Source code(tar.gz)
    Source code(zip)
  • 0.1.3(Nov 13, 2022)

    What's Changed

    • fix docc generation by @lukepistrol in https://github.com/CodeEditApp/CodeEditLanguages/pull/6
    • add documentation comments, improve build-docc.sh script by @lukepistrol in https://github.com/CodeEditApp/CodeEditLanguages/pull/7
    • remove swift-docc-plugin since it is no longer needed by @lukepistrol in https://github.com/CodeEditApp/CodeEditLanguages/pull/8
    • [documentation]: Add Update-Languages Guide by @lukepistrol in https://github.com/CodeEditApp/CodeEditLanguages/pull/9

    Full Changelog: https://github.com/CodeEditApp/CodeEditLanguages/compare/0.1.2...0.1.3

    Source code(tar.gz)
    Source code(zip)
  • 0.1.2(Nov 5, 2022)

    What's Changed

    • update languages to latest by @lukepistrol in https://github.com/CodeEditApp/CodeEditLanguages/pull/4
    • update build script by @lukepistrol in https://github.com/CodeEditApp/CodeEditLanguages/pull/5

    Full Changelog: https://github.com/CodeEditApp/CodeEditLanguages/compare/0.1.1...0.1.2

    Source code(tar.gz)
    Source code(zip)
  • 0.1.1(Oct 29, 2022)

    What's Changed

    • [chore]: using tree-sitter-bash master branch now by @lukepistrol in https://github.com/CodeEditApp/CodeEditLanguages/pull/3

    Full Changelog: https://github.com/CodeEditApp/CodeEditLanguages/compare/0.1.0...0.1.1

    Source code(tar.gz)
    Source code(zip)
  • 0.1.0(Oct 29, 2022)

    What's Changed

    • Improve docs by @lukepistrol in https://github.com/CodeEditApp/CodeEditLanguages/pull/2

    New Contributors

    • @lukepistrol made their first contribution in https://github.com/CodeEditApp/CodeEditLanguages/pull/2

    Full Changelog: https://github.com/CodeEditApp/CodeEditLanguages/commits/0.1.0

    Source code(tar.gz)
    Source code(zip)
Owner
CodeEdit
CodeEdit App for macOS – Elevate your code editing experience. Open source, free forever.
CodeEdit
A collection useful tips for the Swift language

SwiftTips The following is a collection of tips I find to be useful when working with the Swift language. More content is available on my Twitter acco

Vincent Pradeilles 929 Dec 10, 2022
A collection of Swift tips & tricks that I've shared on Twitter

⚠️ This list is no longer being updated. For my latest Swift tips, checkout the "Tips" section on Swift by Sundell. Swift tips & tricks ⚡️ One of the

John Sundell 3.9k Dec 30, 2022
Mvvm - Collection View Notes With Swift

CollectionViewNotes Haciendo apuntes para cuando pierda la memoria Comenzando ??

null 0 Jan 13, 2022
Swift wrappers for the tree-sitter incremental parsing system

SwiftTreeSitter Swift wrappers for the tree-sitter incremental parsing system. Remember that tree-sitter has both runtime and per-language dependencie

Chime 153 Dec 8, 2022
CodeEditTextView - An Xcode-inspired code editor view written in Swift powered by tree-sitter for CodeEdit

An Xcode-inspired code editor view written in Swift powered by tree-sitter for CodeEdit. Features include syntax highlighting (based

CodeEdit 243 Jan 8, 2023
Profile-Tree - Profile in Tree structure developed in UIKit

Profile-Tree Profile in Tree structure developed in UIKit Screenshot Video Profi

null 1 Oct 7, 2022
Notepad - A fully themeable iOS markdown editor with live syntax highlighting.

Notepad is just like any other UITextView, but you need to use the convenience initializer in order to use the themes. To create a new theme, copy one of the existing themes and edit the JSON.

Rudd Fawcett 802 Dec 31, 2022
Simple Application that registers Vapor Leaf's .leaf file type to LaunchServices as html enabling automatic syntax highlighting in Xcode.

Vapor Leaf Extension Update: The Vapor Leaf Extension is now meant to be used with the Xcode Plugin I designed to provide Xcode language support for t

Omran Khoja 12 Jun 18, 2022
CodeEditor - A SwiftUI TextEditor with syntax highlighting using Highlight.js

CodeEditor A SwiftUI TextEditor View with syntax highlighting using Highlight.js. It builds on top of Highlightr which does the wrapping of Highlight.

ZeeZide 269 Dec 30, 2022
TextMate-style syntax highlighting

SyntaxKit SyntaxKit makes TextMate-style syntax highlighting easy. It works on iOS, watchOS, and OS X. SyntaxKit was abstracted from Whiskey. Building

Sam Soffes 466 Sep 9, 2022