diff options
| author | EuAndreh <eu@euandre.org> | 2025-07-15 14:11:18 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2025-07-15 14:15:24 -0300 |
| commit | 36689acb6bb577b27e546b9d166a40f503a47eac (patch) | |
| tree | f6d2f1d4f07876c03fb77dc7ab3556111a7a103b /deps.mk | |
| parent | Support tokenizing character class expressions [a-z] (diff) | |
| download | paca-36689acb6bb577b27e546b9d166a40f503a47eac.tar.gz paca-36689acb6bb577b27e546b9d166a40f503a47eac.tar.xz | |
Use `shouldConcat()` in decision of `escapingStateSte()`
* src/paca.mjs
(escapingStateStep): Use `shouldConcat()` instead of only checking if
we're on the last char. We abuse it a bit by passing `null` as the
first argument, since it is being escaped.
(nonConcatOperators, shouldConcat): Hoist the definition of both above
`escapingStateStep()`, so that they're defined before being used.
* tests/paca.mjs (test_shouldConcat): Add test case where `null` is
explicitly passed as the first argument.
Diffstat (limited to 'deps.mk')
0 files changed, 0 insertions, 0 deletions
