diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-08-06 13:22:17 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-08-06 13:22:17 +0200 |
commit | 1e533e5982a9c80f262b09fbe94e1ac4555ad915 (patch) | |
tree | ed573a3e399a95c2c3baeb6a1371d4753357cecc /syntax/julia.vim | |
parent | 56121b4e27cb48efb17be55a969b2f0d725266f8 (diff) | |
download | vim-polyglot-1e533e5982a9c80f262b09fbe94e1ac4555ad915.tar.gz vim-polyglot-1e533e5982a9c80f262b09fbe94e1ac4555ad915.zip |
Update
Diffstat (limited to 'syntax/julia.vim')
-rw-r--r-- | syntax/julia.vim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/syntax/julia.vim b/syntax/julia.vim index ac39d6f4..be4f9680 100644 --- a/syntax/julia.vim +++ b/syntax/julia.vim @@ -109,11 +109,15 @@ syntax match juliaSemicolon display ";" syntax match juliaComma display "," syntax match juliaColon display ":" +" This is really ugly. It would be better to mask most keywords when a dot is +" found, introducing some kind of dot-environment +let s:nodot = '\%(\.\)\@'.s:d(1).'<!' + syntax match juliaErrorPar display "[])}]" -syntax match juliaErrorEnd display "\<end\>" -syntax match juliaErrorElse display "\<\%(else\|elseif\)\>" -syntax match juliaErrorCatch display "\<catch\>" -syntax match juliaErrorFinally display "\<finally\>" +exec 'syntax match juliaErrorEnd display "'.s:nodot.'\<end\>"' +exec 'syntax match juliaErrorElse display "'.s:nodot.'\<\%(else\|elseif\)\>"' +exec 'syntax match juliaErrorCatch display "'.s:nodot.'\<catch\>"' +exec 'syntax match juliaErrorFinally display "'.s:nodot.'\<finally\>"' syntax match juliaErrorSemicol display contained ";" syntax region juliaParBlock matchgroup=juliaParDelim start="(" end=")" contains=@juliaExpressions,juliaComprehensionFor @@ -122,10 +126,6 @@ syntax region juliaSqBraIdxBlock matchgroup=juliaParDelim start="\[" end="\]" c exec 'syntax region juliaSqBraBlock matchgroup=juliaParDelim start="\%(^\|\s\|' . s:operators . '\)\@'.s:d(3).'<=\[" end="\]" contains=@juliaExpressions,juliaComprehensionFor,juliaSymbolS,juliaQuotedParBlockS,juliaQuotedQMarkParS' syntax region juliaCurBraBlock matchgroup=juliaParDelim start="{" end="}" contains=@juliaExpressions -" This is really ugly. It would be better to mask most keywords when a dot is -" found, introducing some kind of dot-environment -let s:nodot = '\%(\.\)\@'.s:d(1).'<!' - exec 'syntax match juliaKeyword display "'.s:nodot.'\<\%(return\|local\|global\|import\%(all\)\?\|export\|using\|const\|where\)\>"' syntax match juliaInfixKeyword display "\%(=\s*\)\@<!\<\%(in\|isa\)\>\S\@!\%(\s*=\)\@!" exec 'syntax match juliaRepKeyword display "'.s:nodot.'\<\%(break\|continue\)\>"' |