Skip to content

Commit

Permalink
Don't attach syntax class to this helper match
Browse files Browse the repository at this point in the history
This is never highlighted, only used to help in the matching of postfix
hyperoperators, so there's no need for a syntax class to be attached
here, hence 'transparent'.
  • Loading branch information
hinrik committed Jul 30, 2016
1 parent eadbd41 commit bd06ac6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syntax/perl6.vim
Expand Up @@ -713,7 +713,7 @@ syn match p6VarNum display "\$\d\+"
syn match p6Variable display "self"
syn match p6Variable display "[@$%&]\?[@&$%]\$*\%(::\|\%(\%([.^*?=!~]\|:\@1<!::\@!\)[A-Za-z_\xC0-\xFF]\)\|[A-Za-z_\xC0-\xFF]\)\@=" nextgroup=p6Twigil,p6VarName,p6PackageScope
syn match p6VarName display "\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)" nextgroup=p6PostHyperOp contained
syn match p6Close display "[\])]" nextgroup=p6PostHyperOp
syn match p6Close display "[\])]" transparent nextgroup=p6PostHyperOp
syn match p6PostHyperOp display "\%\|>>\)" contained
syn match p6Twigil display "\%([.^*?=!~]\|:\@1<!::\@!\)[A-Za-z_\xC0-\xFF]\@=" nextgroup=p6PackageScope,p6VarName contained
syn match p6PackageScope display "\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\?::" nextgroup=p6PackageScope,p6VarName contained
Expand Down
2 changes: 1 addition & 1 deletion syntax/perl6.vim.pre
Expand Up @@ -713,7 +713,7 @@ syn match p6VarNum display "\$\d\+"
syn match p6Variable display "self"
syn match p6Variable display "[@$%&]\?[@&$%]\$*\%(::\|\%(\%([.^*?=!~]\|:\@1<!::\@!\)@@IDENT_NONDIGIT@@\)\|@@IDENT_NONDIGIT@@\)\@=" nextgroup=p6Twigil,p6VarName,p6PackageScope
syn match p6VarName display "@@IDENTIFIER@@" nextgroup=p6PostHyperOp contained
syn match p6Close display "[\])]" nextgroup=p6PostHyperOp
syn match p6Close display "[\])]" transparent nextgroup=p6PostHyperOp
syn match p6PostHyperOp display "\%\|>>\)" contained
syn match p6Twigil display "\%([.^*?=!~]\|:\@1<!::\@!\)@@IDENT_NONDIGIT@@\@=" nextgroup=p6PackageScope,p6VarName contained
syn match p6PackageScope display "@@IDENTIFIER@@\?::" nextgroup=p6PackageScope,p6VarName contained
Expand Down

0 comments on commit bd06ac6

Please sign in to comment.