cypher-mode
cypher-mode copied to clipboard
Indentation
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 I'll try to look at this
That would be awesome. It's already really useful, thanks.
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;