Mercurial > vim
comparison src/regexp_nfa.c @ 26771:fc859aea8cec v8.2.3914
patch 8.2.3914: various spelling mistakes in comments
Commit: https://github.com/vim/vim/commit/af4a61a85d6e8cacc35324f266934bc463a21673
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Mon Dec 27 17:21:41 2021 +0000
patch 8.2.3914: various spelling mistakes in comments
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pell?, closes https://github.com/vim/vim/issues/9416)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 27 Dec 2021 18:30:05 +0100 |
parents | a3f38923c037 |
children | 7f150a4936f2 |
comparison
equal
deleted
inserted
replaced
26770:15ff3f2e0d58 | 26771:fc859aea8cec |
---|---|
2332 // maximum is much larger than the minimum and when the maximum is | 2332 // maximum is much larger than the minimum and when the maximum is |
2333 // large. However, when maxval is MAX_LIMIT, it is okay, as this | 2333 // large. However, when maxval is MAX_LIMIT, it is okay, as this |
2334 // will emit NFA_STAR. | 2334 // will emit NFA_STAR. |
2335 // Bail out if we can use the other engine, but only, when the | 2335 // Bail out if we can use the other engine, but only, when the |
2336 // pattern does not need the NFA engine like (e.g. [[:upper:]]\{2,\} | 2336 // pattern does not need the NFA engine like (e.g. [[:upper:]]\{2,\} |
2337 // does not work with with characters > 8 bit with the BT engine) | 2337 // does not work with characters > 8 bit with the BT engine) |
2338 if ((nfa_re_flags & RE_AUTO) | 2338 if ((nfa_re_flags & RE_AUTO) |
2339 && (maxval > 500 || maxval > minval + 200) | 2339 && (maxval > 500 || maxval > minval + 200) |
2340 && (maxval != MAX_LIMIT && minval < 200) | 2340 && (maxval != MAX_LIMIT && minval < 200) |
2341 && !wants_nfa) | 2341 && !wants_nfa) |
2342 return FAIL; | 2342 return FAIL; |
4970 int listidx = *ip; | 4970 int listidx = *ip; |
4971 regsubs_T *r; | 4971 regsubs_T *r; |
4972 | 4972 |
4973 // First add the state(s) at the end, so that we know how many there are. | 4973 // First add the state(s) at the end, so that we know how many there are. |
4974 // Pass the listidx as offset (avoids adding another argument to | 4974 // Pass the listidx as offset (avoids adding another argument to |
4975 // addstate(). | 4975 // addstate()). |
4976 r = addstate(l, state, subs, pim, -listidx - ADDSTATE_HERE_OFFSET); | 4976 r = addstate(l, state, subs, pim, -listidx - ADDSTATE_HERE_OFFSET); |
4977 if (r == NULL) | 4977 if (r == NULL) |
4978 return NULL; | 4978 return NULL; |
4979 | 4979 |
4980 // when "*ip" was at the end of the list, nothing to do | 4980 // when "*ip" was at the end of the list, nothing to do |