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 support for Red (exercism fork) (#12)
* Add support for Red * Disable Red/System files, conflict with Redscript language
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 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
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,20 @@ | ||
Red [] ; 20 lines 10 code 6 comments 4 blanks | ||
|
||
x: 1 ; line comment 1 | ||
x: 2 ;-- line comment 2 | ||
x: 3 ;@@ line comment 3 | ||
|
||
comment ['this | ||
'is 'multiline | ||
'comment] | ||
comment {and this | ||
as well} | ||
|
||
function add100 [x [integer!]] [ | ||
"; this should not count as comment " | ||
{ comment [and neither | ||
this] } | ||
] | ||
|
||
comment {unfortunately, tokei does not allow regexp in comment prefix} | ||
; so probably previous block comment is not parsed properly |