Bugs item #1234121, was opened at 2005-07-07 21:35
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1234121&group_id=2439

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Scintilla
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Cartmell (hipowls)
Assigned to: Nobody/Anonymous (nobody)
Summary: TADS3 update

Initial Comment:
Attached are files to update the TADS3 lexer.  There
are substantial changes and the properties file should
be made available at the same time as the updated
version of scite.

TADS has two types of string, single quoted and double
quoted.  Double quoted strings may contain interpolated
expressions including single quoted and double quoted
strings.  All strings may contain constructs that
change what is displayed and it's appearance.  These
constructs may span several lines.

A problem arises when the lexer reparses a file
starting part way through.  Previously character state
was used to determine the surrounding scope and
required 4 separate states for a single construct.  Eg.
the <.p> is equivalent in all of the following lines
but had a different state in each.
"<.p>"
'<.p>'
"<< "<.p>" >>"
"<< '<.p>' >>"

This version uses lineState to record the surrounding
scope at the end of each line.  The result is the
elimination of redundant states and a simplification of
the code.  The number of states drops from 32 to 20.

Other changes.

Brackets are now marked as operators (previously had
own state)
There is now an identifier state.
Increased states for user defined keywords from two to
three.

Michael Cartmell

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1234121&group_id=2439
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to