Skip to content

Commit

Permalink
Handle CRLF as a whitespace character to end comments in SPARQLLexer.
Browse files Browse the repository at this point in the history
  • Loading branch information
kasei committed Sep 20, 2018
1 parent 2d45be8 commit 54a7d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SPARQLSyntax/SPARQLLexer.swift
Expand Up @@ -766,7 +766,7 @@ public class SPARQLLexer: IteratorProtocol {
continue
} else if c == "#" {
var chars = [Character]()
while c != "\n" && c != "\r" {
while c != "\n" && c != "\r" && c != "\r\n" {
if let cc = try peekChar() {
getChar()
c = cc
Expand Down

0 comments on commit 54a7d4d

Please sign in to comment.