Skip to content

Commit 387a1e3

Browse files
committed
fixed inclusion of 'async'
1 parent 13a0fd7 commit 387a1e3

File tree

3 files changed

+15850
-14484
lines changed

3 files changed

+15850
-14484
lines changed

grammar.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ module.exports = grammar({
3232
],
3333

3434
conflicts: $ => [
35-
[
36-
$.program_id,
37-
$.record_type,
38-
$.variable
39-
],
4035
[
4136
$.program_name_literal,
4237
$.variable_identifier
@@ -973,6 +968,7 @@ module.exports = grammar({
973968

974969
function_declaration: $ => seq(
975970
repeat($.annotation),
971+
optional('async'),
976972
'function',
977973
field("name", $.identifier),
978974
optional($.function_parameters),
@@ -1005,6 +1001,7 @@ module.exports = grammar({
10051001

10061002
inline_declaration: $ => seq(
10071003
repeat($.annotation),
1004+
optional('async'),
10081005
'inline',
10091006
field("name", $.identifier),
10101007
optional($.function_parameters),
@@ -1019,6 +1016,7 @@ module.exports = grammar({
10191016

10201017
transition_declaration: $ => seq(
10211018
repeat($.annotation),
1019+
optional('async'),
10221020
'transition',
10231021
field('name', $.identifier),
10241022
optional($.function_parameters),

src/node-types.json

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)