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: - [