Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved parser + Many fixes and improvments #19

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# use glob syntax.
syntax: glob
*.ser
*.class
*~
*.bak
*.off
*.old
.DS_Store

# lib'n misc
lib/
file/

# eclipse conf file
.settings
.classpath
.project


# building
target/
bin/
test-output/
out/

# Exported plugin for deployment
IntelliJBehave.zip

# other scm
.svn
.CVS
.hg*

# switch to regexp syntax.
# syntax: regexp
# ^\.pc/

# IntelliJ
*.iml
*.ipr
*.iws
.idea
19 changes: 17 additions & 2 deletions IntelliJBehave.iml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,33 @@
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/resources" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/testData" isTestSource="true" />
</content>
<orderEntry type="jdk" jdkName="IDEA IC-111.167" jdkType="IDEA JDK" />
<orderEntry type="jdk" jdkName="IDEA IC-117.798" jdkType="IDEA JDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/jbehave-core-3.5.3.jar!/" />
<root url="jar://$MODULE_DIR$/lib/jbehave-core-3.6.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library" scope="PROVIDED">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/../intellij/tools/JFlex.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.10" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.easytesting:fest-util:1.2.0" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.easytesting:fest-assert-core:2.0M5" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-all:1.9.0" level="project" />
</component>
</module>

4 changes: 3 additions & 1 deletion META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<li> Run *.story files</li>
</ul>
]]></description>
<version>1.2</version>
<version>1.3.SNAPSHOT</version>
<vendor url="https://github.com/kumaraman21" email="[email protected]">Aman Kumar</vendor>
<idea-version since-build="8000"/>

Expand Down Expand Up @@ -70,6 +70,8 @@
<lang.parserDefinition language="Story" implementationClass="com.github.kumaraman21.intellijbehave.parser.StoryParserDefinition"/>
<annotator language="Story" implementationClass="com.github.kumaraman21.intellijbehave.resolver.StoryAnnotator"/>
<lang.commenter language="Story" implementationClass="com.github.kumaraman21.intellijbehave.commenter.StoryCommenter"/>
<colorSettingsPage implementation="com.github.kumaraman21.intellijbehave.highlighter.StoryColorsAndFontsPage"/>
<completion.contributor language="Story" implementationClass="com.github.kumaraman21.intellijbehave.completion.StoryCompletionContributor"/>

<!--code inspections-->
<inspectionToolProvider id="unusedStepsInspection" order="FIRST" implementation="com.github.kumaraman21.intellijbehave.codeInspector.UnusedStepsInspectionProvider"/>
Expand Down
Binary file removed lib/jbehave-core-3.5.4.jar
Binary file not shown.
Binary file added lib/jbehave-core-3.6.jar
Binary file not shown.
144 changes: 144 additions & 0 deletions notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
http://confluence.jetbrains.net/display/IDEADEV/Developing+Custom+Language+Plugins+for+IntelliJ+IDEA#DevelopingCustomLanguagePluginsforIntelliJIDEA-ImplementingaParserandPSI

Blue Forest theme:

<option name="JBEHAVE.BAD_CHARACTER">
<value>
<option name="FOREGROUND" />
<option name="BACKGROUND" value="f05050" />
<option name="FONT_TYPE" value="0" />
<option name="EFFECT_COLOR" />
<option name="EFFECT_TYPE" value="0" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
<option name="JBEHAVE.COMMENT">
<value>
<option name="FOREGROUND" value="50f050" />
<option name="BACKGROUND" />
<option name="FONT_TYPE" value="2" />
<option name="EFFECT_COLOR" />
<option name="EFFECT_TYPE" value="0" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
<option name="JBEHAVE.META">
<value>
<option name="FOREGROUND" value="83a6c1" />
<option name="BACKGROUND" />
<option name="FONT_TYPE" value="1" />
<option name="EFFECT_COLOR" />
<option name="EFFECT_TYPE" value="0" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
<option name="JBEHAVE.META_KEY">
<value>
<option name="FOREGROUND" value="fffab1" />
<option name="BACKGROUND" />
<option name="FONT_TYPE" value="2" />
<option name="EFFECT_COLOR" />
<option name="EFFECT_TYPE" value="0" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
<option name="JBEHAVE.META_TEXT">
<value>
<option name="FOREGROUND" value="fffab1" />
<option name="BACKGROUND" />
<option name="FONT_TYPE" value="0" />
<option name="EFFECT_COLOR" />
<option name="EFFECT_TYPE" value="0" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
<option name="JBEHAVE.META_TYPE">
<value>
<option name="FOREGROUND" value="fffab1" />
<option name="BACKGROUND" />
<option name="FONT_TYPE" value="1" />
<option name="EFFECT_COLOR" />
<option name="EFFECT_TYPE" value="0" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
<option name="JBEHAVE.SCENARIO_TEXT">
<value>
<option name="FOREGROUND" value="ffcc33" />
<option name="BACKGROUND" />
<option name="FONT_TYPE" value="0" />
<option name="EFFECT_COLOR" />
<option name="EFFECT_TYPE" value="0" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
<option name="JBEHAVE.SCENARIO_TYPE">
<value>
<option name="FOREGROUND" value="ffcc33" />
<option name="BACKGROUND" />
<option name="FONT_TYPE" value="3" />
<option name="EFFECT_COLOR" />
<option name="EFFECT_TYPE" value="0" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
<option name="JBEHAVE.STEP_TEXT">
<value>
<option name="FOREGROUND" />
<option name="BACKGROUND" />
<option name="FONT_TYPE" value="0" />
<option name="EFFECT_COLOR" />
<option name="EFFECT_TYPE" value="0" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
<option name="JBEHAVE.STEP_TYPE">
<value>
<option name="FOREGROUND" value="91ccff" />
<option name="BACKGROUND" />
<option name="FONT_TYPE" value="1" />
<option name="EFFECT_COLOR" />
<option name="EFFECT_TYPE" value="0" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
<option name="JBEHAVE.STORY_DESCRIPTION">
<value>
<option name="FOREGROUND" value="ff8080" />
<option name="BACKGROUND" />
<option name="FONT_TYPE" value="1" />
<option name="EFFECT_COLOR" />
<option name="EFFECT_TYPE" value="0" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
<option name="JBEHAVE.TABLE_CELL">
<value>
<option name="FOREGROUND" value="83a6c1" />
<option name="BACKGROUND" />
<option name="FONT_TYPE" value="2" />
<option name="EFFECT_COLOR" />
<option name="EFFECT_TYPE" value="5" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
<option name="JBEHAVE.TABLE_DELIM">
<value>
<option name="FOREGROUND" value="83a6c1" />
<option name="BACKGROUND" />
<option name="FONT_TYPE" value="0" />
<option name="EFFECT_COLOR" />
<option name="EFFECT_TYPE" value="0" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
<option name="JBEHAVE.TABLE_ROW">
<value>
<option name="FOREGROUND" />
<option name="BACKGROUND" />
<option name="FONT_TYPE" value="1" />
<option name="EFFECT_COLOR" value="ffffff" />
<option name="EFFECT_TYPE" value="0" />
<option name="ERROR_STRIPE_COLOR" />
</value>
</option>
Loading