Skip to content

Conversation

@kilo52
Copy link
Member

@kilo52 kilo52 commented Feb 5, 2026

Adds support for processing Python source files.

Signed-off-by: kilo52 <phil.gaiser@raven-computing.com>
@kilo52 kilo52 self-assigned this Feb 5, 2026
@kilo52 kilo52 added the Feature New feature label Feb 5, 2026
@kilo52 kilo52 linked an issue Feb 5, 2026 that may be closed by this pull request
Signed-off-by: kilo52 <phil.gaiser@raven-computing.com>
Signed-off-by: kilo52 <phil.gaiser@raven-computing.com>
Changed checking of expression statement node to avoid dynamic allocation.
The ts_node_string() allocates dynamic memory. It is replaced by a manual
node traversal to check whether the given AST node, which marks an expression
statement, has the following form:

(expression_statement (string (string_start) (string_content) (string_end)))

The above S-expression marks a Python docstring, which should not be counted
as a logical line, assigning node weight of zero.

Added missing symbol enumerators in SymbolIdentifiersPython.

Removed the constant S_EXPR_PY_DOCSTRING string.

Signed-off-by: kilo52 <phil.gaiser@raven-computing.com>
@kilo52 kilo52 merged commit 2a28c55 into master Feb 7, 2026
22 checks passed
@kilo52 kilo52 deleted the feature/format-python branch February 8, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Format Support for Python

1 participant