Skip to content

Commit

Permalink
Fix platform guard, use SwiftTreeSitter main
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Mar 28, 2024
1 parent 624859e commit fdbfcbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Projects/NeonExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
C9BFA19B2BB5FCF800E86487 /* test.code */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = test.code; sourceTree = "<group>"; };
C9C7DEE72BB307DD00AC4F9D /* TextViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextViewController.swift; sourceTree = "<group>"; };
C9C7DEF12BB30DCE00AC4F9D /* TextView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextView.swift; sourceTree = "<group>"; };
C9C7DEF32BB330C400AC4F9D /* SwiftTreeSitter */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = SwiftTreeSitter; path = ../../SwiftTreeSitter; sourceTree = "<group>"; };
C9E075EF2BB3040B005ED81E /* NeonExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NeonExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
C9E075F12BB3040B005ED81E /* NeonExampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NeonExampleApp.swift; sourceTree = "<group>"; };
C9E075F32BB3040B005ED81E /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -67,7 +66,6 @@
C9A60F7928C68FD9006883EC = {
isa = PBXGroup;
children = (
C9C7DEF32BB330C400AC4F9D /* SwiftTreeSitter */,
5077D7FF2B08D1F1000A15B8 /* Neon */,
C9E075FE2BB3044C005ED81E /* Configurations */,
C9E075F02BB3040B005ED81E /* NeonExample */,
Expand Down
3 changes: 2 additions & 1 deletion Sources/Neon/PlatformTextSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ extension NSTextContentManager: VersionedContent {
return NSRange(documentRange, provider: self).length
}
}
#endif

extension NSTextContainer {
func textRange(for rect: CGRect) -> NSRange? {
Expand Down Expand Up @@ -90,3 +89,5 @@ extension TextView {
tk2VisibleTextRange ?? tk1VisibleTextRange ?? .zero
}
}

#endif

0 comments on commit fdbfcbb

Please sign in to comment.