Skip to content

Commit

Permalink
Merge pull request #11 from zephir-lang/0.3.2
Browse files Browse the repository at this point in the history
0.3.2
  • Loading branch information
sergeyklay authored Dec 27, 2017
2 parents 8e5c8e0 + adfb19a commit 8a16b85
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ Plugin page: http://plugins.jetbrains.com/plugin/7558
1. Install next plugins for Intellij
* https://plugins.jetbrains.com/plugin/6606-grammar-kit

2. Go to `Zephir.bnf` file and run "Generate parser code" through context menu
3. Go to `src/com/zephir/Zephir.flex` and run "Run JFlex generator" through context menu
4. Run the plugin by Menu -> Run -> Run
2. Go to `Zephir.bnf` file and run "Generate parser code" through context menu
3. Go to `src/com/zephir/lexer/Zephir.flex` and run "Run JFlex generator" through context menu
And specify idea-plugin/lib/ directory to get "lib/jflex-*.jar" file
4. Specify */gen* folder as *source code folder* Menu -> File -> Project Structure...
In *Modules* tab specify */gen* folder as "Source"
5. Run the plugin by Menu -> Run -> Run

## Links

Expand Down
6 changes: 2 additions & 4 deletions resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<idea-plugin url="https://github.com/phalcon/zephir-idea-plugin">
<id>com.zephir</id>
<name>Zephir</name>
<version>0.3.2-beta3</version>
<version>0.3.2</version>
<vendor email="[email protected]" url="https://zephir-lang.com">Zephir Team</vendor>

<description><![CDATA[
Expand All @@ -12,9 +12,7 @@
]]></description>

<change-notes><![CDATA[
<li><b>0.3.2-beta3</b> Fixed regex recognition bug. Added syntax support for constructions like {var} </li>
<li><b>0.3.2-beta2</b>: Improved syntax support. Fixed completion bug when invoking AC in method definition block</li>
<li><b>0.3.2-beta1</b>: Introduced class members in completion list</li>
<li><b>0.3.2</b>: Completion list now shows members of class. Improved syntax support</li>
<li><b>0.3.1</b>: Fixed much bugs with syntax recognition, fixed extra space in completion for method params</li>
<li><b>0.3.0</b>: Fixed many bugs with syntax recognition, added few words to highlight, improved completion</li>
<li><b>0.2.5</b>: Fixed "switch" keyword detection</li>
Expand Down
8 changes: 6 additions & 2 deletions src/com/zephir/Zephir.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ method_definition ::= method_header '(' arguments* ')' return_type? method_body
method_modifiers ::= 'static' | 'inline' | 'deprecated' | 'final'
method_body ::= code_block

private method_header ::= (visibility method_modifiers* | method_modifiers* visibility ) FUNCTION id
private method_header ::= (visibility | method_modifiers)* FUNCTION id
code_block ::= '{' code* '}' {pin=1}

return_type ::= '->' (type | 'null') ('|' (type | 'null'))* {pin(".*")=1}
Expand Down Expand Up @@ -224,6 +224,7 @@ private void_type ::= 'void'
code ::= declaration_statement |
let_statement |
call_statement |
chain_of_call_statement |
control_statement |
loop_statement |
switch_statement |
Expand Down Expand Up @@ -295,9 +296,12 @@ expr ::= unary_expr |
special_group_expr

private bool_group_expr ::= bool_expr | ternary_expr | empty_expr | isset_expr | fetch_expr | instanceof_expr
private primary_group_expr ::= static_call_expr | literal_expr | paren_expr | precast_expr | callback_expr | call_expr | clone_expr
private primary_group_expr ::= chain_of_call_expr | static_call_expr | literal_expr | paren_expr | precast_expr | callback_expr | call_expr | clone_expr
private special_group_expr ::= new_expr | typeof_expr

chain_of_call_statement ::= chain_of_call_expr ;
chain_of_call_expr ::= (paren_expr '->') expr

bit_expr ::= expr bit_operator expr
bit_operator ::= '&' | '|' | '^' | '>>' | '<<'

Expand Down

0 comments on commit 8a16b85

Please sign in to comment.