oowekyala / intellij-javacc

JavaCC and JJTree grammar support for the IntelliJ Platform
https://plugins.jetbrains.com/plugin/11431-javacc
MIT License
44 stars 6 forks source link

Only some tokens are shown as their values #13

Closed giano574 closed 5 years ago

giano574 commented 5 years ago

Only some tokens in productions are "replaced" with their value.

Screenshot_43

Tokens are defined as follows

TOKEN : {
  <SPADES: "spades" > |
  <CLUBS: "clubs" > |
  <HEARTS: "hearts" > |
  <DIAMONDS: "diamonds" >
}

Version: 1.2

oowekyala commented 5 years ago

Hi,

To me there's no problem specifically with the CLUBS token. But when you make a change to the folded form ("clubs"), or click directly on it, it unfolds back to the real text, ie <CLUBS>. Intellij doesn't fold it back on itself, but you can get it to fold with right-click (context menu) > Folding > Collapse. I suggest you define a shortcut for that, I personally use it a lot. This is especially useful when you edit the java fragments and want them to fold back when you're done.

Does that fix your issue?

oowekyala commented 5 years ago

I'm assuming this wasn't a bug and close this ticket.