Mercurial > vim
diff Filelist @ 32920:75f46cfabbff
Runtime: Add nixInherit matcher in nix.vim syntax
Commit: https://github.com/vim/vim/commit/72904d5fda0a1bc78f4bc9080c158226e6e90d5c
Author: James Fleming <james@electronic-quill.net>
Date: Sat Jul 29 12:01:18 2023 +0200
Runtime: Add nixInherit matcher in nix.vim syntax
Perform the lookahead in `nixInheritAttributeScope`, then hand over to a
new region called `nixInheritAttributeSubExpr`, which sets the match
start to one char after the opening bracket to avoid a double-match.
Finally, only do a lookahead to `)` in `nixInheritAttributeSubExpr` (and
thus make sure the region is closed to not get a match of `nixParen`
here) and let `nixInheritAttributeScope` close the bracket.
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 20 Aug 2023 19:30:06 +0200 |
parents | 695b50472e85 |
children | 7df9cb603272 |