Make separate types for syntax and lexical grammars
This way, the separator characters can be added as a field to lexical grammars only
This commit is contained in:
parent
d5674d33c4
commit
7df35f9b8d
49 changed files with 467 additions and 395 deletions
|
|
@ -191,5 +191,7 @@ namespace tree_sitter_examples {
|
|||
{ "null", keyword("null") },
|
||||
{ "true", keyword("true") },
|
||||
{ "false", keyword("false") },
|
||||
}).ubiquitous_tokens({ "comment" });
|
||||
})
|
||||
.ubiquitous_tokens({ "comment" })
|
||||
.separators({ ' ', '\t', '\r' });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue