Skip to content

Commit baf0afe

Browse files
Don't show Cypher autocompletion in comments (#4) (#23)
Disable Cypher autocompletion in comments inside a Cypher query. Also, some work was done to refactor the Cypher BNF grammar and the lexer.
1 parent 02575b3 commit baf0afe

File tree

333 files changed

+1298
-4626
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+1298
-4626
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Added
11+
12+
- Don't show Cypher autocompletion in comments (#4)
13+
814
## [0.2.2]
915

1016
### Fixed

README.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,41 @@ Simply add the following comment right before a Cypher String:
5050
// language=Cypher
5151
```
5252

53+
## Building the plugin
54+
55+
### Dependencies
56+
57+
The plugin depends on JDK17 and the latest release of IntelliJ. Please make sure
58+
you have those installed on your machine.
59+
60+
Moreover, if you plan on making changes to a grammar or lexer files, you also need
61+
to install the [Grammar-Kit](https://github.com/JetBrains/Grammar-Kit) IntelliJ plugin.
62+
63+
### Build instructions
64+
65+
If you changed a grammar or lexer files, you need to regenerate the lexer and parser classes.
66+
Please follow the instructions at [Grammar-Kit](https://github.com/JetBrains/Grammar-Kit)
67+
in order to do that.
68+
69+
After that, the plugin can be built with the following Gradle command:
70+
71+
```shell
72+
./gradlew :graph-database-plugin:buildPlugin
73+
```
74+
75+
Before a release, the plugin should also be tested and verified with the following commands:
76+
77+
```shell
78+
./gradlew test
79+
./gradlew :graph-database-plugin:runPluginVerifier
80+
```
81+
82+
The plugin can also be manually tested on a sandboxed instance of IntelliJ with the command:
83+
84+
```shell
85+
./gradlew :graph-database-plugin:runIde
86+
```
87+
5388
## Getting help
5489

5590
Please feel free to report any bugs by creating a
@@ -66,6 +101,3 @@ Alternatively, if you find this plugin useful, please feel free to
66101

67102
Any other comments or words of encouragement? Please get in touch
68103
via email at aventurini AT gmail DOT com.
69-
70-
71-

build.gradle

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,8 @@ ext.checkstyleConfigDir = "$configDir/checkstyle"
2626

2727
allprojects {
2828

29-
buildscript {
30-
repositories {
31-
mavenCentral()
32-
mavenLocal()
33-
jcenter()
34-
}
35-
}
36-
3729
repositories {
3830
mavenCentral()
39-
// mavenLocal()
40-
// jcenter()
41-
// maven { url 'https://dl.bintray.com/jetbrains/intellij-plugin-service' }
4231
}
4332

4433
apply plugin: 'java'
@@ -47,18 +36,16 @@ allprojects {
4736
sourceCompatibility = 17
4837
targetCompatibility = 17
4938

50-
intellij {
51-
version = intellijSdkVersion
52-
//instrumentCode = true
53-
type = "IC"
54-
plugins = ['java']
55-
}
56-
5739
checkstyle {
5840
toolVersion = "7.0"
5941
configFile = new File(checkstyleConfigDir, "checkstyle.xml")
6042
configProperties.checkstyleConfigDir = checkstyleConfigDir
6143
}
44+
45+
intellij {
46+
version = intellijSdkVersion
47+
plugins = ['java']
48+
}
6249
}
6350

6451
test {

language/cypher/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ apply plugin: "org.jetbrains.intellij"
55

66
intellij {
77
version = intellijSdkVersion
8-
instrumentCode = true
98
plugins = ['java']
109
}
1110

@@ -24,4 +23,3 @@ dependencies {
2423
testImplementation "org.mockito:mockito-core:$versionMockito"
2524
testImplementation "org.assertj:assertj-core:$versionAssertj"
2625
}
27-

0 commit comments

Comments
 (0)