refs #120 fix flaw of grammar, added a test case

now it can recognize input like 
```
#id{
color: blue;
}
```