1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-05 11:40:06 +00:00

fix(parseMacro): updated to have macros with parameters + options

This commit is contained in:
Saad Jutt
2021-05-20 15:12:06 +05:00
parent 5a358330c0
commit e5780cd69a
2 changed files with 71 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ export const parseMacros = (text: string, config?: LintConfig): Macro[] => {
const name = trimmedStatement
.slice(7, trimmedStatement.length)
.trim()
.split('/')[0]
.split('(')[0]
macroStack.push({
name,