Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ grammars = [
"tree-sitter-typescript",
"tree-sitter-rust",
"tree-sitter-python",
# Issue #198: 5 new languages
"tree-sitter-go",
"tree-sitter-java",
"tree-sitter-php",
"tree-sitter-ruby",
"tree-sitter-c",
"tree-sitter-cpp",
]
watch = [
"watchdog",
Expand Down
135 changes: 135 additions & 0 deletions scripts/languages/node_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,138 @@ css:
html:
attribute:
- attribute

# ─── Go (issue #198) ────────────────────────────────────────────────
go:
function_def:
- function_declaration
- method_declaration
class_def:
- struct_type
- interface_type
import:
- import_declaration
call:
- call_expression
type_alias:
- type_declaration
const:
- const_declaration
- var_declaration
identifier:
- identifier
- field_identifier
- package_identifier
- selector_expression

# ─── Java (issue #198) ──────────────────────────────────────────────
java:
function_def:
- method_declaration
- constructor_declaration
class_def:
- class_declaration
- interface_declaration
- enum_declaration
- record_declaration
import:
- import_declaration
call:
- method_invocation
annotation:
- annotation
- marker_annotation
field:
- field_declaration
identifier:
- identifier
- scoped_identifier
- field_access

# ─── PHP (issue #198) ───────────────────────────────────────────────
php:
function_def:
- function_definition
- method_declaration
class_def:
- class_declaration
- interface_declaration
- trait_declaration
import:
- include_expression
- require_expression
- use_declaration
call:
- function_call_expression
- method_call_expression
namespace:
- namespace_declaration
identifier:
- name
- scoped_call_expression
- member_access_expression

# ─── Ruby (issue #198) ──────────────────────────────────────────────
ruby:
function_def:
- method
- singleton_method
class_def:
- class
- module
import:
- require
- require_relative
call:
- call
identifier:
- identifier
- constant
- scope_resolution

# ─── C (issue #198) ─────────────────────────────────────────────────
c:
function_def:
- function_definition
class_def:
- struct_specifier
- union_specifier
- enum_specifier
import:
- preproc_include
call:
- call_expression
type_alias:
- type_definition
identifier:
- identifier
- field_identifier
- type_identifier

# ─── C++ (issue #198) ───────────────────────────────────────────────
cpp:
function_def:
- function_definition
class_def:
- class_specifier
- struct_specifier
- union_specifier
- enum_specifier
import:
- preproc_include
- using_declaration
call:
- call_expression
namespace:
- namespace_definition
template:
- template_declaration
type_alias:
- type_alias_declaration
- type_definition
identifier:
- identifier
- field_identifier
- type_identifier
- qualified_identifier
- scoped_identifier
Loading