Skip to content

Commit

Permalink
Add a test that illustrates mismatch between wasm and native (macOS)
Browse files Browse the repository at this point in the history
tree-sitter CLI version: 4c0fa297d84b1573b8733e6da10a11b7df88ed43

`tree-sitter web-ui` syntax tree:

(source_file
 (macro_definition name:
                   (identifier))
 (line_comment)
 (identifier)
 (MISSING ";")
 (macro_invocation macro:
                   (identifier)
                   (token_tree
                    (identifier)
                    (identifier))))
  • Loading branch information
ubolonton committed Apr 11, 2020
1 parent 3e5ec5a commit a65d25c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions corpus/error.stray_identifier.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
=====================
Stray identifier before macro call
=====================

macro_rules! impl_pred {}

// TODO
i
impl_pred!(foo, bar);

---

(source_file
(macro_definition name:
(identifier))
(line_comment)
(macro_invocation macro:
(identifier)
(ERROR
(identifier))
(token_tree
(identifier)
(identifier))))

0 comments on commit a65d25c

Please sign in to comment.