Skip to content

Commit 667e843

Browse files
committed
[kotlin mode] Fix issue in tokenizing prefixed URIs
Closes #6637
1 parent 0a6e330 commit 667e843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/sparql/sparql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ CodeMirror.defineMode("sparql", function(config) {
9595
}
9696

9797
function eatPnLocal(stream) {
98-
while (stream.match(/([:\w\d._-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-fA-F0-9][a-fA-F0-9])/));
98+
stream.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i);
9999
}
100100

101101
function tokenLiteral(quote) {

0 commit comments

Comments
 (0)