tree-sitter-matlab 1.2.5__tar.gz → 1.2.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/PKG-INFO +1 -1
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/bindings/python/tree_sitter_matlab.egg-info/PKG-INFO +1 -1
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/pyproject.toml +1 -1
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/src/scanner.c +6 -2
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/LICENSE +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/README.md +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/bindings/python/tree_sitter_matlab/__init__.py +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/bindings/python/tree_sitter_matlab/__init__.pyi +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/bindings/python/tree_sitter_matlab/binding.c +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/bindings/python/tree_sitter_matlab/py.typed +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/bindings/python/tree_sitter_matlab.egg-info/SOURCES.txt +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/bindings/python/tree_sitter_matlab.egg-info/dependency_links.txt +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/bindings/python/tree_sitter_matlab.egg-info/not-zip-safe +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/bindings/python/tree_sitter_matlab.egg-info/requires.txt +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/bindings/python/tree_sitter_matlab.egg-info/top_level.txt +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/emacs/highlights.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/emacs/textobjects.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/helix/context.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/helix/folds.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/helix/highlights.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/helix/indents.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/helix/injections.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/helix/locals.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/helix/textobjects.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/neovim/context.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/neovim/folds.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/neovim/highlights.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/neovim/indents.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/neovim/injections.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/neovim/locals.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/neovim/tags.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/queries/neovim/textobjects.scm +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/setup.cfg +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/setup.py +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/src/parser.c +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/src/tree_sitter/alloc.h +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/src/tree_sitter/array.h +0 -0
- {tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/src/tree_sitter/parser.h +0 -0
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tree-sitter-matlab"
|
|
7
7
|
description = "MATLAB tree-sitter parser"
|
|
8
|
-
version = "1.2.
|
|
8
|
+
version = "1.2.6"
|
|
9
9
|
keywords = ["incremental", "parsing", "tree-sitter", "matlab"]
|
|
10
10
|
classifiers = [
|
|
11
11
|
"Intended Audience :: Developers",
|
|
@@ -232,11 +232,15 @@ static bool scan_comment(TSLexer* lexer, bool entry_delimiter, bool ctranspose)
|
|
|
232
232
|
|
|
233
233
|
if (entry_delimiter && line_continuation) {
|
|
234
234
|
consume_whitespaces(lexer);
|
|
235
|
+
const bool is_alpha = iswalpha(lexer->lookahead);
|
|
236
|
+
const bool is_digit = iswdigit(lexer->lookahead);
|
|
237
|
+
const bool is_quote = lexer->lookahead == '\'' || lexer->lookahead == '"';
|
|
238
|
+
const bool is_container = lexer->lookahead == '{' || lexer->lookahead == '[';
|
|
235
239
|
if (lexer->lookahead == '.') {
|
|
236
240
|
lexer->mark_end(lexer);
|
|
237
241
|
advance(lexer);
|
|
238
|
-
lexer->result_symbol =
|
|
239
|
-
} else if (
|
|
242
|
+
lexer->result_symbol = is_digit ? ENTRY_DELIMITER : LINE_CONTINUATION;
|
|
243
|
+
} else if (is_alpha || is_digit || is_quote || is_container) {
|
|
240
244
|
lexer->result_symbol = ENTRY_DELIMITER;
|
|
241
245
|
} else {
|
|
242
246
|
lexer->result_symbol = LINE_CONTINUATION;
|
|
File without changes
|
|
File without changes
|
{tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/bindings/python/tree_sitter_matlab/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/bindings/python/tree_sitter_matlab/binding.c
RENAMED
|
File without changes
|
{tree_sitter_matlab-1.2.5 → tree_sitter_matlab-1.2.6}/bindings/python/tree_sitter_matlab/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|