Fixed build issue

This commit is contained in:
Hackerpilot 2014-01-13 20:56:41 +00:00
parent 0e3adafd48
commit 7d0b169ac4
2 changed files with 8 additions and 2 deletions

View File

@ -422,7 +422,7 @@ public struct DLexer(R)
|| comment[0 .. 3] == "/**" || comment[0 .. 3] == "/++"); || comment[0 .. 3] == "/**" || comment[0 .. 3] == "/++");
} }
public void popFront() public void popFront() pure
{ {
_popFront(); _popFront();
string comment = null; string comment = null;

View File

@ -32,7 +32,7 @@ void styleCheck(File output, string[] fileNames)
class StyleChecker : ASTVisitor class StyleChecker : ASTVisitor
{ {
enum varFunNameRegex = `^([\p{Ll}_][_\w\d]*|[\p{Lu}_]+)$`; enum varFunNameRegex = `^([\p{Ll}_][_\w\d]*|[\p{Lu}\d_]+)$`;
enum aggregateNameRegex = `^\p{Lu}[\w\d]*$`; enum aggregateNameRegex = `^\p{Lu}[\w\d]*$`;
enum moduleNameRegex = `^\p{Ll}+$`; enum moduleNameRegex = `^\p{Ll}+$`;
@ -69,6 +69,12 @@ class StyleChecker : ASTVisitor
dec.accept(this); dec.accept(this);
} }
override void visit(InterfaceDeclaration dec)
{
checkAggregateName("Interface", dec.name);
dec.accept(this);
}
override void visit(EnumDeclaration dec) override void visit(EnumDeclaration dec)
{ {
if (dec.name.text is null || dec.name.text.length == 0) if (dec.name.text is null || dec.name.text.length == 0)