cypher-mode icon indicating copy to clipboard operation
cypher-mode copied to clipboard

Indentation

Open whitfa99 opened this issue 9 years ago • 3 comments

Love your work. Is there a way the indentation can be changed to accommodate nested conditional statements for example? At the moment I think it only allows indentation like this:

CASE WHEN outer THEN something ELSE CASE WHEN inner THEN somthingelse END END

whitfa99 avatar Apr 08 '15 12:04 whitfa99

@whitfa99 I'll try to look at this

fxbois avatar Apr 08 '15 12:04 fxbois

That would be awesome. It's already really useful, thanks.

whitfa99 avatar Apr 08 '15 13:04 whitfa99

On a related topic, I'm getting indentation creep on comments, which start indented right from the start.

  // clear the slate
MATCH(n) DETACH DELETE n;

     // 1. straight-up copy of FlyMine model using PARTICIPATES_IN as Gene-Homologue relationship type
CREATE p = (g1:Gene {id:11111, primaryKey:"Gene.1"})-[:PARTICIPATES_IN]->(h:Homologue1 {id:12345, bootstrapScore:1.2345, type:"orthologue"})<-[:PARTICIPATES_IN]-(g2:Gene {id:22222, primaryKey:"Gene.2"})
RETURN p;
       
       // 2. basic gene-homo-gene relationship
CREATE p = (g1:Gene {id:11111, primaryKey:"Gene.1"})-[:HOMOLOG_OF {bootstrapScore:1.2345, type:"orthologue"})->(g2:Gene {id:22222, primaryKey:"Gene.2"})
RETURN p;

sammyjava avatar Jun 09 '17 19:06 sammyjava