Re: [code] Factor lexer for Textadept

From: Mitchell <>
Date: Tue, 2 Apr 2013 13:19:52 -0400 (Eastern Daylight Time)

Hi Michael,

On Mon, 1 Apr 2013, Michael Richter wrote:

> The Factor language ( as of yesterday supported the
> launching of Textadept from within its REPL (
> As of today Textadept
> supports the Factor language syntax (
> Well, mostly supports it.
> The lexer (
> works fine (so far) except for one edge case I can't figure out. The
> problem is that I want to treat constructs that look like this…
> ( some words here -- some more words here )
> …as one "operator" (there's no such thing, really, in Factor) while *anything
> else* like, say, these…
> (one_word) (two_separate words)
> …are treated as "identifiers".

How can you distinguish between the two? Are there spaces between the
parentheses and a word for the first? The way you have it in your
"stack_declaration" pattern, it matches any set of parentheses as an
"operator" so your "identifer" rule is never hit.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Tue 02 Apr 2013 - 13:19:52 EDT

This archive was generated by hypermail 2.2.0 : Wed 03 Apr 2013 - 06:38:39 EDT