Skip to content

Issue with attributes and list of imports #49

@lmichaudel

Description

@lmichaudel

This import (from https://c3-lang.org/language-fundamentals/modules/) won't be parsed correctly:

import lib1 @norecurse, lib2;

Looking at the grammar, I think the optional attributes should be within the "path" fields:

tree-sitter-c3/grammar.js

Lines 426 to 431 in 6b4e912

import_declaration: $ => seq(
'import',
field('path', commaSep1($.path_ident)),
optional($.attributes),
';'
),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions