We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2de8450 commit ea5e3a0Copy full SHA for ea5e3a0
src/scanner.c
@@ -17,9 +17,11 @@ enum TokenType {
17
MACRO_IDENTIFIER,
18
};
19
20
+typedef Array(char *) StringArray;
21
+
22
typedef struct {
23
bool in_line_continuation;
- Array(char *) MacroIdentifiers;
24
+ StringArray MacroIdentifiers;
25
} Scanner;
26
27
typedef enum {
@@ -540,7 +542,7 @@ void *tree_sitter_fortran_external_scanner_create() {
540
542
return result;
541
543
}
544
char *macro_id = strtok(macro_ids, ":");
- Array(char *) *macroIdsResult = &result->MacroIdentifiers;
545
+ StringArray *macroIdsResult = &result->MacroIdentifiers;
546
while (macro_id) {
547
int length = strlen(macro_id);
548
char *new_str = (char *)ts_malloc((length + 1) * sizeof(char));
0 commit comments