Skip to content

Commit 9c7b16f

Browse files
committed
Only parse exactly three slashes as beginning of documentation
1 parent 0c839f5 commit 9c7b16f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/viper/silver/parser/FastParser.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ object FastParserCompanion {
3333
implicit val whitespace = {
3434
import NoWhitespace._
3535
implicit ctx: ParsingRun[_] =>
36-
NoTrace((("/*" ~ (!StringIn("*/") ~ AnyChar).rep ~ "*/") | ("//" ~ !StringIn("/") ~ CharsWhile(_ != '\n').? ~ ("\n" | End)) | " " | "\t" | "\n" | "\r").rep)
36+
NoTrace((("/*" ~ (!"*/" ~ AnyChar).rep ~ "*/") | ((("//" ~ !("/")) | "////") ~ CharsWhile(_ != '\n').? ~ ("\n" | End)) | " " | "\t" | "\n" | "\r").rep)
3737
}
3838

3939
def identStarts[$: P] = CharIn("A-Z", "a-z", "$_")

0 commit comments

Comments
 (0)