Skip to content

Commit

Permalink
Added support for no spaces between paraemter and value
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Lineman <[email protected]>
  • Loading branch information
ActuallyTaylor committed Oct 2, 2023
1 parent 9dc6508 commit 353edc0
Show file tree
Hide file tree
Showing 4 changed files with 2,691 additions and 2,604 deletions.
4 changes: 1 addition & 3 deletions example-file.jelly
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
repeat 1 {
var x = RepeatIndex
}
wait(seconds:3)
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ module.exports = grammar({
seq(
field('parameter_name', $.identifier),
':',
/\s+/
optional(/\s+/)
)
),
field('item', $._primitive),
Expand Down
12 changes: 10 additions & 2 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -736,8 +736,16 @@
"value": ":"
},
{
"type": "PATTERN",
"value": "\\s+"
"type": "CHOICE",
"members": [
{
"type": "PATTERN",
"value": "\\s+"
},
{
"type": "BLANK"
}
]
}
]
},
Expand Down
Loading

0 comments on commit 353edc0

Please sign in to comment.