Add golang example grammar

Also, support '\a' character class shorthand in regexes,
for alphabetical characters
This commit is contained in:
Max Brunsfeld 2014-03-29 16:29:34 -07:00
parent 13c4e6e648
commit 7adb0bf34f
10 changed files with 4044 additions and 1015 deletions

View file

@ -11,6 +11,7 @@ namespace tree_sitter_examples {
extern const Grammar arithmetic;
extern const Grammar javascript;
extern const Grammar json;
extern const Grammar golang;
}
START_TEST
@ -29,6 +30,7 @@ describe("compiling the example grammars", []() {
compile_grammar(tree_sitter_examples::arithmetic, "arithmetic");
compile_grammar(tree_sitter_examples::json, "json");
compile_grammar(tree_sitter_examples::javascript, "javascript");
compile_grammar(tree_sitter_examples::golang, "golang");
});
END_TEST