diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-21 00:36:21 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-21 00:36:21 +0100 |
commit | cefca2396003bdc69c0fd0eb90258e56148bf256 (patch) | |
tree | 74089da9a66a81cb5a373dc2c17b995ce4f7bf82 /parser.cpp | |
parent | cfc026aaae9bb0706ffffdcfedbc063a12409542 (diff) | |
download | sciteco-cefca2396003bdc69c0fd0eb90258e56148bf256.tar.gz |
<n>A command to get ASCII code from buffer (at position DOT+n)
classic TECO's append-buffer command is not supported
* currently, num_sign is implied for A, that is -A will retrieve the value before DOT, while "A" will retrieve after (not at) DOT
Diffstat (limited to 'parser.cpp')
-rw-r--r-- | parser.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -925,6 +925,15 @@ StateStart::custom(gchar chr) throw (Error) break; } + case 'A': + BEGIN_EXEC(this); + v = interface.ssm(SCI_GETCURRENTPOS) + + expressions.pop_num_calc(); + if (!Validate::pos(v)) + throw RangeError("A"); + expressions.push(interface.ssm(SCI_GETCHARAT, v)); + break; + default: throw SyntaxError(chr); } |