mirror of
https://github.com/XAMPPRocky/tokei
synced 2024-09-28 20:13:35 +00:00
Add support for Stata (#1112)
* add support for stata * readme * add test
This commit is contained in:
parent
b59cbbf52f
commit
79788ccf38
|
@ -1538,6 +1538,11 @@
|
|||
"quotes": [["\\\"", "\\\""]],
|
||||
"extensions": ["stan"]
|
||||
},
|
||||
"Stata": {
|
||||
"line_comment": ["//", "*"],
|
||||
"multi_line_comments": [["/*", "*/"]],
|
||||
"extensions": ["do"]
|
||||
},
|
||||
"Stratego": {
|
||||
"name": "Stratego/XT",
|
||||
"line_comment": ["//"],
|
||||
|
|
16
tests/data/stata.do
Normal file
16
tests/data/stata.do
Normal file
|
@ -0,0 +1,16 @@
|
|||
* 16 lines 6 code 7 comments 3 blanks
|
||||
* This is a comment
|
||||
**** Any number of * symbol
|
||||
|
||||
use "foo.dta", replace
|
||||
gen x = 1*2
|
||||
gen x2 = 1/2
|
||||
/*
|
||||
Here's a comment block
|
||||
*/
|
||||
|
||||
if c(username) == "foobar" {
|
||||
global FOO 1
|
||||
}
|
||||
|
||||
// Finally another symbol for comment
|
Loading…
Reference in a new issue