neueda / jetbrains-plugin-graph-database-support

Graph Databases support for JetBrains family IDEs.
Apache License 2.0
221 stars 56 forks source link

Cypher parser chokes on "from" property key name #12

Closed jausions closed 7 years ago

jausions commented 7 years ago

The Cypher parser of the plugin indicates an error in the editor when from is used as property key name in a query. As far as I know, this isn't a reserved keyword as Neo4j accepts the query as-is without throwing an error.

CREATE (:Person)-[:OWNS {from:0, to:9223372036854775807}]->(:Vehicle)

:red_circle: ',', , , integer or '}' expected, got 'from'

CREATE (:Person)-[:OWNS {to:9223372036854775807, from:0}]->(:Vehicle)

:red_circle: expected, got 'from'

My setup:

Graph Database support plugin version 2.1.2 PhpStorm 2016.2.2 Build #PS-162.2380.11, built on October 24, 2016 JRE: 1.8.0_112-release-287-b3 x86 JVM: OpenJDK Server VM by JetBrains s.r.o Windows 10 Home edition 64-bit Neo4j Community Edition 3.0.4 Neo4j Browser version 1.1.8

jausions commented 7 years ago

Seems to be related to #1