Fix for nvim-treesitter integration:

- Change name 'CMake' to 'cmake'
- Regenerate from grammar
This commit is contained in:
Uy Ha 2021-05-28 10:33:07 +02:00
parent 509f73b2de
commit 4076762484
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
module.exports = grammar({ module.exports = grammar({
name: 'CMake', name: 'cmake',
rules: { rules: {
source_file: $ => repeat($.command_invocation), source_file: $ => repeat($.command_invocation),

View file

@ -1,5 +1,5 @@
{ {
"name": "CMake", "name": "cmake",
"rules": { "rules": {
"source_file": { "source_file": {
"type": "REPEAT", "type": "REPEAT",

View file

@ -2204,7 +2204,7 @@ extern "C" {
#define extern __declspec(dllexport) #define extern __declspec(dllexport)
#endif #endif
extern const TSLanguage *tree_sitter_CMake(void) { extern const TSLanguage *tree_sitter_cmake(void) {
static const TSLanguage language = { static const TSLanguage language = {
.version = LANGUAGE_VERSION, .version = LANGUAGE_VERSION,
.symbol_count = SYMBOL_COUNT, .symbol_count = SYMBOL_COUNT,