Lines Matching refs:pattern
10 color. Those parts can be specific keywords or text matching a pattern. Vim
30 8. Syntax patterns |:syn-pattern|
355 | again with checks like "getline(1) =~ pattern" as to whether the
2995 each plausible pattern delimiter).
3639 This is a match with a single regexp pattern.
3642 This starts at a match of the "start" regexp pattern and ends with a match
3643 with the "end" regexp pattern. Any other text can appear in between. A
3644 "skip" regexp pattern can be used to avoid matching the "end" pattern.
3815 {pattern}
3822 [excludenl] Don't make a pattern with the end-of-line "$"
3824 given before the pattern. |:syn-excludenl|
3826 match with the end pattern. See
3828 {pattern} The search pattern that defines the match.
3829 See |:syn-pattern| below.
3830 Note that the pattern may match more than one
3832 Vim starts searching for the pattern. You
3846 start={start-pattern} ..
3847 [skip={skip-pattern}]
3848 end={end-pattern} ..
3856 start or end pattern matches only. Not used
3862 match with the end pattern. See
3866 excludenl Don't make a pattern with the end-of-line "$"
3870 start={start-pattern} The search pattern that defines the start of
3871 the region. See |:syn-pattern| below.
3872 skip={skip-pattern} The search pattern that defines text inside
3874 pattern. See |:syn-pattern| below.
3875 end={end-pattern} The search pattern that defines the end of
3876 the region. See |:syn-pattern| below.
3882 There can be zero or one skip pattern. There must be one or more
3884 pattern, but you must give at least one start and one end pattern. It
3888 When more than one start pattern is given, a match with one of these
3893 The search for the end pattern starts right after the start pattern.
3895 end pattern will never overlap with the start pattern.
3897 The skip and end pattern can match across line breaks, but since the
3898 search for the pattern can start in any line it often does not do what
3899 you want. The skip pattern doesn't avoid a match of an end pattern in
3903 pattern. There is no check for a matching end pattern. This does NOT
3907 < The Second always matches before the First (last defined pattern has
3912 < This pattern matches any character or line break with "\_." and
3916 By default, a contained match can obscure a match for the end pattern.
3925 of an end pattern of the outer region also end any contained item.
3927 contained items to highlight parts of the end pattern, without causing
3928 that to skip the match with the end pattern. Example: >
3934 When "keepend" is not used, a match with an end pattern is retried
3936 encountered match with an end pattern is used, truncating any
3963 When a pattern for a match or end pattern of a region includes a '$'
3975 "excludenl" must be given before the pattern it applies to.
3978 "matchgroup" can be used to highlight the start and/or end pattern
3987 In a start or end pattern that is highlighted with "matchgroup" the
3989 that a contained item matches in the start or end pattern match. When
3990 using "transparent", this does not apply to a start or end pattern
4149 continuation pattern. But the "end" pattern must still match in the first
4152 When the start pattern includes a "\n" to match an end-of-line, the end
4153 pattern must be found in the same line as where the start pattern ends. The
4154 end pattern may also include an end-of-line. Thus the "oneline" argument
4155 means that the end of the start pattern and the start of the end pattern must
4156 be within one line. This can't be changed by a skip pattern that matches a
4213 The {group-name} in the "contains" list can be a pattern. All group names
4214 that match the pattern will be included (or excluded, if "ALLBUT" is used).
4215 The pattern cannot contain white space or a ','. Example: >
4278 would include the first "Foo" and the last "Bar" in the line (see |pattern|).
4329 8. Syntax patterns *:syn-pattern* *E401* *E402*
4331 In the syntax commands, a pattern must be surrounded by two identical
4333 use is the double quote. But if the pattern contains a double quote, you can
4334 use another character that is not used in the pattern. Examples: >
4338 See |pattern| for the explanation of what a pattern is. Syntax patterns are
4347 *:syn-pattern-offset*
4348 The pattern can be followed by a character offset. This can be used to
4351 are relative to the matched pattern. The character offset for a skip
4352 pattern can be used to tell where to continue looking for an end pattern.
4363 lc Leading Context offset past "leading context" of pattern
4367 s start of the matched pattern
4368 s+{nr} start of the matched pattern plus {nr} chars to the right
4369 s-{nr} start of the matched pattern plus {nr} chars to the left
4370 e end of the matched pattern
4371 e+{nr} end of the matched pattern plus {nr} chars to the right
4372 e-{nr} end of the matched pattern plus {nr} chars to the left
4377 Although all offsets are accepted after any pattern, they are not always
4393 - There must be no white space between the pattern and the character
4396 - A negative offset for an end pattern may not always work, because the end
4397 pattern may be detected when the highlighting should already have stopped.
4401 - The start of a match cannot be in a line other than where the pattern
4422 in the pattern.
4424 The "lc" offset specifies leading context -- a part of the pattern that must
4426 cause Vim to step back n columns before attempting the pattern match, allowing
4449 When using a start pattern with an offset, the start of the match is not
4454 The skip pattern can include the "\n", but the search for an end pattern will
4456 matched by the skip pattern. This is because redrawing may start in any line
4457 halfway a region and there is no check if the skip pattern started in a
4458 previous line. For example, if the skip pattern is "a\nb" and an end pattern
4459 is "b", the end pattern does match in the second line of this: >
4462 Generally this means that the skip pattern should not match any characters
4472 accessed from another pattern match. Currently only usable in
4473 defining a syntax region start pattern.
4478 sub-expression in a previous start pattern match.
4484 referenced from outside the pattern in which it is defined. The here-document
4488 As can be seen here, the \z actually does double duty. In the start pattern,
4489 it marks the "\(\I\i*\)" sub-expression as external; in the end pattern, it
4491 first external sub-expression in the start pattern. External references can
4496 indexed separately; for instance, if the pattern "\z(..\)\(..\)" is applied
4499 within the same pattern like normal sub-expressions. If you want to use one
4610 4. Searching backwards in the text for a pattern to sync on.
4622 for a comment or syncing pattern is restricted to N lines backwards (after
4628 When using a pattern that matches multiple lines, a change in one line may
4629 cause a pattern to no longer match in a previous line. This means has to
4631 the "linebreaks" argument. For example, when a pattern may include one line
4665 region does have a start pattern "\/*" and an end pattern "*\/".
4693 sync pattern. Only regions can cross lines, so when we find the end of some
4705 - A line continuation pattern can be given. It is used to decide which group
4708 consecutive lines that contain the continuation pattern.
4714 - When a match with a sync pattern is found, the rest of the line (or group of
4719 There are two ways how a match with a sync pattern can be used:
4721 search for the sync pattern started). The syntax group that is expected
4739 :syntax sync match {sync-group-name} grouphere {group-name} "pattern" ..
4748 :syntax sync match {sync-group-name} groupthere {group-name} "pattern" ..
4753 pattern searching is assumed not to change the syntax highlighting.
4768 :syntax sync linecont {pattern}
4770 When {pattern} matches in a line, it is considered to continue in
5282 Search Last search pattern highlighting (see 'hlsearch').
5734 overhead to compute the time spent on syntax pattern
5747 matching this pattern.
5748 COUNT Number of times the pattern was used.
5749 MATCH Number of times the pattern actually
5755 PATTERN The pattern being used.
5759 pattern does NOT match.