Improve JSON editor for iOS

This commit is contained in:
世界
2025-11-26 22:25:52 +08:00
parent 264c37218c
commit 3f1c716a0a
18 changed files with 3129 additions and 17 deletions
@@ -0,0 +1,17 @@
import Foundation
public enum Query {
public static var highlightsFileURL: URL {
url(named: "highlights")
}
public static var injectionsFileURL: URL {
url(named: "injections")
}
}
private extension Query {
static func url(named filename: String) -> URL {
Bundle.module.url(forResource: filename, withExtension: "scm")!
}
}
@@ -0,0 +1,15 @@
(number) @number
(comment) @comment
(member name: (_) @property)
(member value: (string) @string)
(member value: (number) @number)
(member value: ["true" "false" "null"] @constant.builtin)
(array ((string) @string))
(array (number) @number)
(array ["true" "false" "null"] @constant.builtin)
(ERROR) @error
@@ -0,0 +1 @@
(comment) @comment