diff options
| author | Jim Porter | 2024-10-20 18:01:10 -0700 |
|---|---|---|
| committer | Jim Porter | 2024-11-03 20:18:14 -0800 |
| commit | ed9ea57e57a915e743100591d7a71d44a4b4c0e9 (patch) | |
| tree | dce12995a9ad4dd04a9dd89052bbd4afc2ebab2c /java | |
| parent | 4d69d3778a51427654965cbcc5bb03611034b656 (diff) | |
| download | emacs-ed9ea57e57a915e743100591d7a71d44a4b4c0e9.tar.gz emacs-ed9ea57e57a915e743100591d7a71d44a4b4c0e9.zip | |
Move more of Eshell range handling to the parser phase
* lisp/eshell/esh-util.el (eshell-range): New struct.
(eshell--range-string-p, eshell--string-to-range): New functions.
* lisp/eshell/esh-arg.el (eshell-parse-integer)
(eshell-parse-range-token): New functions...
(eshell-parse-argument-hook): ... add them.
(eshell--after-range-token-regexp): New defsubst.
(eshell-concat-1): Don't remove the 'number' property; we use that when
handling range arguments.
(eshell--range-token): New constant.
(eshell-unmark-range-token): New function.
* lisp/eshell/esh-var.el (eshell-parse-index): Update implementation to
use parsed range argument.
* test/lisp/eshell/esh-var-tests.el (esh-var-test/interp-var-indices):
Test range index using variables.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions