Fixed build issue
This commit is contained in:
parent
0e3adafd48
commit
7d0b169ac4
|
@ -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;
|
||||||
|
|
8
style.d
8
style.d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue