Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/message.abnf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ simple-start = simple-start-char / escaped-char / placeholder
pattern = *(text-char / escaped-char / placeholder)
placeholder = expression / markup

complex-message = *(declaration [s]) complex-body
complex-message = *(declaration [s]) complex-body [s]
declaration = input-declaration / local-declaration / reserved-statement
complex-body = quoted-pattern / matcher

Expand Down
3 changes: 2 additions & 1 deletion spec/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ and consists of:

1. an optional list of _declarations_, followed by
2. a _complex body_
3. optional trailing whitespace

```abnf
complex-message = *(declaration [s]) complex-body
complex-message = *(declaration [s]) complex-body [s]
```

### Declarations
Expand Down
5 changes: 5 additions & 0 deletions test/tests/syntax.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,11 @@
"type": "unsupported-statement"
}
]
},
{
"src": "{{trailing whitespace}} \n",
"expCleanSrc": "trailing whitespace",
"exp": "trailing whitespace"
}
]
}