Skip to content

Commit dd8980b

Browse files
Unsafe foreign_mod_item and CI updates
1 parent 38a7bc3 commit dd8980b

File tree

7 files changed

+84257
-84239
lines changed

7 files changed

+84257
-84239
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,7 @@ jobs:
5252
- name: Parse examples
5353
uses: tree-sitter/parse-action@v4
5454
with:
55-
files: examples/**/*.rs
55+
files: |
56+
examples/**/*.rs
57+
!examples/libc/ctest/templates/test.rs
58+
!examples/libc/ctest/tests/input/invalid_syntax.rs

grammar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ module.exports = grammar({
110110
[$.array_expression],
111111
[$.visibility_modifier],
112112
[$.visibility_modifier, $.scoped_identifier, $.scoped_type_identifier],
113+
[$.foreign_mod_item, $.function_modifiers],
113114
],
114115

115116
word: $ => $.identifier,
@@ -279,7 +280,7 @@ module.exports = grammar({
279280
),
280281

281282
foreign_mod_item: $ => seq(
282-
optional($.visibility_modifier),
283+
optional('unsafe'),
283284
$.extern_modifier,
284285
choice(
285286
';',

src/grammar.json

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)