Skip to content

Commit 2ec113c

Browse files
committed
Add reduction specifier for do concurrent
1 parent 5824718 commit 2ec113c

File tree

5 files changed

+390382
-389946
lines changed

5 files changed

+390382
-389946
lines changed

grammar.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,24 @@ module.exports = grammar({
12171217
seq(
12181218
caseInsensitive('default'),
12191219
'(', caseInsensitive('none'), ')'
1220-
)
1220+
),
1221+
seq(
1222+
caseInsensitive('reduce'),
1223+
'(', $.binary_op, ':', commaSep1($.identifier), ')',
1224+
),
1225+
),
1226+
binary_op: $ => choice(
1227+
'+',
1228+
'*',
1229+
caseInsensitive('\\.and\\.'),
1230+
caseInsensitive('\\.or\\.'),
1231+
caseInsensitive('\\.eqv\\.'),
1232+
caseInsensitive('\\.neqv\\.'),
1233+
caseInsensitive('iand'),
1234+
caseInsensitive('ieor'),
1235+
caseInsensitive('ior'),
1236+
caseInsensitive('max'),
1237+
caseInsensitive('min'),
12211238
),
12221239

12231240
if_statement: $ => choice(

0 commit comments

Comments
 (0)