Skip to content

Commit

Permalink
Only parse exactly three slashes as beginning of documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fnussbaum committed Mar 25, 2024
1 parent 73a73bf commit 85d6058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/viper/silver/parser/FastParser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ object FastParserCompanion {
implicit val whitespace = {
import NoWhitespace._
implicit ctx: ParsingRun[_] =>
NoTrace((("/*" ~ (!StringIn("*/") ~ AnyChar).rep ~ "*/") | ("//" ~ !StringIn("/") ~ CharsWhile(_ != '\n').? ~ ("\n" | End)) | " " | "\t" | "\n" | "\r").rep)
NoTrace((("/*" ~ (!"*/" ~ AnyChar).rep ~ "*/") | ((("//" ~ !("/")) | "////") ~ CharsWhile(_ != '\n').? ~ ("\n" | End)) | " " | "\t" | "\n" | "\r").rep)
}

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

0 comments on commit 85d6058

Please sign in to comment.