From 09e59f62871793d995a6303cea9e08b0b737f44c Mon Sep 17 00:00:00 2001 From: Mauricio Verano Merino Date: Mon, 14 Sep 2020 22:20:24 +0200 Subject: [PATCH] changed start symbol color --- src/kogi/Production2Block.rsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kogi/Production2Block.rsc b/src/kogi/Production2Block.rsc index a9f1955..1b106d3 100644 --- a/src/kogi/Production2Block.rsc +++ b/src/kogi/Production2Block.rsc @@ -14,7 +14,7 @@ Block production2Block(prod(\start(sort(str name)), _, _), map[str, bool] multip //initialBlock = name; kogi::Block::Message message = Message::message( "%1", [ arg("start", kogi::Block::\value(check = [name])) ] ); - return block("start", name, [message], colour = hsv(90)); + return block("start", name, [message], colour = hsv(120)); } // FIX: The java grammar returns this as empty map[str, bool] getSymbolsMultiplicity(list[Symbol] symbols, map[str, bool] multiplicity) @@ -27,7 +27,7 @@ map[str, bool] getSymbolsMultiplicity(list[Symbol] symbols, map[str, bool] multi Block production2Block(prod(symbol:sort(str name), list[Symbol] symbols, set[Attr] attributes), map[str, bool] multiplicity, str startProduction, str labelName = "") { kogi::Block::Message message = symbols2Message(ignoreLayoutSymbols(symbols), getSymbolsMultiplicity(symbols, multiplicity), lexicalName = name); if(startProduction == name) - return block(setBlockName(labelName, name), setBlockType(name, labelName), [message], colour = hsv(90)); + return block(setBlockName(labelName, name), setBlockType(name, labelName), [message], colour = hsv(120)); else if (name in multiplicity && !multiplicity[name]) return block(setBlockName(labelName, name), setBlockType(name, labelName), [message], output = Ref::block(name), inputsInline = true, colour = hsv(arbInt(360)), tooltip = labelName); else