gitnexus 1.6.12-rc.2 → 1.6.12-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_shared/graph/types.d.ts +1 -1
- package/dist/_shared/graph/types.d.ts.map +1 -1
- package/dist/_shared/language-detection.d.ts.map +1 -1
- package/dist/_shared/language-detection.js +2 -0
- package/dist/_shared/language-detection.js.map +1 -1
- package/dist/_shared/languages.d.ts +1 -0
- package/dist/_shared/languages.d.ts.map +1 -1
- package/dist/_shared/languages.js +1 -0
- package/dist/_shared/languages.js.map +1 -1
- package/dist/_shared/lbug/schema-constants.d.ts +1 -1
- package/dist/_shared/lbug/schema-constants.d.ts.map +1 -1
- package/dist/_shared/lbug/schema-constants.js +2 -0
- package/dist/_shared/lbug/schema-constants.js.map +1 -1
- package/dist/_shared/scope-resolution/language-classification.d.ts +2 -1
- package/dist/_shared/scope-resolution/language-classification.d.ts.map +1 -1
- package/dist/_shared/scope-resolution/language-classification.js +3 -1
- package/dist/_shared/scope-resolution/language-classification.js.map +1 -1
- package/dist/_shared/scope-resolution/registries/class-registry.d.ts +3 -3
- package/dist/_shared/scope-resolution/registries/class-registry.js +3 -3
- package/dist/_shared/scope-resolution/registries/context.d.ts.map +1 -1
- package/dist/_shared/scope-resolution/registries/context.js +2 -0
- package/dist/_shared/scope-resolution/registries/context.js.map +1 -1
- package/dist/_shared/scope-resolution/resolve-type-ref.d.ts.map +1 -1
- package/dist/_shared/scope-resolution/resolve-type-ref.js +2 -0
- package/dist/_shared/scope-resolution/resolve-type-ref.js.map +1 -1
- package/dist/cli/analyze-config.d.ts +2 -2
- package/dist/cli/analyze-config.js +10 -33
- package/dist/cli/doctor.js +6 -4
- package/dist/cli/eval-server.js +13 -1
- package/dist/cli/i18n/en.d.ts +4 -2
- package/dist/cli/i18n/en.js +4 -2
- package/dist/cli/i18n/resources.d.ts +6 -2
- package/dist/cli/i18n/zh-CN.d.ts +2 -0
- package/dist/cli/i18n/zh-CN.js +4 -2
- package/dist/core/analysis-feature-registry.d.ts +1 -1
- package/dist/core/analysis-feature-registry.js +2 -0
- package/dist/core/auto-sync/starter.js +2 -2
- package/dist/core/embeddings/ast-utils.js +8 -3
- package/dist/core/embeddings/chunker.js +67 -10
- package/dist/core/embeddings/embedding-pipeline.d.ts +1 -1
- package/dist/core/embeddings/embedding-pipeline.js +1 -1
- package/dist/core/embeddings/structural-extractor.js +2 -2
- package/dist/core/embeddings/types.d.ts +4 -2
- package/dist/core/embeddings/types.js +18 -0
- package/dist/core/git-ref.d.ts +22 -0
- package/dist/core/git-ref.js +114 -0
- package/dist/core/git-staleness.js +14 -0
- package/dist/core/group/extractors/graphql-extractor.d.ts +1 -1
- package/dist/core/group/extractors/graphql-extractor.js +149 -13
- package/dist/core/group/extractors/manifest-extractor.d.ts +1 -1
- package/dist/core/group/extractors/manifest-extractor.js +2 -2
- package/dist/core/ingestion/call-extractors/zig-static-gating.d.ts +5 -8
- package/dist/core/ingestion/content-language-classification.d.ts +10 -0
- package/dist/core/ingestion/content-language-classification.js +30 -0
- package/dist/core/ingestion/filesystem-walker.d.ts +1 -0
- package/dist/core/ingestion/filesystem-walker.js +1 -1
- package/dist/core/ingestion/import-resolvers/node-workspace-packages.js +3 -2
- package/dist/core/ingestion/language-config.d.ts +82 -13
- package/dist/core/ingestion/language-config.js +217 -13
- package/dist/core/ingestion/language-provider.d.ts +88 -1
- package/dist/core/ingestion/languages/index.d.ts +7 -0
- package/dist/core/ingestion/languages/index.js +30 -1
- package/dist/core/ingestion/languages/objective-c/analysis-features.d.ts +10 -0
- package/dist/core/ingestion/languages/objective-c/analysis-features.js +19 -0
- package/dist/core/ingestion/languages/objective-c/compilation-unit-siblings.d.ts +13 -0
- package/dist/core/ingestion/languages/objective-c/compilation-unit-siblings.js +124 -0
- package/dist/core/ingestion/languages/objective-c/facts.d.ts +148 -0
- package/dist/core/ingestion/languages/objective-c/facts.js +1150 -0
- package/dist/core/ingestion/languages/objective-c/import-target.d.ts +11 -0
- package/dist/core/ingestion/languages/objective-c/import-target.js +122 -0
- package/dist/core/ingestion/languages/objective-c/macro-marker-preprocess.d.ts +24 -0
- package/dist/core/ingestion/languages/objective-c/macro-marker-preprocess.js +261 -0
- package/dist/core/ingestion/languages/objective-c/resolution-config.d.ts +41 -0
- package/dist/core/ingestion/languages/objective-c/resolution-config.js +282 -0
- package/dist/core/ingestion/languages/objective-c/scope-resolver.d.ts +2 -0
- package/dist/core/ingestion/languages/objective-c/scope-resolver.js +503 -0
- package/dist/core/ingestion/languages/objective-c.d.ts +2 -0
- package/dist/core/ingestion/languages/objective-c.js +300 -0
- package/dist/core/ingestion/languages/typescript/query.d.ts +31 -0
- package/dist/core/ingestion/languages/typescript/query.js +7 -1
- package/dist/core/ingestion/languages/typescript/tsconfig.js +3 -2
- package/dist/core/ingestion/languages/typescript.js +1 -1
- package/dist/core/ingestion/languages/zig/query.d.ts +26 -0
- package/dist/core/ingestion/languages/zig/query.js +61 -1
- package/dist/core/ingestion/languages/zig/range-binding.d.ts +8 -0
- package/dist/core/ingestion/languages/zig/range-binding.js +24 -0
- package/dist/core/ingestion/languages/zig/scope-resolver.d.ts +3 -2
- package/dist/core/ingestion/languages/zig/scope-resolver.js +18 -5
- package/dist/core/ingestion/languages/zig/this-alias-bindings.d.ts +58 -0
- package/dist/core/ingestion/languages/zig/this-alias-bindings.js +176 -0
- package/dist/core/ingestion/languages/zig/workspace-static-gating.d.ts +8 -0
- package/dist/core/ingestion/languages/zig/workspace-static-gating.js +82 -0
- package/dist/core/ingestion/model/registration-table.d.ts +3 -3
- package/dist/core/ingestion/model/registration-table.js +9 -5
- package/dist/core/ingestion/model/symbol-table.d.ts +1 -1
- package/dist/core/ingestion/model/symbol-table.js +2 -0
- package/dist/core/ingestion/model/type-registry.d.ts +1 -1
- package/dist/core/ingestion/parsing-processor.d.ts +22 -6
- package/dist/core/ingestion/parsing-processor.js +39 -20
- package/dist/core/ingestion/pipeline-phases/parse-impl.d.ts +9 -1
- package/dist/core/ingestion/pipeline-phases/parse-impl.js +307 -96
- package/dist/core/ingestion/pipeline-phases/parse-round-budget.d.ts +42 -0
- package/dist/core/ingestion/pipeline-phases/parse-round-budget.js +50 -0
- package/dist/core/ingestion/pipeline-phases/parse.d.ts +7 -1
- package/dist/core/ingestion/scope-extractor.js +4 -0
- package/dist/core/ingestion/scope-resolution/contract/scope-resolver.d.ts +13 -0
- package/dist/core/ingestion/scope-resolution/graph-bridge/ids.js +2 -0
- package/dist/core/ingestion/scope-resolution/graph-bridge/node-lookup.js +2 -0
- package/dist/core/ingestion/scope-resolution/passes/property-dispatch.d.ts +78 -5
- package/dist/core/ingestion/scope-resolution/passes/property-dispatch.js +262 -7
- package/dist/core/ingestion/scope-resolution/pipeline/phase.js +5 -2
- package/dist/core/ingestion/scope-resolution/pipeline/registry.js +2 -0
- package/dist/core/ingestion/scope-resolution/pipeline/run.js +10 -1
- package/dist/core/ingestion/scope-resolution/scope/walkers.d.ts +39 -3
- package/dist/core/ingestion/scope-resolution/scope/walkers.js +82 -3
- package/dist/core/ingestion/scope-resolution/value-ref-edges.d.ts +14 -0
- package/dist/core/ingestion/scope-resolution/value-ref-edges.js +14 -0
- package/dist/core/ingestion/tree-sitter-queries.js +2 -0
- package/dist/core/ingestion/utils/symbol-labels.js +2 -0
- package/dist/core/ingestion/workers/parse-worker.d.ts +1 -1
- package/dist/core/ingestion/workers/parse-worker.js +63 -3
- package/dist/core/ingestion/workers/worker-pool.d.ts +56 -2
- package/dist/core/ingestion/workers/worker-pool.js +117 -26
- package/dist/core/lbug/csv-generator.js +2 -0
- package/dist/core/lbug/schema.d.ts +3 -1
- package/dist/core/lbug/schema.js +27 -0
- package/dist/core/search/fts-indexes.js +13 -4
- package/dist/core/search/fts-schema.js +2 -0
- package/dist/core/tree-sitter/parser-loader.js +10 -0
- package/dist/core/tree-sitter/vendored-grammars.d.ts +1 -1
- package/dist/core/tree-sitter/vendored-grammars.js +2 -1
- package/dist/mcp/local/local-backend.d.ts +33 -0
- package/dist/mcp/local/local-backend.js +166 -5
- package/dist/mcp/tools.js +6 -4
- package/dist/server/analyze-job.d.ts +19 -1
- package/dist/server/analyze-job.js +14 -3
- package/dist/server/analyze-launch.d.ts +14 -0
- package/dist/server/analyze-launch.js +59 -14
- package/dist/server/analyze-worker-ipc.d.ts +6 -5
- package/dist/server/analyze-worker-ipc.js +4 -0
- package/dist/server/api.js +68 -21
- package/dist/server/git-clone.d.ts +38 -5
- package/dist/server/git-clone.js +216 -38
- package/dist/server/repo-projection.d.ts +88 -0
- package/dist/server/repo-projection.js +53 -0
- package/dist/storage/file-lock.js +5 -3
- package/dist/storage/parse-cache.js +32 -1
- package/dist/storage/parsedfile-store.js +53 -1
- package/dist/storage/v8-sidecar.d.ts +11 -0
- package/dist/storage/v8-sidecar.js +15 -7
- package/dist/utils/process-identity.d.ts +13 -0
- package/dist/utils/process-identity.js +18 -0
- package/package.json +1 -1
- package/scripts/build-tree-sitter-grammars.cjs +4 -3
- package/vendor/tree-sitter-objc/LICENSE +21 -0
- package/vendor/tree-sitter-objc/README.md +18 -0
- package/vendor/tree-sitter-objc/binding.gyp +35 -0
- package/vendor/tree-sitter-objc/bindings/node/binding.cc +19 -0
- package/vendor/tree-sitter-objc/bindings/node/binding_test.js +9 -0
- package/vendor/tree-sitter-objc/bindings/node/index.d.ts +27 -0
- package/vendor/tree-sitter-objc/bindings/node/index.js +11 -0
- package/vendor/tree-sitter-objc/grammar.js +1286 -0
- package/vendor/tree-sitter-objc/package.json +56 -0
- package/vendor/tree-sitter-objc/prebuilds/SHA256SUMS +6 -0
- package/vendor/tree-sitter-objc/prebuilds/darwin-arm64/tree-sitter-objc.node +0 -0
- package/vendor/tree-sitter-objc/prebuilds/darwin-x64/tree-sitter-objc.node +0 -0
- package/vendor/tree-sitter-objc/prebuilds/linux-arm64/tree-sitter-objc.node +0 -0
- package/vendor/tree-sitter-objc/prebuilds/linux-x64/tree-sitter-objc.node +0 -0
- package/vendor/tree-sitter-objc/prebuilds/win32-arm64/tree-sitter-objc.node +0 -0
- package/vendor/tree-sitter-objc/prebuilds/win32-x64/tree-sitter-objc.node +0 -0
- package/vendor/tree-sitter-objc/queries/folds.scm +20 -0
- package/vendor/tree-sitter-objc/queries/highlights.scm +216 -0
- package/vendor/tree-sitter-objc/queries/indents.scm +1 -0
- package/vendor/tree-sitter-objc/queries/injections.scm +10 -0
- package/vendor/tree-sitter-objc/queries/locals.scm +1 -0
- package/vendor/tree-sitter-objc/src/grammar.json +16292 -0
- package/vendor/tree-sitter-objc/src/node-types.json +7524 -0
- package/vendor/tree-sitter-objc/src/parser.c +684023 -0
- package/vendor/tree-sitter-objc/src/tree_sitter/alloc.h +54 -0
- package/vendor/tree-sitter-objc/src/tree_sitter/array.h +291 -0
- package/vendor/tree-sitter-objc/src/tree_sitter/parser.h +266 -0
- package/vendor/tree-sitter-objc/tree-sitter-objc.wasm +0 -0
- package/vendor/tree-sitter-objc/tree-sitter.json +38 -0
- package/web/assets/{agent-BMRqXorA.js → agent-C2n33ANd.js} +1 -1
- package/web/assets/{index-Dj3vQOHK.js → index-CHJoW_P1.js} +18 -18
- package/web/assets/src-jc8Ffy3T.js +1 -0
- package/web/index.html +2 -2
- package/web/assets/src-Df5C1Nz4.js +0 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tree-sitter-objc",
|
|
3
|
+
"version": "3.0.2",
|
|
4
|
+
"description": "Objective-C grammar for tree-sitter",
|
|
5
|
+
"repository": "https://github.com/tree-sitter-grammars/tree-sitter-objc",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Amaan Qureshi",
|
|
9
|
+
"email": "amaanq12@gmail.com"
|
|
10
|
+
},
|
|
11
|
+
"main": "bindings/node",
|
|
12
|
+
"types": "bindings/node",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"incremental",
|
|
15
|
+
"parsing",
|
|
16
|
+
"tree-sitter",
|
|
17
|
+
"objective-c",
|
|
18
|
+
"objc"
|
|
19
|
+
],
|
|
20
|
+
"files": [
|
|
21
|
+
"grammar.js",
|
|
22
|
+
"tree-sitter.json",
|
|
23
|
+
"binding.gyp",
|
|
24
|
+
"prebuilds/**",
|
|
25
|
+
"bindings/node/*",
|
|
26
|
+
"queries/*",
|
|
27
|
+
"src/**",
|
|
28
|
+
"*.wasm"
|
|
29
|
+
],
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"node-addon-api": "^8.3.0",
|
|
32
|
+
"node-gyp-build": "^4.8.4",
|
|
33
|
+
"tree-sitter-c": "^0.23.4"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"eslint": "^9.17.0",
|
|
37
|
+
"eslint-config-treesitter": "^1.0.2",
|
|
38
|
+
"prebuildify": "^6.0.1",
|
|
39
|
+
"tree-sitter-cli": "^0.24.5"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"tree-sitter": "^0.22.1"
|
|
43
|
+
},
|
|
44
|
+
"peerDependenciesMeta": {
|
|
45
|
+
"tree-sitter": {
|
|
46
|
+
"optional": true
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"install": "node-gyp-build",
|
|
51
|
+
"lint": "eslint grammar.js",
|
|
52
|
+
"prestart": "tree-sitter build --wasm",
|
|
53
|
+
"start": "tree-sitter playground",
|
|
54
|
+
"test": "node --test bindings/node/*_test.js"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
d91f02229328af6b12be32aec15a16e292b6f279b2178ad07ea8fe149ac08808 ./darwin-arm64/tree-sitter-objc.node
|
|
2
|
+
f370c834ac8d053ee7e34803b800c2982edde6900338edbe887e794ee8d0596c ./darwin-x64/tree-sitter-objc.node
|
|
3
|
+
d029eea862ad1ca5617095b205c5556a68add0d969e9a69a6ec23f209c06e2de ./linux-arm64/tree-sitter-objc.node
|
|
4
|
+
b1d547f2f9b3b22ed0a39f3fcd57e5fcae6406ed776a85964461ecdd7d682e9d ./linux-x64/tree-sitter-objc.node
|
|
5
|
+
33dda4c840b05494c2219db2053d6983b3a0d0f7d059ca37c3ab7916fced51fd ./win32-arm64/tree-sitter-objc.node
|
|
6
|
+
73968d8c7fe14487fe975cad27bf81196d10a9a939f04fe06f26dbd183f7d8cb ./win32-x64/tree-sitter-objc.node
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
; inherits: c
|
|
2
|
+
|
|
3
|
+
[
|
|
4
|
+
(class_declaration)
|
|
5
|
+
(class_interface)
|
|
6
|
+
(class_implementation)
|
|
7
|
+
(protocol_declaration)
|
|
8
|
+
(property_declaration)
|
|
9
|
+
(method_declaration)
|
|
10
|
+
(struct_declaration)
|
|
11
|
+
(struct_declarator)
|
|
12
|
+
(try_statement)
|
|
13
|
+
(catch_clause)
|
|
14
|
+
(finally_clause)
|
|
15
|
+
(throw_statement)
|
|
16
|
+
(block_literal)
|
|
17
|
+
(ms_asm_block)
|
|
18
|
+
(dictionary_literal)
|
|
19
|
+
(array_literal)
|
|
20
|
+
] @fold
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
; inherits: c
|
|
2
|
+
|
|
3
|
+
; Preprocs
|
|
4
|
+
|
|
5
|
+
(preproc_undef
|
|
6
|
+
name: (_) @constant) @preproc
|
|
7
|
+
|
|
8
|
+
; Includes
|
|
9
|
+
|
|
10
|
+
(module_import "@import" @include path: (identifier) @namespace)
|
|
11
|
+
|
|
12
|
+
((preproc_include
|
|
13
|
+
_ @include path: (_))
|
|
14
|
+
(#any-of? @include "#include" "#import"))
|
|
15
|
+
|
|
16
|
+
; Type Qualifiers
|
|
17
|
+
|
|
18
|
+
[
|
|
19
|
+
"@optional"
|
|
20
|
+
"@required"
|
|
21
|
+
"__covariant"
|
|
22
|
+
"__contravariant"
|
|
23
|
+
(visibility_specification)
|
|
24
|
+
] @type.qualifier
|
|
25
|
+
|
|
26
|
+
; Storageclasses
|
|
27
|
+
|
|
28
|
+
[
|
|
29
|
+
"@autoreleasepool"
|
|
30
|
+
"@synthesize"
|
|
31
|
+
"@dynamic"
|
|
32
|
+
"volatile"
|
|
33
|
+
(protocol_qualifier)
|
|
34
|
+
] @storageclass
|
|
35
|
+
|
|
36
|
+
; Keywords
|
|
37
|
+
|
|
38
|
+
[
|
|
39
|
+
"@protocol"
|
|
40
|
+
"@interface"
|
|
41
|
+
"@implementation"
|
|
42
|
+
"@compatibility_alias"
|
|
43
|
+
"@property"
|
|
44
|
+
"@selector"
|
|
45
|
+
"@defs"
|
|
46
|
+
"availability"
|
|
47
|
+
"@end"
|
|
48
|
+
] @keyword
|
|
49
|
+
|
|
50
|
+
(class_declaration "@" @keyword "class" @keyword) ; I hate Obj-C for allowing "@ class" :)
|
|
51
|
+
|
|
52
|
+
(method_definition ["+" "-"] @keyword.function)
|
|
53
|
+
(method_declaration ["+" "-"] @keyword.function)
|
|
54
|
+
|
|
55
|
+
[
|
|
56
|
+
"__typeof__"
|
|
57
|
+
"__typeof"
|
|
58
|
+
"typeof"
|
|
59
|
+
"in"
|
|
60
|
+
] @keyword.operator
|
|
61
|
+
|
|
62
|
+
[
|
|
63
|
+
"@synchronized"
|
|
64
|
+
"oneway"
|
|
65
|
+
] @keyword.coroutine
|
|
66
|
+
|
|
67
|
+
; Exceptions
|
|
68
|
+
|
|
69
|
+
[
|
|
70
|
+
"@try"
|
|
71
|
+
"__try"
|
|
72
|
+
"@catch"
|
|
73
|
+
"__catch"
|
|
74
|
+
"@finally"
|
|
75
|
+
"__finally"
|
|
76
|
+
"@throw"
|
|
77
|
+
] @exception
|
|
78
|
+
|
|
79
|
+
; Variables
|
|
80
|
+
|
|
81
|
+
((identifier) @variable.builtin
|
|
82
|
+
(#any-of? @variable.builtin "self" "super"))
|
|
83
|
+
|
|
84
|
+
; Functions & Methods
|
|
85
|
+
|
|
86
|
+
[
|
|
87
|
+
"objc_bridge_related"
|
|
88
|
+
"@available"
|
|
89
|
+
"__builtin_available"
|
|
90
|
+
"va_arg"
|
|
91
|
+
"asm"
|
|
92
|
+
] @function.builtin
|
|
93
|
+
|
|
94
|
+
(method_definition (identifier) @method)
|
|
95
|
+
|
|
96
|
+
(method_declaration (identifier) @method)
|
|
97
|
+
|
|
98
|
+
(method_identifier (identifier)? @method ":" @method (identifier)? @method)
|
|
99
|
+
|
|
100
|
+
(message_expression method: (identifier) @method.call)
|
|
101
|
+
|
|
102
|
+
; Constructors
|
|
103
|
+
|
|
104
|
+
((message_expression method: (identifier) @constructor)
|
|
105
|
+
(#eq? @constructor "init"))
|
|
106
|
+
|
|
107
|
+
; Attributes
|
|
108
|
+
|
|
109
|
+
(availability_attribute_specifier
|
|
110
|
+
[
|
|
111
|
+
"CF_FORMAT_FUNCTION" "NS_AVAILABLE" "__IOS_AVAILABLE" "NS_AVAILABLE_IOS"
|
|
112
|
+
"API_AVAILABLE" "API_UNAVAILABLE" "API_DEPRECATED" "NS_ENUM_AVAILABLE_IOS"
|
|
113
|
+
"NS_DEPRECATED_IOS" "NS_ENUM_DEPRECATED_IOS" "NS_FORMAT_FUNCTION" "DEPRECATED_MSG_ATTRIBUTE"
|
|
114
|
+
"__deprecated_msg" "__deprecated_enum_msg" "NS_SWIFT_NAME" "NS_SWIFT_UNAVAILABLE"
|
|
115
|
+
"NS_EXTENSION_UNAVAILABLE_IOS" "NS_CLASS_AVAILABLE_IOS" "NS_CLASS_DEPRECATED_IOS" "__OSX_AVAILABLE_STARTING"
|
|
116
|
+
"NS_ROOT_CLASS" "NS_UNAVAILABLE" "NS_REQUIRES_NIL_TERMINATION" "CF_RETURNS_RETAINED"
|
|
117
|
+
"CF_RETURNS_NOT_RETAINED" "DEPRECATED_ATTRIBUTE" "UI_APPEARANCE_SELECTOR" "UNAVAILABLE_ATTRIBUTE"
|
|
118
|
+
]) @attribute
|
|
119
|
+
|
|
120
|
+
; Macros
|
|
121
|
+
|
|
122
|
+
(type_qualifier
|
|
123
|
+
[
|
|
124
|
+
"_Complex"
|
|
125
|
+
"_Nonnull"
|
|
126
|
+
"_Nullable"
|
|
127
|
+
"_Nullable_result"
|
|
128
|
+
"_Null_unspecified"
|
|
129
|
+
"__autoreleasing"
|
|
130
|
+
"__block"
|
|
131
|
+
"__bridge"
|
|
132
|
+
"__bridge_retained"
|
|
133
|
+
"__bridge_transfer"
|
|
134
|
+
"__complex"
|
|
135
|
+
"__kindof"
|
|
136
|
+
"__nonnull"
|
|
137
|
+
"__nullable"
|
|
138
|
+
"__ptrauth_objc_class_ro"
|
|
139
|
+
"__ptrauth_objc_isa_pointer"
|
|
140
|
+
"__ptrauth_objc_super_pointer"
|
|
141
|
+
"__strong"
|
|
142
|
+
"__thread"
|
|
143
|
+
"__unsafe_unretained"
|
|
144
|
+
"__unused"
|
|
145
|
+
"__weak"
|
|
146
|
+
]) @function.macro.builtin
|
|
147
|
+
|
|
148
|
+
[ "__real" "__imag" ] @function.macro.builtin
|
|
149
|
+
|
|
150
|
+
((call_expression function: (identifier) @function.macro)
|
|
151
|
+
(#eq? @function.macro "testassert"))
|
|
152
|
+
|
|
153
|
+
; Types
|
|
154
|
+
|
|
155
|
+
(class_declaration (identifier) @type)
|
|
156
|
+
|
|
157
|
+
(class_interface "@interface" . (identifier) @type superclass: _? @type category: _? @namespace)
|
|
158
|
+
|
|
159
|
+
(class_implementation "@implementation" . (identifier) @type superclass: _? @type category: _? @namespace)
|
|
160
|
+
|
|
161
|
+
(protocol_forward_declaration (identifier) @type) ; @interface :(
|
|
162
|
+
|
|
163
|
+
(protocol_reference_list (identifier) @type) ; ^
|
|
164
|
+
|
|
165
|
+
[
|
|
166
|
+
"BOOL"
|
|
167
|
+
"IMP"
|
|
168
|
+
"SEL"
|
|
169
|
+
"Class"
|
|
170
|
+
"id"
|
|
171
|
+
] @type.builtin
|
|
172
|
+
|
|
173
|
+
; Constants
|
|
174
|
+
|
|
175
|
+
(property_attribute (identifier) @constant "="?)
|
|
176
|
+
|
|
177
|
+
[ "__asm" "__asm__" ] @constant.macro
|
|
178
|
+
|
|
179
|
+
; Properties
|
|
180
|
+
|
|
181
|
+
(property_implementation "@synthesize" (identifier) @property)
|
|
182
|
+
|
|
183
|
+
((identifier) @property
|
|
184
|
+
(#has-ancestor? @property struct_declaration))
|
|
185
|
+
|
|
186
|
+
; Parameters
|
|
187
|
+
|
|
188
|
+
(method_parameter ":" @method (identifier) @parameter)
|
|
189
|
+
|
|
190
|
+
(method_parameter declarator: (identifier) @parameter)
|
|
191
|
+
|
|
192
|
+
(parameter_declaration
|
|
193
|
+
declarator: (function_declarator
|
|
194
|
+
declarator: (parenthesized_declarator
|
|
195
|
+
(block_pointer_declarator
|
|
196
|
+
declarator: (identifier) @parameter))))
|
|
197
|
+
|
|
198
|
+
"..." @parameter.builtin
|
|
199
|
+
|
|
200
|
+
; Operators
|
|
201
|
+
|
|
202
|
+
[
|
|
203
|
+
"^"
|
|
204
|
+
] @operator
|
|
205
|
+
|
|
206
|
+
; Literals
|
|
207
|
+
|
|
208
|
+
(platform) @string.special
|
|
209
|
+
|
|
210
|
+
(version_number) @text.uri @number
|
|
211
|
+
|
|
212
|
+
; Punctuation
|
|
213
|
+
|
|
214
|
+
"@" @punctuation.special
|
|
215
|
+
|
|
216
|
+
[ "<" ">" ] @punctuation.bracket
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
; inherits: c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
; inherits: c
|