forked from XAMPPRocky/tokei
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Cairo * Fix expected stats * Remove nested and important syntax fields
- Loading branch information
Showing
3 changed files
with
57 additions
and
7 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 |
---|---|---|
|
@@ -349,6 +349,7 @@ Bitbake | |
BrightScript | ||
C | ||
Cabal | ||
Cairo | ||
Cassius | ||
Ceylon | ||
CHeader | ||
|
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,51 @@ | ||
//! 51 lines 32 code 13 comments 6 blanks | ||
//! ```rust | ||
//! fn main () { | ||
//! // Comment | ||
//! | ||
//! println!("Hello World!"); | ||
//! } | ||
//! ``` | ||
|
||
/// The main function | ||
fn main() { | ||
let x: ByteArray = "\"/*##\"\"##\'\'"; | ||
// comment | ||
loop { | ||
if x.len() >= 2 && x[0] == '*' && x[1] == '/' { // found the */ | ||
break; | ||
} | ||
} | ||
} | ||
|
||
fn foo<T, +Drop<T>>(name: T) { | ||
let this_ends = 'a "\'test/"*.'; | ||
call1(); | ||
call2(); | ||
let this_does_not = // a // nested // comment " // | ||
///"*/another /*test | ||
call3(); | ||
//*/"; | ||
} | ||
|
||
fn call1() {} | ||
fn call2() {} | ||
fn call3() {} | ||
|
||
fn foobar() { | ||
let does_not_start: ByteArray = // " | ||
"until here, | ||
test/* | ||
test"; // a quote: " | ||
let also_doesnt_start = | ||
/// " */ | ||
'until here, | ||
test,'; // another quote: " | ||
} | ||
|
||
fn foo2() { | ||
let a = 4; // /// | ||
let b = '5'; | ||
let c = 6; // /// | ||
} | ||
|