tunnelvisionlabs / antlrworks2

Tunnel Vision Labs' ANTLRWorks 2 IDE
http://tunnelvisionlabs.com/products/antlrworks
Other
48 stars 21 forks source link

Smart indent rule for delegate grammar with alias #54

Open sharwell opened 9 years ago

sharwell commented 9 years ago
  1. Press Enter before the =.
  2. Press Enter after the =.
lexer grammar TestLexer;

import
    ImportedS=S;

:question: For each of the two described cases, what should the indentation be, and why?

:memo: For reference, currently the code assumes a delegate grammar will always fit on a single line (i.e. the alias, =, and delegate grammar name will appear on the same line).