Add golang example grammar
Also, support '\a' character class shorthand in regexes, for alphabetical characters
This commit is contained in:
parent
13c4e6e648
commit
7adb0bf34f
10 changed files with 4044 additions and 1015 deletions
|
|
@ -123,7 +123,7 @@ namespace tree_sitter_examples {
|
|||
{ "false", str("false") },
|
||||
|
||||
{ "string", pattern("\"([^\"]|\\\\\")+\"") },
|
||||
{ "identifier", pattern("[\\w_$]+") },
|
||||
{ "identifier", pattern("\\a[\\w_$]*") },
|
||||
{ "number", pattern("\\d+(.\\d+)?") },
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue