From e86e0ad36ef9501acbc3e8c63a1d4fab104e47cb Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 5 Mar 2020 12:30:24 +0100 Subject: Update --- ftplugin/julia.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ftplugin') diff --git a/ftplugin/julia.vim b/ftplugin/julia.vim index c03ac30b..90cc49e3 100644 --- a/ftplugin/julia.vim +++ b/ftplugin/julia.vim @@ -31,9 +31,11 @@ let b:undo_ftplugin = "setlocal include< suffixesadd< comments< commentstring<" if exists("loaded_matchit") let b:match_ignorecase = 0 - " note: begin_keywords must contain all blocks in order + " note: begin_keywords must contain all blocks, in order " for nested-structures-skipping to work properly - let b:julia_begin_keywords = '\%(\%(\.\s*\)\@' + " note: 'mutable struct' and 'strcut' are defined separately because + " using \? puts the cursor on 'struct' instead of 'mutable' for some reason + let b:julia_begin_keywords = '\%(\%(\.\s*\)\@' " note: the following regex not only recognizes macros, but also local/global keywords. " the purpose is recognizing things like `@inline myfunction()` " or `global myfunction(...)` etc, for matchit and block movement functionality @@ -77,7 +79,7 @@ if exists("loaded_matchit") " the 'end' keyword when it is used as a range rather than as " the end of a block let b:match_skip = 'synIDattr(synID(line("."),col("."),1),"name") =~ ' - \ . '"\\"' + \ . '"\\"' let b:undo_ftplugin = b:undo_ftplugin \ . " | unlet! b:match_words b:match_skip b:match_ignorecase" -- cgit v1.2.3