Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capitalized R detection #106

Open
ThomDietrich opened this issue Jul 10, 2018 · 1 comment
Open

Capitalized R detection #106

ThomDietrich opened this issue Jul 10, 2018 · 1 comment
Labels

Comments

@ThomDietrich
Copy link

Seems like a simple bug:

$ sloc ./*.R
C:\Users\Birke\AppData\Roaming\npm\node_modules\sloc\lib\sloc.js:195
          throw new TypeError("File extension '" + lang + "' is not supported");
          ^

TypeError: File extension 'R' is not supported
    at getCommentExpressions (C:\Users\Birke\AppData\Roaming\npm\node_modules\sloc\lib\sloc.js:195:17)
    at slocModule (C:\Users\Birke\AppData\Roaming\npm\node_modules\sloc\lib\sloc.js:376:31)
    at C:\Users\Birke\AppData\Roaming\npm\node_modules\sloc\lib\cli.js:84:19
    at tryToString (fs.js:456:3)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:443:12)


$ sloc ./*.R -a R=r

---------- Result ------------
...
@flosse flosse added the bug label Jul 10, 2018
@flosse
Copy link
Owner

flosse commented Jul 10, 2018

Tanks for reporting this error.
Feel free to fix it, because #99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants