Mercurial > vim
comparison src/syntax.c @ 19892:5feb426d2ea1 v8.2.0502
patch 8.2.0502: Vim9: some code is not tested
Commit: https://github.com/vim/vim/commit/e8c4abbbd711af8fd3ed85ea69e9ac3d63a0d879
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 2 21:13:25 2020 +0200
patch 8.2.0502: Vim9: some code is not tested
Problem: Vim9: some code is not tested.
Solution: Add more tests. Fix uncovered problems.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 02 Apr 2020 21:15:04 +0200 |
parents | 94eda51ba9ba |
children | 3ff714d765ba |
comparison
equal
deleted
inserted
replaced
19891:e1168788aa04 | 19892:5feb426d2ea1 |
---|---|
5596 | 5596 |
5597 // need at least three chars | 5597 // need at least three chars |
5598 if (arg == NULL || arg[0] == NUL || arg[1] == NUL || arg[2] == NUL) | 5598 if (arg == NULL || arg[0] == NUL || arg[1] == NUL || arg[2] == NUL) |
5599 return NULL; | 5599 return NULL; |
5600 | 5600 |
5601 end = skip_regexp(arg + 1, *arg, TRUE, NULL); | 5601 end = skip_regexp(arg + 1, *arg, TRUE); |
5602 if (*end != *arg) // end delimiter not found | 5602 if (*end != *arg) // end delimiter not found |
5603 { | 5603 { |
5604 semsg(_("E401: Pattern delimiter not found: %s"), arg); | 5604 semsg(_("E401: Pattern delimiter not found: %s"), arg); |
5605 return NULL; | 5605 return NULL; |
5606 } | 5606 } |
5773 { | 5773 { |
5774 emsg(_("E403: syntax sync: line continuations pattern specified twice")); | 5774 emsg(_("E403: syntax sync: line continuations pattern specified twice")); |
5775 finished = TRUE; | 5775 finished = TRUE; |
5776 break; | 5776 break; |
5777 } | 5777 } |
5778 arg_end = skip_regexp(next_arg + 1, *next_arg, TRUE, NULL); | 5778 arg_end = skip_regexp(next_arg + 1, *next_arg, TRUE); |
5779 if (*arg_end != *next_arg) // end delimiter not found | 5779 if (*arg_end != *next_arg) // end delimiter not found |
5780 { | 5780 { |
5781 illegal = TRUE; | 5781 illegal = TRUE; |
5782 break; | 5782 break; |
5783 } | 5783 } |