Skip to content

Commit

Permalink
fixed new flags support: all and none must not interpreted as l…
Browse files Browse the repository at this point in the history
…anguage keywords. (#16)
  • Loading branch information
jothepro authored Nov 16, 2020
1 parent 3bef22b commit 6f95332
Show file tree
Hide file tree
Showing 9 changed files with 136 additions and 173 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# djinni-intellij-plugin Changelog

## [Unreleased]
### Fixed
- problem with new `flags` support: `all` and `none` must not interpreted as language keywords.

## [0.10.0]
### Added
- support for the `flags` data structure

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pluginGroup = com.github.cross_language_cpp.djinni_intellij_plugin
pluginName_ = djinni-intellij-plugin
pluginVersion = 0.10.0
pluginVersion = 0.10.1
pluginSinceBuild = 193
pluginUntilBuild = 202.*

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
comment="regexp:#.*"
enum="enum"
flags="flags"
all="all"
none="none"
record="record"
eq_keyword="eq"
ord="ord"
Expand Down Expand Up @@ -101,7 +99,7 @@ private flagsDescription ::= flagsTypeVariant LEFT_BLOCK_BRACE flagsMember* RIGH

flagsTypeVariant ::= flags

flagsMember ::= flagsValue [ EQ ( all | none ) ] SEMICOLON
flagsMember ::= flagsValue [ EQ ( 'all' | 'none' ) ] SEMICOLON

flagsValue ::= identifier {
mixin="com.github.cross_language_cpp.djinni_intellij_plugin.psi.impl.DjinniReferenceImpl"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ TEXT=[a-zA-Z_0-9]+
"@" { return AT; }
"enum" { return ENUM; }
"flags" { return FLAGS; }
"all" { return ALL; }
"none" { return NONE; }
"record" { return RECORD; }
"eq" { return EQ_KEYWORD; }
"ord" { return ORD; }
Expand Down
Loading

0 comments on commit 6f95332

Please sign in to comment.