Skip to content

Commit e667579

Browse files
committed
Generate with tree-sitter v0.25.1
1 parent ad824de commit e667579

File tree

11 files changed

+8965
-8779
lines changed

11 files changed

+8965
-8779
lines changed

common/scanner.h

-12
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,6 @@ static inline bool is_bracket_end(TSLexer *lexer) {
132132

133133
static bool scan(Scanner *scanner, TSLexer *lexer, const bool *valid_symbols) {
134134
if (valid_symbols[ERROR_SENTINEL]) {
135-
if (scanner->indents.size > 1) {
136-
array_pop(&scanner->indents);
137-
lexer->result_symbol = DEDENT;
138-
return true;
139-
}
140-
141-
if (scanner->preprocessor_indents.size > 0) {
142-
array_pop(&scanner->preprocessor_indents);
143-
lexer->result_symbol = PREPROC_END;
144-
return true;
145-
}
146-
147135
return false;
148136
}
149137

fsharp/src/grammar.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -8671,5 +8671,6 @@
86718671
"_type",
86728672
"_type_defn_body",
86738673
"_static_parameter"
8674-
]
8675-
}
8674+
],
8675+
"reserved": {}
8676+
}

fsharp/src/node-types.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4405,7 +4405,8 @@
44054405
},
44064406
{
44074407
"type": "line_comment",
4408-
"named": true
4408+
"named": true,
4409+
"extra": true
44094410
},
44104411
{
44114412
"type": "match",

fsharp/src/parser.c

+5,555-5,438
Large diffs are not rendered by default.

fsharp/src/tree_sitter/array.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ extern "C" {
1414
#include <string.h>
1515

1616
#ifdef _MSC_VER
17+
#pragma warning(push)
1718
#pragma warning(disable : 4101)
1819
#elif defined(__GNUC__) || defined(__clang__)
1920
#pragma GCC diagnostic push
@@ -278,7 +279,7 @@ static inline void _array__splice(Array *self, size_t element_size,
278279
#define _compare_int(a, b) ((int)*(a) - (int)(b))
279280

280281
#ifdef _MSC_VER
281-
#pragma warning(default : 4101)
282+
#pragma warning(pop)
282283
#elif defined(__GNUC__) || defined(__clang__)
283284
#pragma GCC diagnostic pop
284285
#endif

0 commit comments

Comments
 (0)