Skip to content

Commit 88566fe

Browse files
committed
Fixed: Lua style comments on SDL
1 parent 3ba0af5 commit 88566fe

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dub_sdl_to_json/source/dub_sdl_to_json.d

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ string stripComments(string str)
230230
i++; //Skip '`'
231231
ret~= str[left..i];
232232
}
233-
if(str[i] == '"')
233+
else if(str[i] == '"')
234234
{
235235
size_t left = i;
236236
i++;
@@ -250,6 +250,12 @@ string stripComments(string str)
250250
while(i < length && str[i] != '\n')
251251
i++;
252252
}
253+
else if(str[i] == '-' && i + 1 < length && str[i+1] == '-') //Single line --
254+
{
255+
i+=2;
256+
while(i < length && str[i] != '\n')
257+
i++;
258+
}
253259
//Single line #
254260
else if(str[i] == '#')
255261
{

source/redub/buildapi.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import redub.package_searching.api;
88

99

1010
///vX.X.X
11-
enum RedubVersionOnly = "v1.21.4";
11+
enum RedubVersionOnly = "v1.21.5";
1212
///Redub vX.X.X
1313
enum RedubVersionShort = "Redub "~RedubVersionOnly;
1414
///Redub vX.X.X - Description

0 commit comments

Comments
 (0)