Skip to content

Commit 05f65f0

Browse files
author
othree_kao
committed
Simpler ls postprocess
1 parent 916fc51 commit 05f65f0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

autoload/syntax/postprocess.ls.vim

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,11 @@ syntax cluster lsLibraryAttrs contains=@lsQAttrs,@ls_Attrs,@lsBAttrs,@lspAttrs
1414
" fun0!fun()
1515
" obj.fun!
1616
" obj.fun()
17-
syntax match lsLMethods /\([0-9A-Za-z_$][.!]\|)\.\)\h\w*[(!]\@=/ containedin=ALLBUT,lsComment,lsString contains=@lsLibraryFuncs transparent
1817
" ).fun arg
1918
" !fun arg
2019
" obj.fun arg
21-
syntax match lsLMethods /\([0-9A-Za-z_$][.!]\|)\.\)\h\w* \+[0-9A-Za-z_$([{\'"]\@=/ containedin=ALLBUT,lsComment,lsString contains=@lsLibraryFuncs transparent
22-
" ).fun funarg
23-
" !fun funarg
24-
" obj.fun funarg
25-
syntax match lsLMethods /\([0-9A-Za-z_$][.!]\|)\.\)\h\w* \(!\?[~-]>\)\@=/ containedin=ALLBUT,lsComment,lsString contains=@lsLibraryFuncs transparent
20+
syntax match lsLDot /\./ containedin=ALLBUT,lsComment,lsString contains=@lsLibraryFuncs,@lsLibraryAttrs
21+
syntax match lsLExp /!/ containedin=ALLBUT,lsComment,lsString contains=@lsLibraryFuncs,@lsLibraryAttrs
22+
2623
syntax match lsLPipe /|>/ containedin=ALLBUT,lsComment,lsString skipwhite nextgroup=@lspFunctions
2724
syntax match lsLCompose />>/ containedin=ALLBUT,lsComment,lsString skipwhite nextgroup=@lspFunctions
28-
syntax match lsLAttrs /\([0-9A-Za-z_$][.!]\|)\.\)\h\w*/ containedin=ALL contains=@lsLibraryAttrs transparent

0 commit comments

Comments
 (0)