Skip to content

Commit 3e205be

Browse files
committed
Incorporate upstream PR 51
1 parent 102953a commit 3e205be

File tree

7 files changed

+13777
-13495
lines changed

7 files changed

+13777
-13495
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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-angular-codemod"
33
description = "Angular grammar for tree-sitter"
4-
version = "0.6.0"
4+
version = "0.6.1"
55
keywords = ["incremental", "parsing", "angular"]
66
categories = ["parsing", "text-editors"]
77
repository = "https://github.com/tree-sitter/tree-sitter-angular"

grammar.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ module.exports = grammar(HTML, {
376376
'=',
377377
$._double_quote,
378378
optional(choice($._any_expression, $.assignment_expression)),
379+
repeat(seq(';', optional(choice($._any_expression, $.assignment_expression)))),
379380
$._double_quote,
380381
),
381382

@@ -389,7 +390,8 @@ module.exports = grammar(HTML, {
389390

390391
// ---------- Expressions ---------
391392
// Expression
392-
expression: ($) => prec.left(seq($._primitive, optional(field('pipes', $.pipe_sequence)))),
393+
expression: ($) =>
394+
prec.left(seq($._primitive, optional(field('pipes', $.pipe_sequence)))),
393395

394396
// Unary expression
395397
unary_expression: ($) =>
@@ -450,7 +452,8 @@ module.exports = grammar(HTML, {
450452
),
451453

452454
// ---------- Pipes ---------
453-
pipe_sequence: ($) => prec.left(PREC.PIPE, repeat1(seq(alias('|', $.pipe_operator), $.pipe_call))),
455+
pipe_sequence: ($) =>
456+
prec.left(PREC.PIPE, repeat1(seq(alias('|', $.pipe_operator), $.pipe_call))),
454457

455458
pipe_call: ($) =>
456459
prec.left(
@@ -459,7 +462,8 @@ module.exports = grammar(HTML, {
459462
),
460463

461464
pipe_arguments: ($) => prec.left(PREC.PIPE, repeat1($._pipe_argument)),
462-
_pipe_argument: ($) => prec.left(PREC.PIPE, seq(':', choice($._any_expression, $.group))),
465+
_pipe_argument: ($) =>
466+
prec.left(PREC.PIPE, seq(':', choice($._any_expression, $.group))),
463467

464468
// ---------- Primitives ----------
465469
_primitive: ($) =>

src/grammar.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)