You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/rules.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,6 +159,8 @@ Used to end the region started by [begin](#begin).
159
159
`end` is checked before the [patterns](#patterns) array. But it is not concrete.
160
160
Meaning items in [patterns](#patterns) can consume the same text as `end` and effectively push the `end` rule along.
161
161
`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.
162
164
[applyEndPatternLast](#applyendpatternlast) controls if `end` should attempt to match before or after the [patterns](#patterns) array.
163
165
[name](#name) is used to apply a scope-name to the token matched by `end`.
164
166
[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 `{}`.
0 commit comments