Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
307d6d2
chore: Require trailing commas for linting
ZedThree Jan 7, 2026
d2110bb
Fix allowing multiple attributes in `variable_modification`
ZedThree Jan 7, 2026
0548590
Fix allowing `public` and more general `private` statements in types
ZedThree Jan 7, 2026
36d48ab
Merge pull request #171 from stadelmanma/small-fixes
stadelmanma Jan 7, 2026
e1a9901
Add separate rule association_list
mscfd Jan 3, 2026
0063344
Merge pull request #173 from mscfd/assoc_list
ZedThree Jan 8, 2026
1429c79
Make default clause in select statements consistent
mscfd Jan 7, 2026
eb4ef08
Remove unused `_class_default` rule
ZedThree Jan 8, 2026
589151a
Merge pull request #174 from mscfd/select_default_clause
ZedThree Jan 8, 2026
36ad745
chore: Bump tree-sitter to 0.26.3
ZedThree Jan 9, 2026
ff07b7a
chore: Mark generated files with `linguist-generated`
ZedThree Jan 9, 2026
4e797da
ci: Bump tree-sitter action
ZedThree Jan 9, 2026
43cd127
Merge pull request #176 from stadelmanma/bump-ts-0.26
stadelmanma Jan 18, 2026
ab20774
Make rule method_name an anonymous rule
mscfd Jan 7, 2026
2db47c8
Add extra rules for generic and final statements
mscfd Jan 3, 2026
ff8751e
Add _procedure_binding to supertypes
mscfd Jan 8, 2026
30d1b0d
Merge pull request #175 from mscfd/derived_type_proc
ZedThree Feb 10, 2026
8eaf510
Make indentation offset in src/scanner.c consistent
mscfd Jan 12, 2026
7c6aae8
Refactor scan_int
mscfd Jan 15, 2026
7a7f3a2
Extend scan_number to return parsed value
mscfd Jan 15, 2026
bf59ca1
Extend scanner and grammar for labeled do
mscfd Jan 10, 2026
540205a
Allow action statements to close do-label statements
ZedThree Feb 12, 2026
f7572ff
Allow block labels in old-style labeled do
mscfd Feb 12, 2026
32fe27e
Merge pull request #178 from mscfd/do_label_block
ZedThree Feb 13, 2026
5ab4e75
Complement rules to handle "end" of structure types
mscfd Jan 8, 2026
6afd8cb
Refine the blockStructureEnding functions
mscfd Jan 9, 2026
c2528b2
Replace original blockStructureEnding
mscfd Jan 14, 2026
a4044a7
Fix _end_of_statement in end_xyz_statement rules
mscfd Jan 22, 2026
7f326b4
Simplify blockStructureEnding functions
mscfd Feb 13, 2026
a6bb529
Add testcases for block data construct
mscfd Feb 13, 2026
45701c5
Require blanks between end enumeration type
mscfd Feb 13, 2026
d34ce6c
Allow statement_label at some end statements
mscfd Feb 13, 2026
226d28c
Merge pull request #182 from mscfd/end_struct_type
ZedThree Feb 17, 2026
d6bb843
Expose queries for highlights, injections, locals, and tags in Rust
hmenke Feb 16, 2026
2880b7a
Merge pull request #183 from hmenke/patch-1
ZedThree Feb 17, 2026
c1ec2f1
Add rank(*) to rank_statement
mscfd Mar 18, 2026
be30d90
Merge pull request #187 from mscfd/select_rank_star
ZedThree Mar 20, 2026
d6699f2
Check bounds when accesing last element of stack
d-alonso Apr 10, 2026
a8638eb
Merge pull request #190 from codee-com/fixArrayIndex
ZedThree Apr 13, 2026
381f1b4
Merge tree-sitter-fortran/master
d-alonso Apr 14, 2026
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
2 changes: 2 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ globals:
seq: false
token: false
word: false

comma-dangle: always
39 changes: 38 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,39 @@
/src/** linguist-vendored
* text=auto eol=lf

# Generated source files
src/*.json linguist-generated
src/parser.c linguist-generated
src/tree_sitter/* linguist-generated

# C bindings
bindings/c/* linguist-generated
CMakeLists.txt linguist-generated
Makefile linguist-generated

# Rust bindings
bindings/rust/* linguist-generated
Cargo.toml linguist-generated
Cargo.lock linguist-generated

# Node.js bindings
bindings/node/* linguist-generated
binding.gyp linguist-generated
package.json linguist-generated
package-lock.json linguist-generated

# Python bindings
bindings/python/** linguist-generated
setup.py linguist-generated
pyproject.toml linguist-generated

# Go bindings
bindings/go/* linguist-generated
go.mod linguist-generated
go.sum linguist-generated

# Swift bindings
bindings/swift/** linguist-generated
Package.swift linguist-generated
Package.resolved linguist-generated

/examples/* linguist-vendored
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up tree-sitter
uses: tree-sitter/setup-action/cli@v1
uses: tree-sitter/setup-action@v2
with:
tree-sitter-ref: v0.25.6
tree-sitter-ref: v0.26.3
- name: Run tests
uses: tree-sitter/parser-test-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion bindings/rust/lib.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion codee/patches/0001-Add-TypeScript-source-annotation.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Subject: Add TypeScript source annotation
1 file changed, 6 insertions(+)

diff --git a/grammar.js b/grammar.js
index 8b9f384..4f84bdb 100644
index 0d10694..82d6070 100644
--- a/grammar.js
+++ b/grammar.js
@@ -14,6 +14,12 @@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ so they don't show as unnamed children of `identifier`s nodes.
2 files changed, 96 insertions(+), 65 deletions(-)

diff --git a/grammar.js b/grammar.js
index 4f84bdb..bd68a65 100644
index 82d6070..e85449a 100644
--- a/grammar.js
+++ b/grammar.js
@@ -2292,71 +2292,71 @@ module.exports = grammar({
@@ -2341,71 +2341,71 @@ module.exports = grammar({
// add the keywords here -- and possibly in `conflicts` too.
identifier: $ => choice(
/[a-zA-Z_$][\w$]*/,
Expand Down
46 changes: 23 additions & 23 deletions codee/patches/0003-Add-semantic-accessors.patch
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ Subject: Add semantic accessors
6 files changed, 36 insertions(+), 23 deletions(-)

diff --git a/grammar.js b/grammar.js
index bd68a65..1289710 100644
index e85449a..9b6029f 100644
--- a/grammar.js
+++ b/grammar.js
@@ -305,7 +305,11 @@ module.exports = grammar({
$.end_program_statement
@@ -311,7 +311,11 @@ module.exports = grammar({
$._end_of_statement
),

- program_statement: $ => seq(caseInsensitive('program'), $._name, $._end_of_statement),
Expand All @@ -26,11 +26,11 @@ index bd68a65..1289710 100644
+ field('name', $._name),
+ $._end_of_statement
+ ),
end_program_statement: $ => blockStructureEnding($, 'program'),
end_program_statement: $ => blockStructureEnding1($, 'program', $._name),

module: $ => seq(
@@ -321,7 +325,11 @@ module.exports = grammar({
$.end_module_statement
@@ -328,7 +332,11 @@ module.exports = grammar({
$._end_of_statement
),

- module_statement: $ => seq(caseInsensitive('module'), $._name, $._end_of_statement),
Expand All @@ -39,19 +39,19 @@ index bd68a65..1289710 100644
+ field('name', $._name),
+ $._end_of_statement
+ ),
end_module_statement: $ => blockStructureEnding($, 'module'),
end_module_statement: $ => blockStructureEnding1($, 'module', $._name),

submodule: $ => seq(
@@ -345,7 +353,7 @@ module.exports = grammar({
@@ -353,7 +361,7 @@ module.exports = grammar({
':', field('parent', $.module_name)
)),
')',
- $._name,
+ field('name', $._name),
$._end_of_statement,
),
end_submodule_statement: $ => blockStructureEnding($, 'submodule'),
@@ -377,7 +385,7 @@ module.exports = grammar({
end_submodule_statement: $ => blockStructureEnding1($, 'submodule', $._name),
@@ -386,7 +394,7 @@ module.exports = grammar({
interface_statement: $ => seq(
optional($.abstract_specifier),
caseInsensitive('interface'),
Expand All @@ -60,7 +60,7 @@ index bd68a65..1289710 100644
$._end_of_statement,
),

@@ -771,8 +779,13 @@ module.exports = grammar({
@@ -772,8 +780,13 @@ module.exports = grammar({
optional($.statement_label),
caseInsensitive('type'),
choice(
Expand All @@ -76,7 +76,7 @@ index bd68a65..1289710 100644
),
optional(alias($.argument_list, $.derived_type_parameter_list)),
$._end_of_statement,
@@ -2059,7 +2072,7 @@ module.exports = grammar({
@@ -2111,7 +2124,7 @@ module.exports = grammar({
// precedence is used to prevent conflict with assignment expression
keyword_argument: $ => prec(1, seq(
field("name",$.identifier),
Expand All @@ -86,10 +86,10 @@ index bd68a65..1289710 100644
)),

diff --git a/test/corpus/constructs.txt b/test/corpus/constructs.txt
index ab165f0..9b2eccb 100644
index 6c43d2f..ea76986 100644
--- a/test/corpus/constructs.txt
+++ b/test/corpus/constructs.txt
@@ -988,12 +988,12 @@ end program
@@ -983,12 +983,12 @@ end program
(translation_unit
(program
(program_statement
Expand All @@ -104,7 +104,7 @@ index ab165f0..9b2eccb 100644
(end_type_statement
(name)))
(derived_type_definition
@@ -1001,7 +1001,7 @@ end program
@@ -996,7 +996,7 @@ end program
access: (access_specifier)
base: (base_type_specifier
(identifier))
Expand Down Expand Up @@ -145,7 +145,7 @@ index 63781fa..cf7f6c4 100644
left: (identifier)
right: (call_expression
diff --git a/test/corpus/preprocessor.txt b/test/corpus/preprocessor.txt
index d9dd3a3..a42ff39 100644
index 2b9de62..0d9b717 100644
--- a/test/corpus/preprocessor.txt
+++ b/test/corpus/preprocessor.txt
@@ -453,7 +453,7 @@ end program
Expand All @@ -157,7 +157,7 @@ index d9dd3a3..a42ff39 100644
(use_statement
(module_name)
(included_items
@@ -541,7 +541,7 @@ end module foo
@@ -540,7 +540,7 @@ end module foo
(translation_unit
(module
(module_statement
Expand All @@ -166,7 +166,7 @@ index d9dd3a3..a42ff39 100644
(internal_procedures
(contains_statement)
(subroutine
@@ -591,7 +591,7 @@ end module foo
@@ -590,7 +590,7 @@ end module foo
(translation_unit
(module
(module_statement
Expand All @@ -175,7 +175,7 @@ index d9dd3a3..a42ff39 100644
(internal_procedures
(contains_statement)
(subroutine
@@ -651,7 +651,7 @@ end module foo
@@ -650,7 +650,7 @@ end module foo
(translation_unit
(module
(module_statement
Expand All @@ -198,7 +198,7 @@ index fc47bf1..1af946a 100644
left: (call_expression
(identifier)
diff --git a/test/corpus/statements.txt b/test/corpus/statements.txt
index 2065d4f..96bef40 100644
index 0df6bfe..613be42 100644
--- a/test/corpus/statements.txt
+++ b/test/corpus/statements.txt
@@ -289,7 +289,7 @@ END PROGRAM
Expand All @@ -219,7 +219,7 @@ index 2065d4f..96bef40 100644
(variable_declaration
type: (intrinsic_type)
attribute: (type_qualifier
@@ -1987,7 +1987,7 @@ END PROGRAM test
@@ -2112,7 +2112,7 @@ END PROGRAM test
(translation_unit
(program
(program_statement
Expand All @@ -228,7 +228,7 @@ index 2065d4f..96bef40 100644
(enum
(enum_statement
(language_binding
@@ -2748,7 +2748,7 @@ end program test
@@ -2893,7 +2893,7 @@ end program test
(translation_unit
(program
(program_statement
Expand All @@ -237,7 +237,7 @@ index 2065d4f..96bef40 100644
(allocate_statement
allocation: (sized_allocation
(identifier)
@@ -3536,7 +3536,7 @@ end program
@@ -3681,7 +3681,7 @@ end program
(translation_unit
(program
(program_statement
Expand Down
Loading