Skip to content

Commit c3c3595

Browse files
committed
Special-case: dot before closing brackets
Fix #265
1 parent 69673e4 commit c3c3595

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/julia.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ syntax match juliaColon display ":"
120120
" A dot can introduce a sort of 'environment' such that words after it are not
121121
" recognized as keywords. This has low precedence so that it can be overridden
122122
" by operators
123-
syntax match juliaDotted transparent "\.\s*[^.]" contains=@juliaExprsNodot
124-
syntax match juliaDottedT contained transparent "\.\s*[^.]" contains=@juliaExprsNodot,juliaType
123+
syntax match juliaDotted transparent "\.\s*[^])}.]" contains=@juliaExprsNodot
124+
syntax match juliaDottedT contained transparent "\.\s*[^])}.]" contains=@juliaExprsNodot,juliaType
125125

126126
syntax match juliaErrorPar display "[])}]"
127127
syntax match juliaErrorEnd display "\<end\>"

0 commit comments

Comments
 (0)