@sasjs/cli 4.8.1 → 4.9.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.
|
@@ -67,9 +67,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
67
67
|
exports.generateSnippets = void 0;
|
|
68
68
|
var utils_1 = require("@sasjs/utils");
|
|
69
69
|
var path_1 = __importDefault(require("path"));
|
|
70
|
-
|
|
71
|
-
var
|
|
72
|
-
|
|
70
|
+
// to check if file has .sas extension
|
|
71
|
+
var sasRegExp = /\.sas$/;
|
|
72
|
+
// to get lines that have @brief keyword (case insensitive)
|
|
73
|
+
var briefRegExp = /^\s\s@brief\s/i;
|
|
74
|
+
// to get lines that have @param keyword and optionally [in] or [out] string
|
|
75
|
+
// following it (case insensitive)
|
|
76
|
+
var paramRegExp = /^\s\s@param\s(\[(in|out)\]\s)?/i;
|
|
73
77
|
/**
|
|
74
78
|
* Generates VS Code snippets from the Doxygen headers in the SAS Macros.
|
|
75
79
|
* @param macroFolders an array of file paths of SAS Macros.
|
|
@@ -117,7 +117,9 @@ describe('sasjs snippets', function () {
|
|
|
117
117
|
'Macro 2',
|
|
118
118
|
'\r',
|
|
119
119
|
'Params:',
|
|
120
|
-
'-msg The message to be printed'
|
|
120
|
+
'-msg The message to be printed',
|
|
121
|
+
'-indlm= ( ) Delimeter of the input string',
|
|
122
|
+
'-outdlm= ( ) Delimiter of the output string'
|
|
121
123
|
]
|
|
122
124
|
},
|
|
123
125
|
badMacro: {
|
package/package.json
CHANGED