Skip to content

Commit

Permalink
Add explicit support for bundled PhpStorm language syntax (#153)
Browse files Browse the repository at this point in the history
Add explicit support for bundled PhpStorm language syntax

PhpStorm [1] ships with support for specific languages, frameworks and
libraries for PHP development and of course advanced highlighting for
PHP. Due to the same problems documented in GH-120 (and mitigated in
GH-121) some syntax theme keys required to be replaced with explicit
definitions instead of relying on color inheritances.

Therefore this commit adds explicit support for PhpStorm's bundled
language syntax:

1. Main support for "PHP" [2] and the official JetBrains plugin [3]
2. Laravel "Blade" Templates [4]
   See JetBrains official "Blade" documentation [5] and the plugin [6]
   for more details.
3. "Twig" template engine [7]
   See JetBrains official "Twig" documentation [8] and the plugin [9]
   for more details.
4. "Smarty" templates [10]
   See JetBrains official "Smarty" documentation [11] for more details.

[1]: https://www.jetbrains.com/phpstorm
[2]: https://www.php.net
[3]: https://plugins.jetbrains.com/plugin/6610-php
[4]: https://laravel.com/docs/7.x/blade
[5]: https://www.jetbrains.com/help/phpstorm/blade-page.html
[6]: https://plugins.jetbrains.com/plugin/7569-blade
[7]: https://twig.symfony.com
[8]: https://www.jetbrains.com/help/phpstorm/symfony-twig.html
[9]: https://plugins.jetbrains.com/plugin/7303-twig
[10]: https://www.smarty.net
[11]: https://www.jetbrains.com/help/phpstorm/smarty.html

Related to GH-120, GH-121
Closes GH-151

Co-authored-by: Sven Greb <development@svengreb.de>
  • Loading branch information
arcticicestudio and svengreb authored Apr 28, 2020
1 parent ba5084a commit 9fa9d9a
Showing 1 changed file with 340 additions and 2 deletions.
342 changes: 340 additions & 2 deletions resources/themes/nord.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<property name="created">2016-09-24T21:08:20</property>
<property name="ide">idea</property>
<property name="ideVersion">2019.3.0.0</property>
<property name="modified">2020-02-16T08:34:12</property>
<property name="modified">2020-04-27T14:48:34</property>
<property name="originalScheme">Nord</property>
</metaInfo>
<colors>
Expand Down Expand Up @@ -49,8 +49,8 @@
<option name="HTML_TAG_TREE_LEVEL5" value="" />
<option name="INDENT_GUIDE" value="4c566a" />
<option name="INFORMATION_HINT" value="434c5e" />
<option name="LINE_NUMBER_ON_CARET_ROW_COLOR" value="d8dee9" />
<option name="LINE_NUMBERS_COLOR" value="4c566a" />
<option name="LINE_NUMBER_ON_CARET_ROW_COLOR" value="d8dee9" />
<option name="METHOD_SEPARATORS_COLOR" value="d8dee9" />
<option name="MODIFIED_LINES_COLOR" value="ebcb8b" />
<option name="NOTIFICATION_BACKGROUND" value="4c566a" />
Expand Down Expand Up @@ -270,6 +270,27 @@
<option name="EFFECT_TYPE" value="1" />
</value>
</option>
<option name="BLADE_BAD_CHARACTER">
<value>
<option name="BACKGROUND" value="bf616a" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
<option name="BLADE_COMMENT">
<value>
<option name="FOREGROUND" value="616e88" />
</value>
</option>
<option name="BLADE_DIRECTIVE">
<value>
<option name="FOREGROUND" value="81a1c1" />
</value>
</option>
<option name="BLADE_TEXT_BLOCK_BOUNDARY">
<value>
<option name="FOREGROUND" value="5e81ac" />
</value>
</option>
<option name="BOOKMARKS_ATTRIBUTES">
<value>
<option name="EFFECT_TYPE" value="1" />
Expand Down Expand Up @@ -1453,6 +1474,11 @@
<option name="FOREGROUND" value="81a1c1" />
</value>
</option>
<option name="GOTO_LABEL">
<value>
<option name="FOREGROUND" value="5e81ac" />
</value>
</option>
<option name="GO_BAD_TOKEN">
<value>
<option name="BACKGROUND" value="bf616a" />
Expand Down Expand Up @@ -3220,6 +3246,13 @@
<option name="FONT_TYPE" value="1" />
</value>
</option>
<option name="MAGIC_MEMBER_ACCESS">
<value>
<option name="FOREGROUND" value="d8dee9" />
<option name="EFFECT_COLOR" value="d8dee9" />
<option name="EFFECT_TYPE" value="1" />
</value>
</option>
<option name="MAKO.ATTRIBUTE_NAME">
<value>
<option name="FOREGROUND" value="8fbcbb" />
Expand Down Expand Up @@ -3488,6 +3521,229 @@
<option name="FOREGROUND" value="d8dee9" />
</value>
</option>
<option name="PHP_ALIAS_REFERENCE">
<value>
<option name="FOREGROUND" value="88c0d0" />
</value>
</option>
<option name="PHP_BAD_CHARACTER">
<value>
<option name="BACKGROUND" value="bf616a" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
<option name="PHP_BRACES">
<value>
<option name="FOREGROUND" value="eceff4" />
</value>
</option>
<option name="PHP_BRACKETS">
<value>
<option name="FOREGROUND" value="eceff4" />
</value>
</option>
<option name="PHP_CLASS">
<value>
<option name="FOREGROUND" value="8fbcbb" />
</value>
</option>
<option name="PHP_COMMA">
<value>
<option name="FOREGROUND" value="eceff4" />
</value>
</option>
<option name="PHP_COMMENT">
<value>
<option name="FOREGROUND" value="616e88" />
</value>
</option>
<option name="PHP_CONSTANT">
<value>
<option name="FOREGROUND" value="d8dee9" />
<option name="FONT_TYPE" value="1" />
</value>
</option>
<option name="PHP_DOC_COMMENT_ID">
<value>
<option name="FOREGROUND" value="616e88" />
</value>
</option>
<option name="PHP_DOC_IDENTIFIER">
<value>
<option name="FOREGROUND" value="8fbcbb" />
</value>
</option>
<option name="PHP_DOC_PARAMETER">
<value>
<option name="FOREGROUND" value="d8dee9" />
</value>
</option>
<option name="PHP_DOC_TAG">
<value>
<option name="FOREGROUND" value="8fbcbb" />
<option name="EFFECT_TYPE" value="1" />
</value>
</option>
<option name="PHP_DOC_VAR">
<value>
<option name="FOREGROUND" value="d8dee9" />
</value>
</option>
<option name="PHP_ESCAPE_SEQUENCE">
<value>
<option name="FOREGROUND" value="ebcb8b" />
</value>
</option>
<option name="PHP_EXEC_COMMAND_ID">
<value>
<option name="FOREGROUND" value="a3be8c" />
<option name="EFFECT_TYPE" value="4" />
</value>
</option>
<option name="PHP_FUNCTION">
<value>
<option name="FOREGROUND" value="88c0d0" />
</value>
</option>
<option name="PHP_FUNCTION_CALL">
<value>
<option name="FOREGROUND" value="88c0d0" />
</value>
</option>
<option name="PHP_HEREDOC_CONTENT">
<value>
<option name="FOREGROUND" value="a3be8c" />
</value>
</option>
<option name="PHP_HEREDOC_ID">
<value>
<option name="FOREGROUND" value="5e81ac" />
</value>
</option>
<option name="PHP_IDENTIFIER">
<value>
<option name="FOREGROUND" value="88c0d0" />
</value>
</option>
<option name="PHP_INSTANCE_FIELD">
<value>
<option name="FOREGROUND" value="d8dee9" />
</value>
</option>
<option name="PHP_INSTANCE_METHOD">
<value>
<option name="FOREGROUND" value="88c0d0" />
</value>
</option>
<option name="PHP_INTERFACE">
<value>
<option name="FOREGROUND" value="8fbcbb" />
<option name="FONT_TYPE" value="1" />
</value>
</option>
<option name="PHP_KEYWORD">
<value>
<option name="FOREGROUND" value="81a1c1" />
</value>
</option>
<option name="PHP_MARKUP_ID">
<value>
<option name="FOREGROUND" value="81a1c1" />
</value>
</option>
<option name="PHP_NUMBER">
<value>
<option name="FOREGROUND" value="b48ead" />
</value>
</option>
<option name="PHP_OPERATION_SIGN">
<value>
<option name="FOREGROUND" value="81a1c1" />
</value>
</option>
<option name="PHP_PARAMETER">
<value>
<option name="FOREGROUND" value="d8dee9" />
</value>
</option>
<option name="PHP_PARENTHESES">
<value>
<option name="FOREGROUND" value="eceff4" />
</value>
</option>
<option name="PHP_PREDEFINED SYMBOL">
<value>
<option name="FOREGROUND" value="88c0d0" />
</value>
</option>
<option name="PHP_PRIMITIVE_TYPE_HINT">
<value>
<option name="FOREGROUND" value="81a1c1" />
</value>
</option>
<option name="PHP_PRIVATE_INSTANCE_FIELD">
<value>
<option name="FOREGROUND" value="d8dee9" />
</value>
</option>
<option name="PHP_PRIVATE_INSTANCE_METHOD">
<value>
<option name="FOREGROUND" value="88c0d0" />
</value>
</option>
<option name="PHP_PROTECTED_INSTANCE_FIELD">
<value>
<option name="FOREGROUND" value="d8dee9" />
</value>
</option>
<option name="PHP_PROTECTED_INSTANCE_METHOD">
<value>
<option name="FOREGROUND" value="88c0d0" />
</value>
</option>
<option name="PHP_SEMICOLON">
<value>
<option name="FOREGROUND" value="eceff4" />
</value>
</option>
<option name="PHP_STATIC_FIELD">
<value>
<option name="FOREGROUND" value="d8dee9" />
<option name="FONT_TYPE" value="2" />
</value>
</option>
<option name="PHP_STATIC_METHOD">
<value>
<option name="FOREGROUND" value="88c0d0" />
<option name="FONT_TYPE" value="2" />
</value>
</option>
<option name="PHP_STRING">
<value>
<option name="FOREGROUND" value="a3be8c" />
</value>
</option>
<option name="PHP_TAG">
<value>
<option name="FOREGROUND" value="81a1c1" />
</value>
</option>
<option name="PHP_THIS_VAR">
<value>
<option name="FOREGROUND" value="81a1c1" />
</value>
</option>
<option name="PHP_VAR">
<value>
<option name="FOREGROUND" value="d8dee9" />
</value>
</option>
<option name="PHP_VAR_VAR">
<value>
<option name="FOREGROUND" value="5e81ac" />
<option name="FONT_TYPE" value="1" />
</value>
</option>
<option name="PROPERTIES.INVALID_STRING_ESCAPE">
<value>
<option name="FOREGROUND" value="d8dee9" />
Expand Down Expand Up @@ -4113,6 +4369,47 @@
<option name="EFFECT_COLOR" value="88c0d0" />
</value>
</option>
<option name="SMARTY_BAD_CHARACTER">
<value>
<option name="BACKGROUND" value="bf616a" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
<option name="SMARTY_BRACKETS">
<value>
<option name="FOREGROUND" value="5e81ac" />
</value>
</option>
<option name="SMARTY_COMMENT">
<value>
<option name="FOREGROUND" value="616e88" />
</value>
</option>
<option name="SMARTY_IDENTIFIER">
<value>
<option name="FOREGROUND" value="d8dee9" />
</value>
</option>
<option name="SMARTY_KEYWORD">
<value>
<option name="FOREGROUND" value="81a1c1" />
</value>
</option>
<option name="SMARTY_NUMBER">
<value>
<option name="FOREGROUND" value="b48ead" />
</value>
</option>
<option name="SMARTY_OPERATION_SIGN">
<value>
<option name="FOREGROUND" value="81a1c1" />
</value>
</option>
<option name="SMARTY_STRING">
<value>
<option name="FOREGROUND" value="a3be8c" />
</value>
</option>
<option name="SPEL.BACKGROUND">
<value />
</option>
Expand Down Expand Up @@ -4735,6 +5032,47 @@
<option name="FOREGROUND" value="ebcb8b" />
</value>
</option>
<option name="TWIG_BAD_CHARACTER">
<value>
<option name="BACKGROUND" value="bf616a" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
<option name="TWIG_BRACKETS">
<value>
<option name="FOREGROUND" value="5e81ac" />
</value>
</option>
<option name="TWIG_COMMENT">
<value>
<option name="FOREGROUND" value="616e88" />
</value>
</option>
<option name="TWIG_IDENTIFIER">
<value>
<option name="FOREGROUND" value="d8dee9" />
</value>
</option>
<option name="TWIG_KEYWORD">
<value>
<option name="FOREGROUND" value="81a1c1" />
</value>
</option>
<option name="TWIG_NUMBER">
<value>
<option name="FOREGROUND" value="b48ead" />
</value>
</option>
<option name="TWIG_OPERATION_SIGN">
<value>
<option name="FOREGROUND" value="81a1c1" />
</value>
</option>
<option name="TWIG_STRING">
<value>
<option name="FOREGROUND" value="a3be8c" />
</value>
</option>
<option name="TYPE_PARAMETER_NAME_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="8fbcbb" />
Expand Down

0 comments on commit 9fa9d9a

Please sign in to comment.