Clipper schema

Discussion Forums discussion Clipper schema

This topic contains 0 voices and has 4 replies.

Viewing 5 posts - 1 through 5 (of 5 total)
Author Posts
Author Posts
October 24, 2006 at 12:35 pm #133

SteMMo
Member

Hi all,

I’m trying to write down a scheme for Clipper sources.

I based it on cpp lexer in a Clipper.scheme file.

Is there a way to say to lexer that Clipper has a single comment line starting with ‘*’ or ‘&&’ ?

What’s the difference between setting into scheme file and setting from Tools/Options windows ?

Is there a limitation to a shortcut choosen for a tool ? (I choose F7 but it doesn’t work..)

If an opened files is changed from outside the editor, is it possibile to reloaded ?

Thanks !

October 25, 2006 at 7:10 am #15162

simon
Key Master

1. You should probably use a .schemedef file to change the syntax rules (see vhdl.schemedef for an example)

2. Settings in the scheme file are the defaults, in options you modify user settings which are stored separately and override the settings in the scheme file.

3. No known limitation, any shortcut should work.

4. If a file is changed, PN should ask you to reload already?

October 26, 2006 at 7:49 am #15163

SteMMo
Member

Thanks a lot, Simon.

Is there any other documentation about schemes and related, other than your article ? I mean for example:

- what does ‘key’ mean ?

- what is the set of keywords for a lexer

- the list of lexers

Thanks !

October 30, 2006 at 8:32 pm #15164

simon
Key Master

Each state that text can be in is represented by a number, this is the “key”. 0 and 32 are special keys (start style and default style). Built-in scintilla lexers each use the keys in a different way which is why there may seem to be no pattern.

Each lexer can support a different number of keyword sets, some are documented in the scintilla source and some are not.

I’ve written some more about this on my blog:

http://untidy.net/blog/2006/10/30/built-in-lexers/

and:

http://untidy.net/blog/2005/12/06/schemes-from-scite/

November 8, 2006 at 2:46 pm #15165

GrenvilleTryon
Member

Hi, Im Grenville Tryon. A friend of mine will apprecate if you upload to a public place your clipper schema. Currently Im working on php, but I was ‘born’ on clipper era.

PS Awesome editor, ROCKS!

TIA,

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.