Kaydet (Commit) e20a5792 authored tarafından oco's avatar oco Kaydeden (comit) Matthew Brush

Use all supported keyword sets for Scintilla Forth lexer

Submitted on geany-devel mailing list
üst 7b65d76d
......@@ -16,8 +16,12 @@ locale=other
[keywords]
# all items must be in one line
primary=ABORT EXIT DO LOOP UNLOOP BEGIN UNTIL WHILE REPEAT EXIT IF ELSE THEN CASE ENDCASE OF ENDOF
primary=abort exit do loop unloop begin until while repeat exit if else then case endcase of endof again leave
keyword=require included decimal hex also only previous
defword=create does> variable value 2variable constant , 2, c,
string=." " s" c" abort"
preword1=dup drop swap over pick roll 2dup 2drop 2swas 2over
preword2=! c! @ c@ 2! 2@ and or xor invert negate / /mod mod rshift lshift
[settings]
# default extension used when saving files
......
......@@ -546,7 +546,12 @@ static const HLStyle highlighting_styles_FORTH[] =
};
static const HLKeyword highlighting_keywords_FORTH[] =
{
{ 0, "primary", FALSE }
{ 0, "primary", FALSE },
{ 1, "keyword", FALSE },
{ 2, "defword", FALSE },
{ 3, "preword1", FALSE },
{ 4, "preword2", FALSE },
{ 5, "string", FALSE }
};
#define highlighting_properties_FORTH EMPTY_PROPERTIES
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment