diff --git a/.travis.yml b/.travis.yml index dd338dd..f4ae934 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: node_js node_js: - - "4" - - "6" - - "8" + - "12" + - "14" + - "16" + - node diff --git a/package.json b/package.json index 49f9d4b..059137a 100644 --- a/package.json +++ b/package.json @@ -23,18 +23,18 @@ "license": "MIT", "engine": "node", "dependencies": { - "async": "~2.1.4", - "cli-table": "^0.3.1", - "commander": "~2.9.0", - "readdirp": "^2.1.0" + "async": "^3.2.1", + "cli-table": "^0.3.6", + "commander": "^8.2.0", + "readdirp": "^2.2.1" }, "devDependencies": { - "chai": "~3.5.0", - "coffee-script": "~1.12.3", - "coffeelint": "^1.16.0", - "coveralls": "^2.11.15", + "chai": "^4.3.4", + "coffeescript": "^2.6.1", + "coffeelint": "^2.1.0", + "coveralls": "^3.1.1", "istanbul": "^0.4.5", - "mocha": "~3.2.0" + "mocha": "^9.1.3" }, "repository": { "type": "git", @@ -55,6 +55,6 @@ "lint": "coffeelint src/", "watch": "coffee -o lib -cw src/", "prepublish": "coffee -o lib/ -c src/", - "test": "npm run lint && mocha --reporter spec --compilers coffee:coffee-script/register --recursive spec/*.spec.coffee" + "test": "npm run lint && mocha --require coffeescript/register --recursive spec/*.spec.coffee" } } diff --git a/src/sloc.coffee b/src/sloc.coffee index b1283c9..3c23ff7 100644 --- a/src/sloc.coffee +++ b/src/sloc.coffee @@ -29,7 +29,8 @@ getCommentExpressions = (lang) -> when "coffee", "iced" /\#[^\{]/ # hashtag not followed by opening curly brace - when "cr", "py", "ls", "mochi", "nix", "r", "rb", "jl", "pl", "yaml", "hr", "rpy" + when "cr", "py", "ls", "mochi", "nix", "r", \ + "rb", "jl", "pl", "yaml", "hr", "rpy" /\#/ when "js", "jsx", "mjs", "c", "cc", "cpp", "cs", "cxx", "h", "m", "mm", \ "hpp", "hx", "hxx", "ino", "java", "php", "php5", "go", "groovy", \