Skip to content

Commit f3d10b9

Browse files
authored
Merge pull request #107 from kylebarron/new-languages
Add R, Julia, Matlab, and Stata to supported languages
2 parents b2d3175 + ba36b3d commit f3d10b9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pycco/languages.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,14 @@ def lang(name, comment_symbol, multistart=None, multiend=None):
6363
".tcl": lang("tcl", HASH),
6464

6565
".hs": lang("haskell", DASH_DASH, "{-", "-}"),
66+
67+
".r": lang("r", HASH),
68+
".R": lang("r", HASH),
69+
70+
".jl": lang("julia", HASH, "#=", "=#"),
71+
72+
".m": lang("matlab", "%", "%{", "%}"),
73+
74+
".do": lang("stata", SLASH_SLASH, SLASH_STAR, STAR_SLASH)
75+
6676
}

0 commit comments

Comments
 (0)