Skip to content
This repository has been archived by the owner on Jan 21, 2019. It is now read-only.

Commit

Permalink
Fixed #13 Solved condition bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Xumeiquer committed Oct 14, 2017
1 parent d026942 commit 2a7ff32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grammar/grammar.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,13 +447,13 @@ func (p *Parser) processCondition() string {
item := p.nextItem()
last = item
for !checkItemType(item, "__CLOSE_CURLY__") {
if checkItemType(last, "__DOT__") || checkItemType(last, "__DOT_DOT__") {
if checkItemType(last, "__DOT__") || checkItemType(last, "__DOT_DOT__") || checkItemType(last, "__AT__") {
space = ""
}
if checkItemType(item, "__HASH__") {
hash := item.GetValue()
item = p.nextItem()
if checkItemType(item, "__IDENTIFIER__") {
if checkItemType(item, "__IDENTIFIER__") || checkItemType(item, "__INT_NUMBER__") {
value += space + hash + item.GetValue()
} else {
p.errorf("Expected %s and found %s", lexic.ItemType["ItemIdentifier"], item.GetType())
Expand Down

0 comments on commit 2a7ff32

Please sign in to comment.