]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(vim): Update base-syntax, improve number matching (#14175)
authordkearns <dougkearns@gmail.com>
Mon, 11 Mar 2024 20:40:58 +0000 (07:40 +1100)
committerGitHub <noreply@github.com>
Mon, 11 Mar 2024 20:40:58 +0000 (21:40 +0100)
commit5cd86c6cff94256ed2db872c46b57da259a648ac
tree7a674ec8792c65dfb431064ff68fc17a65202704
parent49ffb6b428e1e053446ec0209558a8f9d0963ae7
runtime(vim): Update base-syntax, improve number matching (#14175)

- Limit blob literals to an even number of hexadecimal digits and
  correctly located dots.
- Match octal numbers.

The current version unsuccessfully attempts to match a leading '-' as
part of the float literal.  It's actually parsed as part of the literal
for all numbers but the syntax file hasn't matched it like that for a
long time and highlights negative numbers as UNARY-MINUS NUMBER.  This
will be fixed when better expression matching is implemented.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/generator/vim.vim.base
runtime/syntax/testdir/dumps/vim_expr_01.dump
runtime/syntax/testdir/dumps/vim_expr_02.dump
runtime/syntax/testdir/dumps/vim_expr_03.dump
runtime/syntax/testdir/dumps/vim_expr_99.dump
runtime/syntax/testdir/input/vim_expr.vim
runtime/syntax/vim.vim