Skip to content

Commit 71a197c

Browse files
authored
Merge branch 'master' into master
2 parents 1928b52 + 9a4a2b3 commit 71a197c

File tree

12 files changed

+446823
-430698
lines changed

12 files changed

+446823
-430698
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ concurrency:
1010

1111
jobs:
1212
npm:
13-
uses: tree-sitter/workflows/.github/workflows/package-npm.yml@main
13+
uses: tree-sitter/workflows/.github/workflows/package-npm.yml@66df2de139d7a77a89644f67a88c803d4a8cf67e
1414
secrets:
1515
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1616
# TODO: comment this out for now since we publish the crate manually
1717
# crates:
1818
# uses: tree-sitter/workflows/.github/workflows/package-crates.yml@main
1919
# secrets:
2020
# CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_REGISTRY_TOKEN}}
21-
pypi:
22-
uses: tree-sitter/workflows/.github/workflows/package-pypi.yml@main
23-
secrets:
24-
PYPI_API_TOKEN: ${{secrets.PYPI_API_TOKEN}}
21+
22+
# TODO: uncomment when it works
23+
# pypi:
24+
# uses: tree-sitter/workflows/.github/workflows/package-pypi.yml@main
25+
# secrets:
26+
# PYPI_API_TOKEN: ${{secrets.PYPI_API_TOKEN}}

.github/workflows/sync.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
check-and-sync:
99
runs-on: ubuntu-latest
10+
if: github.repository == "tree-sitter/tree-sitter-scala"
1011
outputs:
1112
all: ${{ steps.changes.outputs.all}}
1213
c: ${{ steps.changes.outputs.c }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ build
44
target
55
*.log
66
test.scala
7-
package-lock.json
87
Cargo.lock
98
.scalafmt.conf
109
*worksheet.sc

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tree-sitter-scala"
33
description = "scala grammar for the tree-sitter parsing library"
4-
version = "0.22.0"
4+
version = "0.22.1"
55
keywords = ["incremental", "parsing", "scala"]
66
categories = ["parsing", "text-editors"]
77
repository = "https://github.com/tree-sitter/tree-sitter-scala"

grammar.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,12 @@ module.exports = grammar({
877877
_infix_type_choice: $ =>
878878
prec.left(
879879
PREC.infix,
880-
choice($.compound_type, $.infix_type, $._annotated_type, $.literal_type),
880+
choice(
881+
$.compound_type,
882+
$.infix_type,
883+
$._annotated_type,
884+
$.literal_type,
885+
),
881886
),
882887

883888
infix_type: $ =>

0 commit comments

Comments
 (0)