Make the SMIE lexer aware of POSTPONE, so that indentation isn't so
easily messed up when POSTPONE quotes IF or other words relevant to
indentation.
forth-smie.el (forth-smie--backward-token)
(forth-smie--backward-token): Look at the next two words, so that we
can recognize "POSTPONE IF" as a single token.
(forth-smie--backward-word, forth-smie--forward-word): New helpers.
(forth-smie--parsing-word-regexp): New precomputed regexp.
test/tests.el (forth-indent-postpone, forth-smie-backward-token)
(forth-smie-forward-token): New tests.
(forth-assert-backward-token,forth-assert-forward-token): New
helpers.
Make the SMIE lexer aware of POSTPONE, so that indentation isn't so easily messed up when POSTPONE quotes IF or other words relevant to indentation.
forth-smie.el (forth-smie--backward-token) (forth-smie--backward-token): Look at the next two words, so that we can recognize "POSTPONE IF" as a single token. (forth-smie--backward-word, forth-smie--forward-word): New helpers. (forth-smie--parsing-word-regexp): New precomputed regexp.
test/tests.el (forth-indent-postpone, forth-smie-backward-token) (forth-smie-forward-token): New tests. (forth-assert-backward-token,forth-assert-forward-token): New helpers.