This commit is contained in:
Maieul BOYER 2024-06-30 18:38:19 +02:00
parent 1417259865
commit c7fe19a7d5
No known key found for this signature in database
51 changed files with 18 additions and 18 deletions

11
parser/src/error_costs.h Normal file
View file

@ -0,0 +1,11 @@
#ifndef TREE_SITTER_ERROR_COSTS_H_
#define TREE_SITTER_ERROR_COSTS_H_
#define ERROR_STATE 0
#define ERROR_COST_PER_RECOVERY 500
#define ERROR_COST_PER_MISSING_TREE 110
#define ERROR_COST_PER_SKIPPED_TREE 100
#define ERROR_COST_PER_SKIPPED_LINE 30
#define ERROR_COST_PER_SKIPPED_CHAR 1
#endif