-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
290a026
commit 83d9059
Showing
13 changed files
with
309 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ sdlfmt-test-* | |
*.obj | ||
*.lst | ||
test/checkfmt | ||
test/actual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name "vibe-d" | ||
description "Event driven web and concurrency framework" | ||
homepage "https://vibed.org/" | ||
|
||
license "MIT" | ||
copyright "Copyright © 2012-2020 Sönke Ludwig" | ||
authors "Sönke Ludwig" "Mathias 'Geod24' Lang" "Etienne Cimon" "Martin Nowak" \ | ||
"Mihails 'Dicebot' Strasuns" "150 contributors total" | ||
|
||
systemDependencies "Optionally OpenSSL 1.1.x" | ||
dependency ":redis" version="*" | ||
dependency ":data" version="*" | ||
dependency ":inet" version="*" | ||
|
||
targetType "library" | ||
targetName "vibed" | ||
|
||
// NOTE: "lib" is a path with no D sources to work around an issue in DUB 1.0.0 | ||
// and below that results in the standard "source/" path to be added even | ||
// if an explicit "sourcePaths" directive is given. | ||
sourcePaths "lib" | ||
sourceFiles "source/vibe/d.d" "source/vibe/vibe.d" | ||
|
||
x:ddoxFilterArgs "--unittest-examples" "--min-protection=Protected" \ | ||
"--ex" "vibe.core.drivers." "--ex" "vibe.internal." "--ex" "vibe.web.internal." \ | ||
"--ex" "diet.internal" "--ex" "stdx." "--ex" "eventcore.internal." "--ex" "eventcore.drivers." \ | ||
"--ex" "mir." "--ex" "openssl_version" | ||
|
||
configuration "unittest" { | ||
targetPath "bin" | ||
targetName "ut" | ||
|
||
dflags "-preview=dip1000" | ||
|
||
sourcePaths "source" "test/ut" | ||
importPaths "source" "test" | ||
stringImportPaths "test/testFiles" | ||
|
||
foo { | ||
bar { | ||
"" | ||
} | ||
} | ||
versions "unitUnthreaded" | ||
|
||
dependency "unit-threaded" version="*" | ||
dependency "unit-threaded:autorunner" version="*" | ||
} | ||
// cool beans | ||
|
||
/* foo */ | ||
foo { | ||
// ok | ||
bar { | ||
// xd | ||
x { | ||
d | ||
} | ||
} | ||
} | ||
|
||
subPackage "utils" | ||
subPackage "data" | ||
subPackage "stream" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// C++ style | ||
|
||
/* | ||
C style multiline | ||
*/ | ||
|
||
tag /*foo=true*/ bar=false | ||
|
||
# Shell style | ||
|
||
-- Lua style |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Strings | ||
"String \"with escape support\"" | ||
`String "without escape support"` | ||
|
||
// Numbers | ||
10 // 32-bit integer | ||
10L // 64-bit integer | ||
10.5 // 64-bit float (double) | ||
10.5d // 64-bit float | ||
10.5f // 32-bit float | ||
10.123BD // 128-bit decimal | ||
|
||
// Boolean and null values | ||
true // boolean true | ||
false // boolean false | ||
on // boolean true | ||
off // boolean false | ||
null // a null value | ||
|
||
// Date/time formats | ||
2015/12/06 12:00:00.000-UTC // Date/time value (UTC timezone) | ||
2015/12/06 12:00:00.000 // Date/time value (local time) | ||
2015/12/06 // Date value | ||
12:14:34 // Duration: 12 hours, 14 minutes, 34 seconds | ||
12:14:34.123 // 12 h, 14 min, 34 s, 123 ms | ||
2d:12:14:34 // 2 days, 12 h, 14 min, 34 s | ||
|
||
// Binary data (Base64 encoded) | ||
[sdf789GSfsb2+3324sf2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Trailing semicolons are optional | ||
title "Some title"; | ||
|
||
// They can be used to separate multiple nodes | ||
title "Some title"; author "Peter Parker" | ||
|
||
// Tags may contain certain non-alphanumeric characters | ||
this-is_a.valid$tag-name | ||
|
||
// Namespaces are supported | ||
renderer:options "invisible" | ||
physics:options "nocollide" | ||
|
||
// Nodes can be separated into multiple lines | ||
title \ | ||
"Some title" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name "vibe-d" | ||
description "Event driven web and concurrency framework" | ||
homepage "https://vibed.org/" | ||
|
||
license "MIT" | ||
copyright "Copyright © 2012-2020 Sönke Ludwig" | ||
authors "Sönke Ludwig" "Mathias 'Geod24' Lang" "Etienne Cimon" "Martin Nowak" \ | ||
"Mihails 'Dicebot' Strasuns" "150 contributors total" | ||
|
||
systemDependencies "Optionally OpenSSL 1.1.x" | ||
dependency ":redis" version="*" | ||
dependency ":data" version="*" | ||
dependency ":inet" version="*" | ||
|
||
targetType "library" | ||
targetName "vibed" | ||
|
||
// NOTE: "lib" is a path with no D sources to work around an issue in DUB 1.0.0 | ||
// and below that results in the standard "source/" path to be added even | ||
// if an explicit "sourcePaths" directive is given. | ||
sourcePaths "lib" | ||
sourceFiles "source/vibe/d.d" "source/vibe/vibe.d" | ||
|
||
x:ddoxFilterArgs "--unittest-examples" "--min-protection=Protected" \ | ||
"--ex" "vibe.core.drivers." "--ex" "vibe.internal." "--ex" "vibe.web.internal." \ | ||
"--ex" "diet.internal" "--ex" "stdx." "--ex" "eventcore.internal." "--ex" "eventcore.drivers." \ | ||
"--ex" "mir." "--ex" "openssl_version" | ||
|
||
configuration "unittest" { | ||
targetPath "bin" | ||
targetName "ut" | ||
|
||
dflags "-preview=dip1000" | ||
|
||
sourcePaths "source" "test/ut" | ||
importPaths "source" "test" | ||
stringImportPaths "test/testFiles" | ||
|
||
foo { | ||
bar { | ||
"" | ||
} | ||
} | ||
versions "unitUnthreaded" | ||
|
||
dependency "unit-threaded" version="*" | ||
dependency "unit-threaded:autorunner" version="*" | ||
} | ||
// cool beans | ||
|
||
/* foo */ | ||
foo { | ||
// ok | ||
bar { | ||
// xd | ||
x { | ||
d | ||
} | ||
} | ||
} | ||
|
||
subPackage "utils" | ||
subPackage "data" | ||
subPackage "stream" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Trailing semicolons are optional | ||
title "Some title"; | ||
|
||
// They can be used to separate multiple nodes | ||
title "Some title"; author "Peter Parker" | ||
|
||
// Tags may contain certain non-alphanumeric characters | ||
this-is_a.valid$tag-name | ||
|
||
// Namespaces are supported | ||
renderer:options "invisible" | ||
physics:options "nocollide" | ||
|
||
// Nodes can be separated into multiple lines | ||
title \ | ||
"Some title" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// C++ style | ||
|
||
/* | ||
C style multiline | ||
*/ | ||
|
||
tag /*foo=true*/ bar=false | ||
|
||
# Shell style | ||
|
||
-- Lua style |
Oops, something went wrong.