Improve JSON editor for iOS
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user