Skip to content

Commit

Permalink
parser: add DEF shorthands where possible
Browse files Browse the repository at this point in the history
Fixes #51
  • Loading branch information
jkbz64 committed Aug 28, 2024
1 parent 3826329 commit ff2f7a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ module.exports = grammar({

procedure_parameter_definition: ($) =>
seq(
kw("DEFINE"),
choice(kw("DEFINE"), kw("DEF")),
choice(kw("INPUT"), kw("OUTPUT"), kw("INPUT-OUTPUT"), kw("RETURN")),
kw("PARAMETER"),
$.identifier,
Expand Down Expand Up @@ -484,7 +484,7 @@ module.exports = grammar({
),
property_definition: ($) =>
seq(
kw("DEFINE"),
choice(kw("DEFINE"), kw("DEF")),
repeat(choice($.access_tuning, $.scope_tuning, $.property_type)),
optional($.serialization_tuning),
kw("PROPERTY"),
Expand All @@ -499,7 +499,7 @@ module.exports = grammar({

event_definition: ($) =>
seq(
kw("DEFINE"),
choice(kw("DEFINE"), kw("DEF")),
repeat(choice($.access_tuning, $.scope_tuning, $.property_type)),
kw("EVENT"),
$.identifier,
Expand Down Expand Up @@ -535,7 +535,7 @@ module.exports = grammar({
),
dataset_definition: ($) =>
seq(
kw("DEFINE"),
choice(kw("DEFINE"), kw("DEF")),
repeat(choice($.scope_tuning, $.access_tuning)),
kw("DATASET"),
$.identifier,
Expand Down Expand Up @@ -1139,7 +1139,7 @@ module.exports = grammar({

data_source_definition: ($) =>
seq(
kw("DEFINE"),
choice(kw("DEFINE"), kw("DEF")),
optional($.access_tuning),
optional($.scope_tuning),
kw("DATA-SOURCE"),
Expand Down

0 comments on commit ff2f7a3

Please sign in to comment.