Skip to content

jexp/intellij-plugin-cypher

Repository files navigation

Cypher Intellij Plugin

Plugin provides Cypher language support for IntelliJ IDE.

It will use files with .cyp extension. Also Cypher language can be injected in any string (i.e. in Java).

Installation

Manual:

  1. Navigate to releases page.
  2. Pick most recent release.
  3. Download Cypher.zip file.
  4. Go to your Intellij IDE preferences Plugins -> Install plugin from disk....
  5. Select downloaded plugin.
  6. Restart IDE.

Known issues

  • Using keyword or function name, as variable will break lexer.
  • Error description is not really usable (internal naming).

Screenshots

cypher_syntax_highlight

Development

Gradle is used as build system.

Run Idea to test plugin: gradle runIdea

Grammar

Cypher grammar is located here - src/main/java/com/neueda4j/intellij/plugin/cypher/lexer/Cypher.bnf

After grammar change:

  • Generate parser code for grammar
  • Generate jFlex .lexer for grammar
  • Generate lexer code from .lexer