mirror of
https://github.com/sasjs/lint.git
synced 2026-01-17 01:00:06 +00:00
test: for hasMacroParentheses & noNestedMacros
This commit is contained in:
@@ -25,8 +25,8 @@ const test = (value: string) => {
|
||||
|
||||
if (trimmedStatement.startsWith('%macro ')) {
|
||||
const macroName = trimmedStatement
|
||||
.split(' ')
|
||||
.filter((s: string) => !!s)[1]
|
||||
.slice(7, trimmedStatement.length)
|
||||
.trim()
|
||||
.split('(')[0]
|
||||
stack.push(macroName)
|
||||
} else if (trimmedStatement.startsWith('%mend')) {
|
||||
|
||||
Reference in New Issue
Block a user