eclipse-archived / ceylon.formatter

A formatter for the Ceylon programming language, written in Ceylon.
Apache License 2.0
14 stars 11 forks source link

AIDENTIFIER, PIDENTIFIER #102

Closed lucaswerkmeister closed 9 years ago

lucaswerkmeister commented 9 years ago
\ishared void run() {}

The lexer only knows LIDENTIFIER and UIDENTIFIER identifiers, but the grammar rewrites some of them to have PIDENTIFIER (package) or AIDENTIFIER (annotation) type. visitIdentifier needs to learn this.

(I learned this in ceylon.ast, and just now realized reading through FormattingVisitor that I hadn’t known this back then.)