@apple/tree-sitter-pkl 0.18.0 → 0.18.1

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/src/scanner.c CHANGED
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- #include <tree_sitter/parser.h>
17
+ #include "tree_sitter/parser.h"
18
18
  #include <stdio.h>
19
19
 
20
20
  enum TokenType {
@@ -4,6 +4,8 @@ typeTest
4
4
  foo = bar is Int(this < 0)
5
5
 
6
6
  qux = bar as Float
7
+
8
+ corge = bar as foo.Bar
7
9
  ---
8
10
 
9
11
  (module
@@ -26,4 +28,13 @@ qux = bar as Float
26
28
  (identifier))
27
29
  (declaredType
28
30
  (qualifiedIdentifier
31
+ (identifier)))))
32
+ (classProperty
33
+ (identifier)
34
+ (typeCastExpr
35
+ (unqualifiedAccessExpr
36
+ (identifier))
37
+ (declaredType
38
+ (qualifiedIdentifier
39
+ (identifier)
29
40
  (identifier))))))
package/tree-sitter.json CHANGED
@@ -11,11 +11,14 @@
11
11
  "pkl"
12
12
  ],
13
13
  "injection-regex": "^pkl$",
14
+ "highlights": "queries/highlights.scm",
15
+ "injections": "queries/injections.scm",
16
+ "locals": "queries/locals.scm",
14
17
  "class-name": "TreeSitterPkl"
15
18
  }
16
19
  ],
17
20
  "metadata": {
18
- "version": "0.18.0",
21
+ "version": "0.18.1",
19
22
  "license": "Apache-2.0",
20
23
  "description": "Parser for Pkl programming language",
21
24
  "authors": [