[code] snippet problem. New to lua and textadept.

From: Richard Lemieux <rlemieu.att.cooptel.qc.ca>
Date: Wed, 22 Feb 2017 20:13:35 -0500

Hi,

I am trying to get some familiarity with TextAdept and Lua so please forgive me
if that was already addressed elsewhere. I searched the net and read the doc
before asking.

The following snippet does not output the result of the arithmetic operation
(3). Is it to be expected? I got this snippet example from Mitchell's book on
TextAdept.

   snippets['c'] = '%1(1) + %2(2) = %3<%1 + %2>'

The output looks like

   1 + 2 =

Other examples work as expected. I tried both on Linux and Windows7.

By contrast, the following snippet works fine

snippets['c2'] = '%1(1) + %2(2) = %<1 + 2>'

and returns

   1 + 2 = 3

as expected.

Thanks for any clue as to why the snippet 'c' does not do the computation.

Richard

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 22 Feb 2017 - 20:13:35 EST

This archive was generated by hypermail 2.2.0 : Thu 23 Feb 2017 - 06:51:38 EST