Skip to content

Commit c975ac5

Browse files
committed
Syntax: streamline TypeOperatorR
1 parent f894846 commit c975ac5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

syntax/julia.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,11 @@ exec 'syntax region juliaQuotedParBlockS matchgroup=juliaQParDelim contained s
354354

355355

356356
" force precedence over Symbols
357-
exec 'syntax match juliaTypeOperatorR transparent "[<>:]:\s*\%(' . s:idregex . '\.\)*' . s:idregex . '" contains=juliaTypeOperator,juliaType,@juliaExpressions'
358-
exec 'syntax match juliaTypeOperatorR transparent "' . s:idregex . '\%(\.' . s:idregex . '\)*\s*[<>]:\s*\%(\%(' . s:idregex . '\.\)*' . s:idregex . '\)\?" contains=juliaTypeOperator,juliaType,@juliaExpressions'
359-
exec 'syntax match juliaTypeOperatorR transparent "\<isa\s\+\%(' . s:idregex . '\.\)*' . s:idregex . '" contains=juliaIsaKeyword,juliaType,@juliaExpressions'
360-
syntax match juliaTypeOperator contained "[:<>]:"
357+
exec 'syntax match juliaTypeOperatorR transparent "' . s:idregex . '\%(\s*[<>]:\)\@=" contains=juliaType,@juliaExpressions'
358+
syntax match juliaTypeOperator contained "[<>:]:"
359+
exec 'syntax match juliaTypeOperatorR transparent "[<>:]:\s*\%(' . s:idregex . '\.\)*' . s:idregex . '" contains=juliaTypeOperator,juliaType,@juliaExpressions nextgroup=juliaTypeOperator'
361360
syntax match juliaIsaKeyword contained "\<isa\>"
361+
exec 'syntax match juliaTypeOperatorR transparent "\<isa\s\+\%(' . s:idregex . '\.\)*' . s:idregex . '" contains=juliaIsaKeyword,juliaType,@juliaExpressions nextgroup=juliaIsaKeyword'
362362

363363
syntax match juliaWhereKeyword "\<where\>"
364364
exec 'syntax match juliaWhereR transparent "\<where\s\+' . s:idregex . '" contains=juliaWhereKeyword,juliaType,juliaTypeOperatorR'

0 commit comments

Comments
 (0)