Fix missing symbol names for keywords
This commit is contained in:
parent
3e0debf814
commit
10d3801d7e
3 changed files with 25 additions and 20 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include "compiler/rules/visitor.h"
|
||||
#include "compiler/rules/pattern.h"
|
||||
#include "compiler/rules/string.h"
|
||||
#include "compiler/rules/metadata.h"
|
||||
|
||||
namespace tree_sitter {
|
||||
using std::string;
|
||||
|
|
@ -16,6 +17,10 @@ namespace tree_sitter {
|
|||
string apply_to(const rules::String *rule) {
|
||||
return "'" + rule->value + "'";
|
||||
}
|
||||
|
||||
string apply_to(const rules::Metadata *rule) {
|
||||
return apply(rule->rule);
|
||||
}
|
||||
};
|
||||
|
||||
std::string token_description(const rules::rule_ptr &rule) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue