Skip to content

Commit fbc96df

Browse files
committed
Build with Xcode 13.4. Update JSON
1 parent e99e584 commit fbc96df

File tree

10 files changed

+30
-23
lines changed

10 files changed

+30
-23
lines changed

Sources/tree_sitter_language_resources/LanguageResources/java/highlights.scm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
"module"
113113
"native"
114114
"new"
115+
"non-sealed"
115116
"open"
116117
"opens"
117118
"package"
@@ -121,6 +122,7 @@
121122
"public"
122123
"requires"
123124
"return"
125+
"sealed"
124126
"static"
125127
"strictfp"
126128
"switch"

Sources/tree_sitter_language_resources/LanguageResources/java/tags.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
(interface_declaration
1212
name: (identifier) @name) @definition.interface
1313

14-
(interface_type_list
14+
(type_list
1515
(type_identifier) @name) @reference.implementation
1616

1717
(object_creation_expression
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
(pair
2-
key: (_) @keyword)
2+
key: (_) @string.special.key)
33

44
(string) @string
55

6-
(object
7-
"{" @escape
8-
(_)
9-
"}" @escape)
6+
(number) @number
7+
8+
[
9+
(null)
10+
(true)
11+
(false)
12+
] @constant.builtin
13+
14+
(escape_sequence) @escape
15+
16+
(comment) @comment

Sources/tree_sitter_language_resources/LanguageResources/swift/highlights.scm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
(type_parameter (type_identifier) @parameter)
2828
(inheritance_constraint (identifier (simple_identifier) @parameter))
2929
(equality_constraint (identifier (simple_identifier) @parameter))
30-
(non_binding_pattern bound_identifier: (simple_identifier)) @variable
30+
(pattern bound_identifier: (simple_identifier)) @variable
3131

3232
[
3333
"typealias"
@@ -46,8 +46,8 @@
4646
(modify_specifier)
4747
] @keyword
4848

49-
(class_body (property_declaration (value_binding_pattern (non_binding_pattern (simple_identifier) @property))))
50-
(protocol_property_declaration (value_binding_pattern (non_binding_pattern (simple_identifier) @property)))
49+
(class_body (property_declaration (pattern (simple_identifier) @property)))
50+
(protocol_property_declaration (pattern (simple_identifier) @property))
5151

5252
(import_declaration ["import" @include])
5353

@@ -75,7 +75,6 @@
7575
["while" "repeat" "continue" "break"] @repeat
7676

7777
["let" "var"] @keyword
78-
(non_binding_pattern (simple_identifier) @variable)
7978

8079
(guard_statement ["guard" @conditional])
8180
(if_statement ["if" @conditional])

scripts/build-tree-sitter.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ IPHONESIMULATOR_SYSROOT=$(xcrun --sdk iphonesimulator --show-sdk-path)
1414

1515
MACOS_COMMON_FLAGS="-arch arm64 -arch x86_64 -mmacosx-version-min=10.13"
1616
IPHONEOS_COMMON_FLAGS="-arch arm64 -miphoneos-version-min=11.0 -fembed-bitcode -isysroot $IPHONEOS_SYSROOT"
17-
MACCATALYST_COMMON_FLAGS="-arch arm64 -arch x86_64 -target x86_64-apple-ios-macabi -fembed-bitcode -miphoneos-version-min=13.0"
17+
MACCATALYST_COMMON_FLAGS="-arch arm64 -arch x86_64 -target x86_64-apple-ios-macabi -fembed-bitcode -miphoneos-version-min=14.0"
1818
IPHONESIMULATOR_COMMON_FLAGS="-arch arm64 -arch x86_64 -miphonesimulator-version-min=11.0 -isysroot $IPHONESIMULATOR_SYSROOT"
1919

2020
pushd $TMP_BUILD_DIR
@@ -139,7 +139,6 @@ build_parser "python"
139139

140140
git clone --depth 1 https://github.com/tree-sitter/tree-sitter-html.git
141141
pushd tree-sitter-html
142-
gh pr checkout 38
143142
popd
144143
build_parser "html"
145144

tree_sitter.xcframework/Info.plist

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>macos-arm64_x86_64</string>
9+
<string>ios-arm64_x86_64-simulator</string>
1010
<key>LibraryPath</key>
1111
<string>tree_sitter.framework</string>
1212
<key>SupportedArchitectures</key>
@@ -15,11 +15,13 @@
1515
<string>x86_64</string>
1616
</array>
1717
<key>SupportedPlatform</key>
18-
<string>macos</string>
18+
<string>ios</string>
19+
<key>SupportedPlatformVariant</key>
20+
<string>simulator</string>
1921
</dict>
2022
<dict>
2123
<key>LibraryIdentifier</key>
22-
<string>ios-arm64_x86_64-simulator</string>
24+
<string>macos-arm64_x86_64</string>
2325
<key>LibraryPath</key>
2426
<string>tree_sitter.framework</string>
2527
<key>SupportedArchitectures</key>
@@ -28,36 +30,34 @@
2830
<string>x86_64</string>
2931
</array>
3032
<key>SupportedPlatform</key>
31-
<string>ios</string>
32-
<key>SupportedPlatformVariant</key>
33-
<string>simulator</string>
33+
<string>macos</string>
3434
</dict>
3535
<dict>
3636
<key>LibraryIdentifier</key>
37-
<string>ios-arm64_x86_64-maccatalyst</string>
37+
<string>ios-arm64</string>
3838
<key>LibraryPath</key>
3939
<string>tree_sitter.framework</string>
4040
<key>SupportedArchitectures</key>
4141
<array>
4242
<string>arm64</string>
43-
<string>x86_64</string>
4443
</array>
4544
<key>SupportedPlatform</key>
4645
<string>ios</string>
47-
<key>SupportedPlatformVariant</key>
48-
<string>maccatalyst</string>
4946
</dict>
5047
<dict>
5148
<key>LibraryIdentifier</key>
52-
<string>ios-arm64</string>
49+
<string>ios-arm64_x86_64-maccatalyst</string>
5350
<key>LibraryPath</key>
5451
<string>tree_sitter.framework</string>
5552
<key>SupportedArchitectures</key>
5653
<array>
5754
<string>arm64</string>
55+
<string>x86_64</string>
5856
</array>
5957
<key>SupportedPlatform</key>
6058
<string>ios</string>
59+
<key>SupportedPlatformVariant</key>
60+
<string>maccatalyst</string>
6161
</dict>
6262
</array>
6363
<key>CFBundlePackageType</key>
Binary file not shown.

0 commit comments

Comments
 (0)