Skip to content

Commit

Permalink
parser: add null_statement
Browse files Browse the repository at this point in the history
Fixes #101
  • Loading branch information
jkbz64 committed Nov 28, 2024
1 parent 852155d commit 19877e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ module.exports = grammar({
_terminator: ($) => /\s*\./i,
_block_terminator: ($) => seq(kw("END"), "."),

null_statement: ($) => seq(choice($.object_access), $._terminator),

null_expression: ($) => /\?/,
boolean_literal: ($) =>
choice(kw("TRUE"), kw("FALSE"), kw("YES"), kw("NO")),
Expand Down Expand Up @@ -1525,6 +1527,7 @@ module.exports = grammar({
_statement: ($) =>
choice(
$.var_statement,
$.null_statement,
$.variable_definition,
$.variable_assignment,
$.buffer_definition,
Expand Down

0 comments on commit 19877e4

Please sign in to comment.