Jonáš Dujava
f23cf647fb
Implement *Copy macros for commands/environments ( #154 )
...
This completes the implementation of all command/environment
definition macros which are provided by LaTeX kernel and
described in https://ctan.org/pkg/usrguide .
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-27 22:14:14 +07:00
Stephan Klinger
7bc92290d1
Fix typo
2024-07-26 21:30:46 +07:00
Wilfred Hughes
5a51c02157
Fix crash when the last hunk includes the trailing newline at EOF
...
Input cleaning should happen before we diff the content, not during
display. Previously display would crash due to line numbers
referencing the line that had been stripped.
Fixes #713
Fixes #739
Fixes #742
2024-07-26 08:54:20 +07:00
Patrick Förster
f074e142ad
Fix branch name in grammar size CI job ( #158 )
2024-07-26 16:51:10 +07:00
Patrick Förster
f567ce7863
Compare LARGE_STATE_COUNT change in CI ( #153 )
2024-07-24 20:59:02 +07:00
Jonáš Dujava
7ee50b2868
Reorder and refactor code ( #152 )
...
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-24 16:33:35 +07:00
Wilfred Hughes
954979b19f
Merge pull request #659 from hugo-vrijswijk/update-scala-treesitter
...
update scala treesitter
2024-07-23 07:08:49 +07:00
Hugo van Rijswijk
df76ea2369
Update compare result
2024-07-23 12:55:49 +07:00
Hugo van Rijswijk
20db4283e7
Merge commit 'a13f2d1ee9609cc5c4c8ffce9640c353b77a24d8'
...
# Conflicts:
# vendored_parsers/tree-sitter-scala/queries/scala/highlights.scm
2024-07-23 12:49:30 +07:00
Jonáš Dujava
6706f88d5b
Better color reference ( #151 )
...
- add `\mathcolor`
- support directly passing color scheme and spec
- (optionally) include following argument
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-23 09:16:06 +07:00
Jonáš Dujava
81acebb480
Add extra math environments ( #150 )
...
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-23 09:15:06 +07:00
Wilfred Hughes
78650c310a
Improve accuracy of conservative width estimation optimisation
2024-07-21 11:37:27 +07:00
Wilfred Hughes
c2f4b1f2ee
Update tests and changelog for 1e8be4558b
2024-07-21 11:15:54 +07:00
dependabot[bot]
12523bd1ff
Bump node-addon-api from 8.0.0 to 8.1.0 ( #138 )
2024-07-21 06:53:02 +07:00
dependabot[bot]
eae2f81adf
Bump prettier from 3.3.2 to 3.3.3 ( #139 )
2024-07-21 06:52:52 +07:00
Jonáš Dujava
55ef65a416
Properly support definition commands from xparse ( #148 )
...
Additionally, handle command definition without curly braces
around the defined command name.
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-21 08:52:18 +07:00
Wilfred Hughes
92fa3fb3de
Ensure files with no common content are aligned
2024-07-20 23:43:04 +07:00
Wilfred Hughes
1e8be4558b
Fix performance when splitting very long lines during display
2024-07-20 23:38:16 +07:00
Wilfred Hughes
9b6bc7486f
Fix invocation of flamegraph command in manual
2024-07-20 23:38:16 +07:00
Wilfred Hughes
fa2ec359d7
Roll version
2024-07-20 16:11:55 +07:00
Wilfred Hughes
ffe27c575e
Ensure line splitting distinguishes "foo" and "foo\n"
...
We rely on being able to split lines and rejoin them to obtain the
original string. `str::lines()` in the Rust stdlib does not have this
property.
This was causing crashes in word-diffing on textual diffing, where
code paths differed on the number of lines they thought a string had.
This was broken in 8b842387a1 .
Fixes #688 .
2024-07-20 16:09:44 +07:00
Jonáš Dujava
d018f2e662
Add delimiter node ( #147 )
...
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-20 21:37:17 +07:00
Patrick Förster
107435ada4
Add luacode and asy as verbatim environments ( #141 )
...
Adds the following source code environments:
- `asy`
- `asydef`
- `luacode`
- `luacode*`
Fixes #140 .
2024-07-18 17:35:26 +07:00
Patrick Förster
5b6b442b2a
Generate parser before running fuzzer tests ( #144 )
2024-07-18 16:45:19 +07:00
Patrick Förster
2850a4076a
Fix including grammar.json in gitignore ( #143 )
2024-07-18 16:36:02 +07:00
Patrick Förster
0fb72fb1b2
Fix version numbers for Swift, Python and C ( #142 )
2024-07-18 16:33:20 +07:00
Yedaya Katsman
efe1b10e8d
Update the cc package to 1.1.5
...
This includes the fix to https://github.com/rust-lang/cc-rs/issues/909
which spams warnings on ubuntu 22.04
2024-07-18 07:25:35 +07:00
eugene yokota
a13f2d1ee9
Merge pull request #405 from eed3si9n/wip/array
...
refactor(scanner): use new array header for stack
2024-07-17 14:56:27 +07:00
Amaan Qureshi
3fb3931142
refactor(scanner): use new array header for stack
2024-07-17 11:36:47 +07:00
Wilfred Hughes
7248e334b7
Update to latest rustc-hash version
...
This is a very minor performance win, a few percent in my
benchmarking.
typing_1.ml went from 3.013M to 2.996M instructions (0.6% reduction).
slow_1.rs went from 2.153M to 2.046M instructions (5% reduction).
Fixes #728
2024-07-09 00:18:59 +07:00
Wilfred Hughes
f1bd870382
Document how difftastic handles unordered syntax
...
Closes #723
2024-07-08 23:41:58 +07:00
Wilfred Hughes
79af24a577
Fix typo
2024-07-08 08:39:20 +07:00
eugene yokota
599d12b59f
Merge pull request #402 from eed3si9n/wip/corpus
...
Move corpus
2024-06-30 17:57:27 +07:00
Eugene Yokota
a6e8f24623
Move corpus
...
**Problem/Solution**
I noticed that corpus tests weren't running.
Apparently tree-sitter 0.22.0 moved the directory -https://github.com/tree-sitter/tree-sitter/releases/tag/v0.22.0
2024-06-30 17:52:41 +07:00
Wilfred Hughes
27a0cfba16
Silence some clippy warnings
2024-06-29 23:08:11 +07:00
eugene yokota
de465b0fd6
Merge pull request #401 from eed3si9n/wip/smoke
...
Bump smoke test targets
2024-06-29 23:08:45 +07:00
Eugene Yokota
ae91190a6f
Bump smoke test targets
...
**Problem**
We currently use scala/scala and scala/scala3 to run the smoke test,
but the versions are slightly older.
**Solution**
1. This bumps the versions to latest. Thankfully not much regression on the percentage.
2. This also adds lila for testing.
2024-06-29 23:04:18 +07:00
Marcel
759797c851
guess_language: add flake.lock as json
2024-06-27 08:09:28 +07:00
Jonáš Dujava
08d8b885a3
Support more general URIs in hyperlinks ( #134 ) ( #135 )
...
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-06-23 16:03:58 +07:00
eugene yokota
5bce09bdd9
Merge pull request #400 from tree-sitter/generation
...
chore: generate and sync latest changes
2024-06-22 13:57:24 +07:00
GitHub
9b739bec82
chore: generate and sync from 3080c54e22
2024-06-22 17:54:00 +07:00
eugene yokota
3080c54e22
Merge pull request #379 from eed3si9n/wip/tree-sitter-bump
...
Update tree-sitter to 0.22.6
2024-06-22 13:52:49 +07:00
Eugene Yokota
4941073198
tree-sitter 0.22.6
2024-06-22 12:25:54 +07:00
dependabot[bot]
5a1b4165ad
Bump node-gyp-build from 4.8.0 to 4.8.1 ( #122 )
2024-06-22 07:51:43 +07:00
dependabot[bot]
207b02dca0
Bump tree-sitter-cli from 0.22.2 to 0.22.6 ( #123 )
2024-06-22 07:51:36 +07:00
dependabot[bot]
77aa649faa
Bump node-addon-api from 7.1.0 to 8.0.0 ( #116 )
2024-06-22 07:51:23 +07:00
dependabot[bot]
7e2b009dc9
Bump prebuildify from 6.0.0 to 6.0.1 ( #120 )
2024-06-22 07:51:18 +07:00
dependabot[bot]
bb02423d01
Bump prettier from 3.2.5 to 3.3.2 ( #128 )
2024-06-22 07:51:13 +07:00
Patrick Förster
d06c6a24f4
Add support for parsing hyperlinks ( #133 )
2024-06-22 09:50:56 +07:00
Patrick Förster
6b572f0f70
Fix parsing wrong superscripts like 10^10 ( #132 )
2024-06-22 09:50:44 +07:00