Bump tree-sitter-mozcpp to v0.17 (#540)

This commit is contained in:
Luni-4 2021-03-11 14:05:38 +01:00 коммит произвёл GitHub
Родитель 324f334a49
Коммит 33264d3edf
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
11 изменённых файлов: 308113 добавлений и 313251 удалений

2
Cargo.lock сгенерированный
Просмотреть файл

@ -2232,7 +2232,7 @@ dependencies = [
[[package]]
name = "tree-sitter-mozcpp"
version = "0.16.0"
version = "0.17.0"
dependencies = [
"cc",
"tree-sitter 0.17.1",

Просмотреть файл

@ -34,7 +34,7 @@ tree-sitter = "^0.17"
tree-sitter-java = "^0.16"
tree-sitter-preproc = { path = "./tree-sitter-preproc", version = "^0.17" }
tree-sitter-ccomment = { path = "./tree-sitter-ccomment", version = "^0.17" }
tree-sitter-mozcpp = { path = "./tree-sitter-mozcpp", version = "^0.16" }
tree-sitter-mozcpp = { path = "./tree-sitter-mozcpp", version = "^0.17" }
tree-sitter-mozjs = { path = "./tree-sitter-mozjs", version = "^0.17" }
[dev-dependencies]

2
enums/Cargo.lock сгенерированный
Просмотреть файл

@ -526,7 +526,7 @@ dependencies = [
[[package]]
name = "tree-sitter-mozcpp"
version = "0.16.0"
version = "0.17.0"
dependencies = [
"cc",
"tree-sitter 0.17.1",

Просмотреть файл

@ -20,5 +20,5 @@ tree-sitter = "^0.17"
tree-sitter-java = "^0.16"
tree-sitter-preproc = { path = "../tree-sitter-preproc", version = "^0.17" }
tree-sitter-ccomment = { path = "../tree-sitter-ccomment", version = "^0.17" }
tree-sitter-mozcpp = { path = "../tree-sitter-mozcpp" }
tree-sitter-mozcpp = { path = "../tree-sitter-mozcpp", version = "^0.17" }
tree-sitter-mozjs = { path = "../tree-sitter-mozjs", version = "^0.17" }

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,7 +1,7 @@
[package]
name = "tree-sitter-mozcpp"
description = "Mozcpp grammar for the tree-sitter parsing library"
version = "0.16.0"
version = "0.17.0"
authors = ["Calixte Denizet <cdenizet@mozilla.com>"]
license = "MIT"
readme = "bindings/rust/README.md"

Просмотреть файл

@ -0,0 +1,55 @@
{
"name": "tree-sitter-mozcpp",
"version": "0.17.0",
"description": "Mozcpp grammar for node-tree-sitter",
"main": "index.js",
"keywords": [
"parser",
"lexer"
],
"author": "Calixte Denizet",
"license": "MIT",
"dependencies": {
"nan": "^2.14.2"
},
"devDependencies": {
"tree-sitter-cli": "^0.17.3"
},
"scripts": {
"build": "tree-sitter generate && node-gyp build",
"test": "tree-sitter test && tree-sitter parse examples/* --quiet --time",
"test-windows": "tree-sitter test",
"install": "node-gyp rebuild"
},
"tree-sitter": [
{
"scope": "source.cpp",
"file-types": [
"cpp",
"cx",
"cxx",
"cc",
"hxx",
"hpp",
"c",
"h",
"hh",
"inc",
"mm",
"m"
]
}
],
"gypfile": true,
"directories": {
"example": "examples"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tree-sitter/tree-sitter-cpp.git"
},
"bugs": {
"url": "https://github.com/tree-sitter/tree-sitter-cpp/issues"
},
"homepage": "https://github.com/tree-sitter/tree-sitter-cpp#readme"
}

Просмотреть файл

@ -8002,7 +8002,7 @@
},
{
"type": "PATTERN",
"value": "[^*]*\\*+([^\\/*][^*]*\\*+)*"
"value": "[^*]*\\*+([^/*][^*]*\\*+)*"
},
{
"type": "STRING",
@ -8413,6 +8413,15 @@
"type": "SYMBOL",
"name": "function_definition"
},
{
"type": "ALIAS",
"content": {
"type": "SYMBOL",
"name": "constructor_or_destructor_declaration"
},
"named": true,
"value": "declaration"
},
{
"type": "ALIAS",
"content": {
@ -8422,6 +8431,15 @@
"named": true,
"value": "function_definition"
},
{
"type": "ALIAS",
"content": {
"type": "SYMBOL",
"name": "operator_cast_declaration"
},
"named": true,
"value": "declaration"
},
{
"type": "ALIAS",
"content": {
@ -9056,65 +9074,59 @@
}
]
},
"_constructor_specifiers": {
"type": "REPEAT1",
"content": {
"type": "PREC_RIGHT",
"value": 0,
"content": {
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "storage_class_specifier"
},
{
"type": "SYMBOL",
"name": "type_qualifier"
},
{
"type": "SYMBOL",
"name": "attribute_specifier"
},
{
"type": "SYMBOL",
"name": "virtual_function_specifier"
},
{
"type": "SYMBOL",
"name": "explicit_function_specifier"
}
]
}
}
},
"operator_cast_definition": {
"type": "SEQ",
"members": [
{
"type": "REPEAT",
"content": {
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "storage_class_specifier"
},
{
"type": "SYMBOL",
"name": "type_qualifier"
},
{
"type": "SYMBOL",
"name": "attribute_specifier"
}
]
}
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "_constructor_specifiers"
},
{
"type": "BLANK"
}
]
},
{
"type": "PREC",
"value": 1,
"type": "FIELD",
"name": "declarator",
"content": {
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "virtual_function_specifier"
},
{
"type": "SYMBOL",
"name": "explicit_function_specifier"
}
]
},
{
"type": "BLANK"
}
]
},
{
"type": "FIELD",
"name": "declarator",
"content": {
"type": "SYMBOL",
"name": "operator_cast"
}
}
]
"type": "SYMBOL",
"name": "operator_cast"
}
},
{
@ -9141,23 +9153,72 @@
]
},
"operator_cast_declaration": {
"type": "PREC",
"value": 1,
"content": {
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "_constructor_specifiers"
},
{
"type": "BLANK"
}
]
},
{
"type": "FIELD",
"name": "declarator",
"content": {
"type": "SYMBOL",
"name": "operator_cast"
}
},
{
"type": "CHOICE",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "="
},
{
"type": "FIELD",
"name": "default_value",
"content": {
"type": "SYMBOL",
"name": "_expression"
}
}
]
},
{
"type": "BLANK"
}
]
},
{
"type": "STRING",
"value": ";"
}
]
}
},
"constructor_or_destructor_definition": {
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "virtual_function_specifier"
},
{
"type": "SYMBOL",
"name": "explicit_function_specifier"
}
]
"type": "SYMBOL",
"name": "_constructor_specifiers"
},
{
"type": "BLANK"
@ -9169,113 +9230,21 @@
"name": "declarator",
"content": {
"type": "SYMBOL",
"name": "operator_cast"
"name": "function_declarator"
}
},
{
"type": "CHOICE",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "="
},
{
"type": "FIELD",
"name": "default_value",
"content": {
"type": "SYMBOL",
"name": "_expression"
}
}
]
"type": "SYMBOL",
"name": "field_initializer_list"
},
{
"type": "BLANK"
}
]
},
{
"type": "STRING",
"value": ";"
}
]
},
"constructor_or_destructor_definition": {
"type": "SEQ",
"members": [
{
"type": "REPEAT",
"content": {
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "storage_class_specifier"
},
{
"type": "SYMBOL",
"name": "type_qualifier"
},
{
"type": "SYMBOL",
"name": "attribute_specifier"
}
]
}
},
{
"type": "PREC",
"value": 1,
"content": {
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "virtual_function_specifier"
},
{
"type": "SYMBOL",
"name": "explicit_function_specifier"
}
]
},
{
"type": "BLANK"
}
]
},
{
"type": "FIELD",
"name": "declarator",
"content": {
"type": "SYMBOL",
"name": "function_declarator"
}
},
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "field_initializer_list"
},
{
"type": "BLANK"
}
]
}
]
}
},
{
"type": "CHOICE",
"members": [
@ -9306,17 +9275,8 @@
"type": "CHOICE",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "virtual_function_specifier"
},
{
"type": "SYMBOL",
"name": "explicit_function_specifier"
}
]
"type": "SYMBOL",
"name": "_constructor_specifiers"
},
{
"type": "BLANK"
@ -11650,8 +11610,13 @@
],
[
"_declaration_specifiers",
"operator_cast_declaration",
"operator_cast_definition",
"constructor_or_destructor_definition"
],
[
"_declaration_specifiers",
"_constructor_specifiers"
]
],
"externals": [

Просмотреть файл

@ -2442,7 +2442,7 @@
"named": true,
"fields": {
"designator": {
"multiple": false,
"multiple": true,
"required": true,
"types": [
{
@ -5678,6 +5678,10 @@
"type": "class",
"named": false
},
{
"type": "comment",
"named": true
},
{
"type": "const",
"named": false

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -35,6 +35,7 @@ typedef uint16_t TSStateId;
typedef struct {
bool visible : 1;
bool named : 1;
bool supertype: 1;
} TSSymbolMetadata;
typedef struct TSLexer TSLexer;
@ -119,6 +120,8 @@ struct TSLanguage {
const uint16_t *small_parse_table;
const uint32_t *small_parse_table_map;
const TSSymbol *public_symbol_map;
const uint16_t *alias_map;
uint32_t state_count;
};
/*