Skip to content

chrysaora-achlyos/JellyTextCompanion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JellyTextCompanion

Last updated: Sat Jun 22 18:37:58 CDT 2024

This is a glorified note-to-self.

Goal

Follow along Meet Runestone series of tutorials to the "Syntax Highlighting the Text" section, and then use language "jelly" instead of "javaScript"

code

Specifically want to replace import TreeSitterJavaScriptRunestone ... let languageMode = TreeSitterLanguageMode(language: .javaScript) textView.setLanguageMode(languageMode) with import TreeSitterJellyRunestone ... let languageMode = TreeSitterLanguageMode(language: jelly) textView.setLanguageMode(languageMode)

Status

Seems to work on Hello.jelly text in iPhone 15 simulator, no further testing done.

Backgroud

I am having trouble building the version current version of my fork of Open-Jellycuts due to what appear to be Package issues.

In the past, it appears there were some issues with runestone direct use of tree-sitter/tree-sitter, causing a simonbs/tree-sitter to be created

// Tree-sitter supports SPM but as of writing this, the official Tree-sitter repository has no versions published that contains the Package.swift file. Therefore, we depend on a fork of Tree-sitter that has a version published. // We will pin against the official version of Tree-sitter as soon as a new version is published. .package(url: "https://github.com/simonbs/tree-sitter", from: "0.20.9-beta-1")


I want to test if that is still the case since Runestone/Package.swift was updated Feb 28, 2024

dependencies: [ .package(url: "https://github.com/tree-sitter/tree-sitter", .upToNextMinor(from: "0.20.9")) ],

Packages

Runestone

simonbs/Runestone 0.5.1

tree-sitter

tree-sitter/tree-sitter 0.20.9

Open-Jellycore

Package.swift

change simonbs/tree-sitter to tree-sitter/tree-sitter matching dependency change in Runestone change tree-sitter-jelly on local branch of fork chrysaora-achlyos/tree-sitter-jelly

from: .package(url: "https://github.com/simonbs/tree-sitter", from: "0.20.9-beta-2"), .package(url: "https://github.com/Jellycuts/tree-sitter-jelly", from: "0.1.0"),

to: .package(url: "https://github.com/tree-sitter/tree-sitter", .upToNextMinor(from: "0.20.9")), .package( url: "https://github.com/chrysaora-achlyos/tree-sitter-jelly", branch: "lab000"),

tree-sitter-jelly

no changes

TreeSitterJellyRunestone

This was pulled out of Package directory of Open-Jellycuts and made a github.com addressable package

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages