feat: added Lua support

This commit is contained in:
Ivan Verevkin
2019-07-22 16:18:17 +02:00
parent a0c7c134d3
commit b7e5b70df7
5 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
const { setupGetCrumbs, setupGetCommentsFromCode } = require('../default/codecrumbs');
const LUA_COMMENT_REGEX = /^([^--]*)--(.*)$/;
const getCrumbs = setupGetCrumbs(setupGetCommentsFromCode(LUA_COMMENT_REGEX));
// replace with own implementation if needed
module.exports = {
getCrumbs
};

View File

@@ -0,0 +1,7 @@
const defaultDependencies = require('../default/dependencies');
// replace with own implementation if needed
module.exports = {
getImports: defaultDependencies.getImports,
getDependencies: defaultDependencies.getDependencies
};

View File

@@ -0,0 +1 @@
module.exports = /\.(lua|luac)$/;