Re: [code] [textadept] applescript syntax request

From: Mitchell <>
Date: Sat, 23 May 2015 13:41:34 -0400 (EDT)

Hi Jay,

On Fri, 22 May 2015, Jay Young wrote:

> I have a syntax request. This is just for the AppleScript language. Whenever I type a single quote, Textadept considers that to be for a string, so colors it accordingly. But in AppleScript, strings can only be in double quotes. But single quotes can be used elsewhere like so:
> tell (current date) set m to (it's month) as number end tell
> Some people use "of" instead of the apostrophe-s like this:
> tell (current date) set m to (month of it) as number end tell
> but I like the apostrophe-s approach better.
> I went in my ~/.textadept/lexers/applescript.lua file and changed:
> --Strings.local sq_str = l.delimited_range("'", true)local dq_str = l.delimited_range('"', true)local string = token(l.STRING, sq_str + dq_str)
> to this:
> --Strings.local dq_str = l.delimited_range('"', true)local string = token(l.STRING, dq_str)
> I'm a total beginner at lua, so I may have editted that code incorrectly, but it does make the AppleScript syntax look a lot better. Could this applescript.lua file be adjusted in the next Textadept version?

Thanks, I've committed the change and it will show up in tonight's nightly
build going forward.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sat 23 May 2015 - 13:41:34 EDT

This archive was generated by hypermail 2.2.0 : Sun 24 May 2015 - 06:51:21 EDT