@sasjs/cli 4.9.0 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -71,9 +71,9 @@ var path_1 = __importDefault(require("path"));
|
|
|
71
71
|
var sasRegExp = /\.sas$/;
|
|
72
72
|
// to get lines that have @brief keyword (case insensitive)
|
|
73
73
|
var briefRegExp = /^\s\s@brief\s/i;
|
|
74
|
-
// to get lines that have @param keyword and optionally [
|
|
74
|
+
// to get lines that have @param keyword and optionally [anything] string
|
|
75
75
|
// following it (case insensitive)
|
|
76
|
-
var paramRegExp = /^\s\s@param\s(\[
|
|
76
|
+
var paramRegExp = /^\s\s@param\s?(\[.*?]\s?)?/i;
|
|
77
77
|
/**
|
|
78
78
|
* Generates VS Code snippets from the Doxygen headers in the SAS Macros.
|
|
79
79
|
* @param macroFolders an array of file paths of SAS Macros.
|
|
@@ -114,12 +114,17 @@ describe('sasjs snippets', function () {
|
|
|
114
114
|
prefix: '%macro2',
|
|
115
115
|
body: '%macro2($1)',
|
|
116
116
|
description: [
|
|
117
|
-
'Macro 2',
|
|
117
|
+
'Macro 2 with uppercase @BRIEF',
|
|
118
118
|
'\r',
|
|
119
119
|
'Params:',
|
|
120
120
|
'-msg The message to be printed',
|
|
121
|
-
'-indlm= ( )
|
|
122
|
-
'-outdlm= ( )
|
|
121
|
+
'-indlm= ( ) Uppercase @PARAM',
|
|
122
|
+
'-outdlm= ( ) Uppercase [OUT]',
|
|
123
|
+
'-outdlm= ( ) No space after @param',
|
|
124
|
+
'-outdlm= ( ) No space after [out]',
|
|
125
|
+
'-outdlm= ( ) No space after @param and [out]',
|
|
126
|
+
'-scopeds= () with [in,out]',
|
|
127
|
+
'-anything= () with [anything]'
|
|
123
128
|
]
|
|
124
129
|
},
|
|
125
130
|
badMacro: {
|
package/package.json
CHANGED