Commit Graph

15201 Commits (97dbc9b018223c4d9bae7d76d2e34640ade7cf25)
 

Author SHA1 Message Date
Amaan Qureshi aa79a170c6 fix: specifier and virtual do not strictly require each other 2024-04-14 16:03:44 +07:00
Eugene Yokota 16a7075940 Add RefChecks.scala as differential test 2024-04-14 14:36:39 +07:00
Eugene Yokota 91529e9157 Exclude colon, at, and equal from single opchar
**Problem**
Currently operator_identifier includes characters
like colon at and equal even though they cannot be a legal
operator without backticks.
Having equal etc pushes tree-sitter into thinking some
construct to be an infix operation when they are `=`.

Another compilication is Unicode Math symbols,
which includes equal sign.

**Solution**
Remove colon, at, equal sign, and Math symbols from the
single-char operator_identifier.
This adds back back a few Math symbol unicodes.
2024-04-14 14:08:25 +07:00
Nikolaj Sidorenco 5759834b95
grammar cleanup 2024-04-14 17:03:43 +07:00
Amaan Qureshi f79b9d9859
fix(scanner): only call memcpy if `length` is greater than 0 2024-04-11 21:23:17 +07:00
Wilfred Hughes f52ca706f3 Enable --strip-cr by default
Line ending differences between input files often leads to confusing
diffs, so remove carriage returns unless explicitly requested.

Fixes #653
Fixes #696
2024-04-09 08:37:41 +07:00
Amaan Qureshi eb68645662
fix: rename highlights query constant 2024-04-08 18:09:12 +07:00
Nikolaj Sidorenco 4974d1e3c5
fix optional parameters 2024-04-08 21:37:19 +07:00
Nikolaj Sidorenco 6adabb9344
fix call expression 2024-04-08 19:38:01 +07:00
Nikolaj Sidorenco a3c34da73f
refine index expression 2024-04-08 19:27:41 +07:00
Nikolaj Sidorenco c40f27426a
update readme 2024-04-08 19:18:18 +07:00
Nikolaj Sidorenco 904371ad50
update highlight queries 2024-04-08 17:54:08 +07:00
Nikolaj Sidorenco 4a235170c5
extend highlight queries 2024-04-08 17:54:06 +07:00
dependabot[bot] 8e9ab7232a
Bump eslint from 8.57.0 to 9.0.0 (#45) 2024-04-08 15:52:50 +07:00
Adelar da Silva Queiróz 97b87a5e05
fix: fixes scanner.c file name (#44) 2024-04-08 17:50:52 +07:00
Ivan Kuchin 287ddd7b42 Much shorter version of dlog alias
Use `-c` to set config instead of environment variable, so no need for building shell command
2024-04-08 08:39:49 +07:00
Wilfred Hughes 148ccf8be0 Add logos to homepage 2024-04-07 16:23:03 +07:00
Wilfred Hughes bca6da38ce Improve wording 2024-04-07 15:56:45 +07:00
Wilfred Hughes b40e744a32 Clarify headings on internals pages 2024-04-07 15:55:49 +07:00
Wilfred Hughes a7e2a3914f Add favicon for manual 2024-04-07 15:54:29 +07:00
Amaan Qureshi 5c0024cfbb ci: update workflows 2024-04-07 13:36:40 +07:00
Amaan Qureshi 174bc4405b build: updating bindings and versions 2024-04-07 13:36:40 +07:00
Amaan Qureshi cb83456794 chore: generate 2024-04-07 13:36:40 +07:00
Amaan Qureshi b82ab803d8 refactor!: rework type parameters and interface type elements 2024-04-07 13:36:40 +07:00
Amaan Qureshi e395081ba9 feat: support type instantiation expressions 2024-04-07 13:36:40 +07:00
Amaan Qureshi 1aafaff4d2
build: update bindings 2024-04-07 02:34:11 +07:00
Amaan Qureshi 04a59ee59f
ci: add dependabot 2024-04-07 01:48:43 +07:00
Amaan Qureshi 036537490b
fix(build): repo url & pyproject authors 2024-04-07 01:22:15 +07:00
Nikolaj Sidorenco 6e246e0fc1
update attributes 2024-04-06 00:00:31 +07:00
Nikolaj Sidorenco 5bd51ae824
add skipped tests 2024-04-05 23:51:57 +07:00
Nikolaj Sidorenco 769fe49244
feat: type definition highlighting 2024-04-05 23:12:39 +07:00
Nikolaj Sidorenco 70239a9ae4
feat: add expr<types> 2024-04-05 23:07:59 +07:00
Nikolaj Sidorenco 59c8537a5f
feat: enable global namespaces 2024-04-05 17:55:45 +07:00
Nikolaj Sidorenco 54c22a37bd
feat: add try-with-finally expressions 2024-04-05 17:47:52 +07:00
Amaan Qureshi 5c3ab3a9ef
chore: rename publish workflow 2024-04-05 08:52:57 +07:00
Amaan Qureshi a22761025c
chore: rename publish workflow 2024-04-05 08:52:41 +07:00
ObserverOfTime d33e20be29 ci: update workflows 2024-04-05 08:27:35 +07:00
Valentin Touzeau ff7f769c2d fix: correctly handle preproc alternatives
This commit merges functions "elseBlock" and "elifBlock" in a single
function "alternativeBlock". Any call to either function is replaced by
a call to "alternativeBlock", which cover all alternatives (elif,
elifdef and else). The goal is twofold:

1) Correct the grammar to allow all kind of alternatives independently
   of the "if" directive. Before the fix, "#if" alternative was
   generated by elseBlock only, and thus disallow "#elifdef" as a
   follow-up.
2) As a side effect, simplify the parser.
2024-04-04 20:56:39 +07:00
Nikolaj Sidorenco cbb64ce72c
enable skipped test 2024-04-04 23:26:32 +07:00
dependabot[bot] ddadc6e540
Bump node-addon-api from 7.1.0 to 8.0.0 (#43) 2024-04-04 21:26:15 +07:00
Nikolaj Sidorenco 77e36cf6f4
update ci 2024-04-04 23:20:52 +07:00
Nikolaj Sidorenco 3ed6706605
update ci 2024-04-04 23:19:30 +07:00
Nikolaj Sidorenco 1cd1f3db52
update ci 2024-04-04 23:17:02 +07:00
Nikolaj Sidorenco c945506563
regenerate bindings 2024-04-04 23:10:58 +07:00
Nikolaj Sidorenco 6b6a31c81f
fix: linting errors 2024-04-04 23:06:33 +07:00
Nikolaj Sidorenco c531ceb027
fix: linting errors 2024-04-04 23:00:59 +07:00
Nikolaj Sidorenco e1a5015ccd
fix: linting errors 2024-04-04 22:54:01 +07:00
Nikolaj Sidorenco 33b88d9b17
fix: correctly consume else branch in if-statement
Closes #27
2024-04-04 22:43:59 +07:00
Amaan Qureshi d0b4e006ca
chore: generate 2024-04-04 15:29:35 +07:00
ObserverOfTime 8a64c2d6dd feat(scanner): use alloc header 2024-04-04 15:23:34 +07:00