| File src/ts/lua/TSLuaLanguage.cpp changed (mode: 100644) (index 5d430da..3f84869) |
| ... |
... |
TsLuaLanguage::TsLuaLanguage() : tsLanguage(*tree_sitter_lua()) |
| 69 |
69 |
|
|
| 70 |
70 |
{ "function_body", +TSLuaSType::FunctionBody }, |
{ "function_body", +TSLuaSType::FunctionBody }, |
| 71 |
71 |
{ "function_definition", +TSLuaSType::FunctionDefinition }, |
{ "function_definition", +TSLuaSType::FunctionDefinition }, |
|
72 |
|
{ "function_definition_signature", |
|
73 |
|
+TSLuaSType::FunctionDefinitionSignature }, |
| 72 |
74 |
|
|
| 73 |
75 |
{ "local_variable_declaration", +TSLuaSType::LocalVariableDeclaration }, |
{ "local_variable_declaration", +TSLuaSType::LocalVariableDeclaration }, |
| 74 |
76 |
{ "variable", +TSLuaSType::Variable }, |
{ "variable", +TSLuaSType::Variable }, |
| |
| ... |
... |
TsLuaLanguage::shouldSplice(SType parent, const Node *childNode) const |
| 276 |
278 |
bool |
bool |
| 277 |
279 |
TsLuaLanguage::isValueNode(SType stype) const |
TsLuaLanguage::isValueNode(SType stype) const |
| 278 |
280 |
{ |
{ |
| 279 |
|
return -stype == TSLuaSType::ConditionExpression; |
|
|
281 |
|
return -stype == TSLuaSType::ConditionExpression |
|
282 |
|
|| -stype == TSLuaSType::FunctionDefinitionSignature; |
| 280 |
283 |
} |
} |
| 281 |
284 |
|
|
| 282 |
285 |
bool |
bool |
| |
| ... |
... |
TsLuaLanguage::toString(SType stype) const |
| 382 |
385 |
CASE(ForNumericStatement); |
CASE(ForNumericStatement); |
| 383 |
386 |
CASE(FunctionBody); |
CASE(FunctionBody); |
| 384 |
387 |
CASE(FunctionDefinition); |
CASE(FunctionDefinition); |
|
388 |
|
CASE(FunctionDefinitionSignature); |
| 385 |
389 |
CASE(FunctionDefinitionStatement); |
CASE(FunctionDefinitionStatement); |
| 386 |
390 |
CASE(GotoStatement); |
CASE(GotoStatement); |
| 387 |
391 |
CASE(IfStatement); |
CASE(IfStatement); |