Skip to content

Commit 1e16d4f

Browse files
committed
Empty end matches 0xFFFF ï¿¿
1 parent 2a564c2 commit 1e16d4f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

documentation/rules.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ Used to end the region started by [begin](#begin).
159159
`end` is checked before the [patterns](#patterns) array. But it is not concrete.
160160
Meaning items in [patterns](#patterns) can consume the same text as `end` and effectively push the `end` rule along.
161161
`end` can end directly after [begin](#begin). Don't get caught out by it. [Bad usage of 0-wdith `begin` and `end` rules](https://github.com/Microsoft/vscode-textmate/issues/12).
162+
If `end` is empty or missing. It will match against the character 0xFFFF `￿`.
163+
If `end` is invalid it will either end immediately or carry on to the end of the document.
162164
[applyEndPatternLast](#applyendpatternlast) controls if `end` should attempt to match before or after the [patterns](#patterns) array.
163165
[name](#name) is used to apply a scope-name to the token matched by `end`.
164166
[captures](#captures) is used to apply scope-names to specific capture groups and/or retokenize the capture groups.
@@ -309,4 +311,4 @@ With the exception of [patterns](#patterns). It must only contain objects `{}`.
309311

310312

311313

312-
## [Introduction](index.md)
314+
## [Introduction](index.md)

0 commit comments

Comments
 (0)