From ddbe485c40823a35f54c048c073627aec7b63d00 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Mon, 14 Apr 2014 14:30:51 -0700 Subject: [PATCH] Fix #163 --- stdx/d/lexer.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdx/d/lexer.d b/stdx/d/lexer.d index 91f7146..094b071 100644 --- a/stdx/d/lexer.d +++ b/stdx/d/lexer.d @@ -412,8 +412,8 @@ public struct DLexer private static bool isDocComment(string comment) pure nothrow @safe { - return comment.length >= 3 && (comment[2] == '/' - || comment[2] == '*' || comment[2] == '+'); + return comment.length >= 3 && (comment[0 .. 3] == "///" + || comment[0 .. 3] == "/++" || comment[0 .. 3] == "/**"); } public void popFront() pure