-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
608 additions
and
147 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,17 @@ | ||
<p>What's new: | ||
|
||
<ul> | ||
<li>JJTree and JavaCC grammars now are more clearly cut. Before this release, *.jjt and *.jj | ||
files were both treated as JJTree grammars (because JJTree is a clean superset of JavaCC), | ||
and features of JJTree insight were always available. For reasons of code organisation and | ||
to enable better error reporting, the JJTree features are now only enabled in *.jjt files, | ||
usage in *.jj files raise an error and a suggestion to rename the file. You can configure | ||
different file patterns in <b>Settings | Editor | File Types</b>. | ||
</li> | ||
<li>A bunch of features: | ||
<ul> | ||
<li>Links to the grammar for a JJTree node from their corresponding Java node class | ||
if it can be found in the project.</li> | ||
<li>Link from the parser file to the grammar.</li> | ||
<li>Completion suggestions for regex productions, options, and lexical states</li> | ||
<li>Options are now documented.</li> | ||
<li>JJTree inline node declarations are now in the structure view</li> | ||
<li>Prettier icons; the file icons are based on a JavaCC logo</li> | ||
<li>Folding of code generated by JJTree in .jj files (<code>@bgen</code> sections)</li> | ||
<li>Find usages, completion, and summary documentation for lexical states</li> | ||
<li>Implicit tokens now also have a link in the documentation of BNF expansions</li> | ||
<li>Some performance optimisations</li> | ||
</ul> | ||
</li> | ||
<li>Gutter link from productions to their parser method, and vice-versa</li> | ||
<li>Code folding can now be disabled selectively in <i>Editor > General > Code Folding</i></li> | ||
</ul> | ||
|
||
<p>What's changed: | ||
<ul> | ||
<li>Suppression IDs of inspections now don't have the "JavaCC" prefix unless they collide with another inspection</li> | ||
</ul> | ||
|
||
<p>What's fixed: | ||
<ul> | ||
<li>Parser tolerance to incomplete code has been significantly improved. Starting to type a new production should | ||
now never break the rest of the grammar</li> | ||
<li>Completion result insertion making a mess when the tail characters are already present</li> | ||
<li>Unnecessary parentheses inspection wasn't initialised correctly</li> | ||
<li>Rename refactoring was broken since 1.1. There are still some things to do to make it smarter.</li> | ||
<li>Invoking the Rename action on a JJTree node descriptor now renames all instances of the name in the grammar</li> | ||
<li>The suppression ID of UnusedProduction was "JavaCCJccUnusedProduction"</li> | ||
</ul> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1-rc-1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/kotlin/com/github/oowekyala/ijcc/ide/folding/JccFoldingOptionsProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.github.oowekyala.ijcc.ide.folding | ||
|
||
import com.github.oowekyala.ijcc.settings.JccGlobalSettingsState | ||
import com.github.oowekyala.ijcc.settings.globalPluginSettings | ||
import com.intellij.application.options.editor.CodeFoldingOptionsProvider | ||
import com.intellij.openapi.options.BeanConfigurable | ||
import com.intellij.openapi.util.Getter | ||
import com.intellij.openapi.util.Setter | ||
import kotlin.reflect.KMutableProperty | ||
|
||
/** | ||
* @author Clément Fournier | ||
*/ | ||
class JccFoldingOptionsProvider : | ||
BeanConfigurable<JccGlobalSettingsState>(globalPluginSettings), CodeFoldingOptionsProvider { | ||
|
||
init { | ||
|
||
checkBox("foldJavaFragments", "Java fragments in JavaCC code") | ||
checkBox("foldLookaheads", "JavaCC local lookahead declarations") | ||
checkBox("foldTokenRefs", "JavaCC token references that can be replaced by a string literal") | ||
checkBox("foldOptions", "JavaCC options section") | ||
checkBox("foldParserDecl", "JavaCC parser declaration section") | ||
checkBox("foldTokenMgrDecl", "JavaCC token manager declaration section") | ||
checkBox("foldTokenProds", "JavaCC regular expression productions (token declarations)") | ||
checkBox("foldBgenSections", "Generated sections in .jj files (@bgen ... @egen)") | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.