From f4be1d570d42525b8f4922117e79ae4281b5028c Mon Sep 17 00:00:00 2001 From: Christian Nicolai Date: Mon, 1 Aug 2011 19:21:50 +0200 Subject: [PATCH] Updated HowItWorks --- HowItWorks.md | 131 +++++++++++++++++++++++++++----------------------- 1 file changed, 70 insertions(+), 61 deletions(-) diff --git a/HowItWorks.md b/HowItWorks.md index f99d2dd..0583f13 100644 --- a/HowItWorks.md +++ b/HowItWorks.md @@ -1,5 +1,8 @@ -# How JOE syntax highlighting works -*from [c.jsf](http://joe-editor.hg.sourceforge.net/hgweb/joe-editor/joe-editor/file/tip/syntax/c.jsf.in)* +How JOE syntax highlighting works +================================= + +*from [c.jsf](http://joe-editor.hg.sourceforge.net/hgweb/joe-editor/joe-editor/file/tip/syntax/c.jsf.in), +slightly modified* A (deterministic) state machine which performs lexical analysis of C. (This is the "assembly language" of syntax highlighting. A separate @@ -10,6 +13,7 @@ Each state begins with: : +\ is the state's name. \ is the color used for characters eaten by the state (really a symbol for a user definable color). @@ -18,9 +22,9 @@ The first state defined is the initial state. Within a state, define transitions (jumps) to other states. Each jump has the form: - [