Skip to content

Commit 0cbc6cb

Browse files
committed
Merge branch 'develop'
# Conflicts: # resources/META-INF/plugin.xml
2 parents 98da3df + f81f485 commit 0cbc6cb

149 files changed

Lines changed: 4728 additions & 569 deletions

File tree

Some content is hidden

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

.idea/dictionaries/patrick.xml

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Mathematica_Plugin.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Mathematica-IntelliJ-Plugin.iml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="PLUGIN_MODULE" version="4">
33
<component name="DevKit.ModuleBuildProperties" url="file://$MODULE_DIR$/resources/META-INF/plugin.xml" manifest="file://$MODULE_DIR$/resources/META-INF/plugin.xml" />
4-
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="true">
4+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="true">
55
<content url="file://$MODULE_DIR$">
66
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
77
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ For a very quick start just download and install the free [Community Edition of
1111
(note that you don't have to provide a username. Just leave the field blank).
1212
##![Docs][doc-image]Documentation
1313

14-
There are two kinds of documentation: For **users** there is the [documentation page](http://wlplugin.halirutan.de/index.php/documentation) and a very detailed [blog post](http://wlplugin.halirutan.de/index.php/blog/7-how-to-use-idea-effectively-with-mathematica-code) on the official website. There, you will learn what features the plug-in provides and how you can use them.
14+
There are two kinds of documentation: For **users** there is the [GitHub Wiki page](https://github.com/halirutan/Mathematica-IntelliJ-Plugin/wiki) that I will update regularely and a very detailed [blog post](http://wlplugin.halirutan.de/index.php/blog/7-how-to-use-idea-effectively-with-mathematica-code) on the official website. There, you will learn what features the plug-in provides and how you can use them.
1515

1616
For **developers**, the first action is to set up the build-environment to compile the code into an IDEA plug-in. There is a [very detailed how-to](http://wlplugin.halirutan.de/index.php/blog/5-plugin-development-how-to-start) on the official website that explains every step. Additionally, you will find a screen-cast there, where the procedure is shown step by step. The code itself contains java-documentation that is uploaded to [the repository's IO page](http://halirutan.github.io/Mathematica-IntelliJ-Plugin/).
1717

@@ -21,7 +21,7 @@ Finally, there I have posted information on [stack exchange](http://mathematica.
2121
- the [first announcement](http://community.wolfram.com/groups/-/m/t/139047?p_p_auth=Lp2pA68y) on the Wolfram Community and a very detailed [new version post](http://community.wolfram.com/groups/-/m/t/353812?p_p_auth=Lp2pA68y)
2222

2323

24-
##![dev image][dev-image] Development ![travis](https://travis-ci.org/halirutan/Mathematica-IntelliJ-Plugin.svg?branch=develop)
24+
##![dev image][dev-image] Development [![Build Status](https://travis-ci.org/halirutan/Mathematica-IntelliJ-Plugin.svg?branch=develop)](https://travis-ci.org/halirutan/Mathematica-IntelliJ-Plugin)
2525

2626
### Code
2727

design/iconSources/IconsForVersion2.ai

Lines changed: 2377 additions & 0 deletions
Large diffs are not rendered by default.

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
<modelVersion>4.0.0</modelVersion>
2828
<groupId>org.jetbrains.plugins</groupId>
2929
<artifactId>mathematica-intellij-plugin</artifactId>
30-
<version>1.3.5</version>
30+
<version>2.0.10</version>
3131
<name>Mathematica Support for IntelliJ IDEA</name>
3232
<description>Includes syntax highlighting, function completion, documentation lookup, refactoring, code formatting,
3333
etc.
3434
</description>
3535

3636
<properties>
3737
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38-
<idea.ic.source>ideaIC-2016.2.5.tar.gz</idea.ic.source>
38+
<idea.ic.source>ideaIC-2016.3.tar.gz</idea.ic.source>
3939
<idea.ic.dir>${project.build.directory}/idea-IC</idea.ic.dir>
4040
<ij.plugin>true</ij.plugin>
4141
</properties>

resources/META-INF/plugin.xml

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
1+
<!--
2+
~ Copyright (c) 2017 Patrick Scheibe
3+
~ Permission is hereby granted, free of charge, to any person obtaining a copy
4+
~ of this software and associated documentation files (the "Software"), to deal
5+
~ in the Software without restriction, including without limitation the rights
6+
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
~ copies of the Software, and to permit persons to whom the Software is
8+
~ furnished to do so, subject to the following conditions:
9+
~
10+
~ The above copyright notice and this permission notice shall be included in
11+
~ all copies or substantial portions of the Software.
12+
~
13+
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
~ THE SOFTWARE.
20+
-->
21+
122
<idea-plugin url="http://mathematicaplugin.halirutan.de" version="2">
223
<id>de.halirutan.mathematica</id>
324
<name>Mathematica Support</name>
425
<category>Custom Language</category>
5-
<version>2.0.2</version>
6-
<idea-version since-build="135.1230"/>
26+
<version>2.0.20</version>
27+
<idea-version since-build="163"/>
728
<vendor email="patrick@halirutan.de" url="http://mathematicaplugin.halirutan.de">Patrick Scheibe</vendor>
829
<depends>com.intellij.modules.lang</depends>
930
<description><![CDATA[
@@ -17,7 +38,8 @@
1738
<br/>
1839
1940
This plugin turns your IntelliJ IDEA into a powerful coding environment for Mathematica. For more information
20-
check out the <a href="http://mathematicaplugin.halirutan.de">official website</a>.
41+
check out the <a href="http://mathematicaplugin.halirutan.de">official website</a>. I have started to create user-friendly
42+
documentation of various features on the <a href="https://github.com/halirutan/Mathematica-IntelliJ-Plugin/wiki">Wiki pages of GitHub</a>.
2143
If you want to discuss specific topics, then ping me
2244
(<a href="http://mathematica.stackexchange.com/users/187/halirutan?tab=profile">halirutan</a>) in the dedicated
2345
<a href="http://chat.stackexchange.com/rooms/8636/intellijidea-plugin-for-mathematica">chat room on stackexchange</a>.
@@ -33,33 +55,25 @@
3355
<li>Quick documentation lookup for all built-in symbols and operators</li>
3456
<li>Structured View for package definitions</li>
3557
<li>Correct display of Mathematica's <a href="https://reference.wolfram.com/language/guide/ListingOfNamedCharacters.html">named characters</a>
36-
<li>Inspection of missing commas and semicolons
58+
<li>Inspections for version mismatch of symbols, possible errors through multiplicaton at linebreak, and missing commas and semicolons
3759
<li>Autocompletion suggestions sorted by importance</li>
3860
<li>Highlighting and smart inserting of braces, brackets and parenthesis</li>
61+
<li>Quick navigation between symbol usages with Navigate - Related Symbol</li>
3962
</ul>
4063
]]></description>
4164

4265
<change-notes>
4366
<![CDATA[
44-
<i>New features and bugfixes:</i>
67+
<i>New features and bug-fixes:</i>
4568
<br/>
4669
<ul>
70+
<li>Improvement of syntax highlighting for full names of symbols inside scoping constructs (<a href="https://github.com/halirutan/Mathematica-IntelliJ-Plugin/issues/52">GH-52</a>)</li>
71+
<li>Recognize function names in usage messages (<a href="https://github.com/halirutan/Mathematica-IntelliJ-Plugin/issues/58">GH-58</a>)</li>
72+
<li>Improved highlighting settings colors (<a href="https://github.com/halirutan/Mathematica-IntelliJ-Plugin/issues/47">GH-47</a>)</li>
4773
<li>Fixed smart-completion of Options that stopped working (<a href="https://github.com/halirutan/Mathematica-IntelliJ-Plugin/issues/30">GH-30</a>)</li>
4874
<li>Fixed some localization constructs and added unicode of the Eth symbol (<a href="https://github.com/halirutan/Mathematica-IntelliJ-Plugin/issues/26">GH-26</a> and <a href="https://github.com/halirutan/Mathematica-IntelliJ-Plugin/issues/27">GH-27</a>)</li>
4975
<li>Made indentation for Association brackets like the indentation for lists <a href="https://github.com/halirutan/Mathematica-IntelliJ-Plugin/issues/20">(GH-20)</a></li>
5076
<li>Fixed the renaming engine so that renamed variables can now have context back-ticks</li>
51-
<li>Fixed bug where an inspection used much CPU <a href="https://github.com/halirutan/Mathematica-IntelliJ-Plugin/issues/19">(GH-19)</a></li>
52-
<li>Included <-> as operator <a href="https://github.com/halirutan/Mathematica-IntelliJ-Plugin/issues/17">(GH-17)</a></li>
53-
<li>Fixed null pointer exception. <a href="http://halirutan.myjetbrains.com/youtrack/issue/MMAP-75">(MMAP-75)</a></li>
54-
<li>Fixed exception when you press Enter near the end of a file and you have folded many regions.</li>
55-
<li>Fixed issue that introduced an empty line when Enter is pressed in a function call</li>
56-
<li>Implemented a feature for expand/shrink selection so that all arguments of a function or list can be selected without the braces</li>
57-
<li>Completely re-implemented the behavior of the Enter key. This should now insert correct indents on the next line, when Enter is pressed</li>
58-
<li>Implemented code folding for Module, Block, With <a href="http://halirutan.myjetbrains.com/youtrack/issue/MMAP-69">(MMAP-69)</a></li>
59-
<li>Implemented correct display for named characters like <code>\[Gamma]</code></li>
60-
<li>Improved "Fix all missing semicolon feature" to work correctly on large files <a href="http://halirutan.myjetbrains.com/youtrack/issue/MMAP-68">(MMAP-68)</a></li>
61-
<li>Added Live Template for creating options (opt) <a href="http://halirutan.myjetbrains.com/youtrack/issue/MMAP-71">(MMAP-71)</a></li>
62-
<li>Small improvements in the file templates</li>
6377
</ul>
6478
]]>
6579
</change-notes>
@@ -74,15 +88,13 @@
7488
implementationClass="de.halirutan.mathematica.parsing.prattparser.MathematicaParserDefinition"/>
7589

7690
<sdkType id="Mathematica Sdk" implementation="de.halirutan.mathematica.sdk.MathematicaSdkType"/>
77-
7891
<moduleType id="MATHEMATICA_MODULE"
7992
implementationClass="de.halirutan.mathematica.module.MathematicaModuleType"/>
8093
<moduleConfigurationEditorProvider
8194
implementation="de.halirutan.mathematica.module.MathematicaModuleConfigurationEditor"/>
8295

8396
<projectTemplatesFactory implementation="de.halirutan.mathematica.module.MathematicaProjectTemplatesFactory"/>
8497

85-
8698
<!-- Highlighting and annotating of code, StructureView and documentation lookup-->
8799

88100
<lang.syntaxHighlighterFactory language="Mathematica"
@@ -166,6 +178,18 @@
166178
<inspectionToolProvider
167179
implementation="de.halirutan.mathematica.codeinsight.inspections.MathematicaInspectionProvider"/>
168180

181+
<psi.referenceContributor language="Mathematica" implementation="de.halirutan.mathematica.parsing.psi.MathematicaReferenceContributor"/>
182+
<renamePsiElementProcessor implementation="de.halirutan.mathematica.refactoring.MathematicaPsiRenameProcessor"/>
183+
184+
<applicationService serviceInterface="de.halirutan.mathematica.settings.MathematicaSettings" serviceImplementation="de.halirutan.mathematica.settings.MathematicaSettings"/>
185+
<applicationConfigurable groupId="language" displayName="Mathematica" id="preferences.Mathematica"
186+
instance="de.halirutan.mathematica.settings.MathematicaSettingsConfigurable"/>
187+
<gotoRelatedProvider
188+
implementation="de.halirutan.mathematica.codeinsight.navigation.MathematicaGotoRelatedProvider"/>
189+
190+
<intentionAction>
191+
<className>de.halirutan.mathematica.intentions.localization.MoveVariableToLocalisation</className>
192+
</intentionAction>
169193
</extensions>
170194

171195
<actions>
@@ -201,6 +225,8 @@
201225
description="Collapse all named characters into their utf8 counterpart.">
202226
</action>
203227

228+
<!--<action id="Mathematica.RenameReferenceResolve" class="de.halirutan.mathematica.actions.RenameReferenceResolve"-->
229+
<!--text="Rename Reference Resolve"/>-->
204230
<!--<separator/>-->
205231

206232
<!--<action id="Mathematica.ShowFormattingBlocks" class="de.halirutan.mathematica.actions.ShowFormattingBlocks"-->
@@ -210,5 +236,6 @@
210236

211237
<add-to-group group-id="MainMenu" anchor="after" relative-to-action="ToolsMenu"/>
212238
</group>
239+
213240
</actions>
214241
</idea-plugin>

resources/colors/MathematicaDarcula.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</value>
5252
</option>
5353

54-
<option name="MMA.OPERATOR">
54+
<option name="MMA.OPERATORS">
5555
<value>
5656
<option name="FOREGROUND" value="C9D7E6"/>
5757
</value>
@@ -107,8 +107,8 @@
107107
<option name="MMA.USAGE_MESSAGE">
108108
<value>
109109
<option name="FOREGROUND" value="CC7832"/>
110-
<option name="EFFECT_COLOR" value="CC7832"/>
111-
<option name="EFFECT_TYPE" value="1"/>
110+
<option name="FONT_TYPE" value="1"/>
111+
112112
</value>
113113
</option>
114114

resources/colors/MathematicaDefault.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</value>
5252
</option>
5353

54-
<option name="MMA.OPERATOR">
54+
<option name="MMA.OPERATORS">
5555
<value>
5656
<option name="FOREGROUND" value="000000"/>
5757
</value>

0 commit comments

Comments
 (0)