Wilfred Hughes
719654d462
Merge pull request #301 from lilydjwg/master
...
use unicode-width to align CJK characters
2022-07-04 15:07:25 +07:00
Uy Ha
13c7c529d7
fix: add scanner.cc for Rust
...
Co-authored-by: ShootingStarDragons <ShootingStarDragons@protonmail.com>
2022-07-04 12:48:46 +07:00
Uy Ha
b766bd4896
fix: regenerate files for updated name
...
Co-authored-by: ShootingStarDragons <ShootingStarDragons@protonmail.com>
2022-07-04 12:42:23 +07:00
Wilfred Hughes
156c701459
Add large files from #293 for test
...
This file pair exposed a bunch of perf issues, so it's useful to keep
it around.
2022-07-03 22:18:30 +07:00
Wilfred Hughes
d70cc70971
Silence C++ warning from tree-sitter-html
2022-07-03 22:11:29 +07:00
Wilfred Hughes
2d43075841
HTML: include doublequotes in attribute atoms
2022-07-03 22:11:25 +07:00
Uy Ha
961d625282
chore: update dependencies and regenerate parser.c
2022-07-04 12:01:24 +07:00
Wilfred Hughes
493a4bd62a
Merge pull request #305 from benmanns/add-html-parser
...
feat: Add HTML parser
2022-07-03 21:41:18 +07:00
Wilfred Hughes
d96ccc884f
Merge branch 'master' into add-html-parser
2022-07-03 21:40:57 +07:00
lilydjwg
0648b0a6cf
add sample_files for Chinese (CJK fullwidth characters)
...
One of the other three "expected" updates is caused by a fullwidth emoji
and others are removal of colored empty strings.
2022-07-04 12:01:49 +07:00
lilydjwg
5d2fdf65b9
split_string_by_width: return &str to avoid allocations
...
since we're returning padding numbers, we no longer allocate for new Strings any more.
2022-07-04 11:49:06 +07:00
lilydjwg
526b24d00d
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
src/display/side_by_side.rs
2022-07-04 11:04:22 +07:00
lilydjwg
612d45196a
split_string_by_width: since we pad in the middle, we need to tell split_and_apply how many bytes we've padded
2022-07-04 10:55:38 +07:00
Wilfred Hughes
f10cfa00cc
Limit the graph size based on the number of predecessors found
...
Fixes #183
Fixes #306
2022-07-03 18:23:17 +07:00
Wilfred Hughes
338e815e9b
More clippy fixes
2022-07-03 11:23:18 +07:00
Wilfred Hughes
51ddcef393
Make clippy happier
2022-07-03 11:20:44 +07:00
Wilfred Hughes
186a2f98f1
Take the shortest edge when constructing the path
...
Previously we assumed that there was a single edge between nodes. This
is true of the current implementation, but not in all experiments.
This is also a tiny performance win (0.2% instruction count reduction).
2022-07-03 11:16:33 +07:00
Fisher Sun
cf394604ae
Use nvim-treesitter version of highlights.scm ( #87 )
...
This commit replaces highlights.scm with nvim-treesitter's version.
To comply with nvim-treesitter's Apache license,
I have added a copy of the Apache License.
I have also added the Apache boilerplate to the top of highlights.scm
to clarify its license.
2022-07-02 11:46:11 +07:00
Benjamin Manns
99813e7ff0
Add entry to adding_a_parser.md about sliders
2022-07-01 12:23:36 +07:00
Benjamin Manns
d131ae1d35
Add HTML parser
2022-07-01 12:23:20 +07:00
Benjamin Manns
edce245beb
Add 'vendor/tree-sitter-html/' from commit '29f53d8f4f2335e61bf6418ab8958dac3282077a'
...
git-subtree-dir: vendor/tree-sitter-html
git-subtree-mainline: 5c19ac600d
git-subtree-split: 29f53d8f4f
2022-07-01 12:23:11 +07:00
Maksim Novikov
218b672499
Merge branch 'window-function-calls'
2022-06-30 19:50:55 +07:00
Maksim Novikov
d47bb2f1cd
Merge branch 'aggregate-expressions'
2022-06-30 19:47:36 +07:00
Wilfred Hughes
5c19ac600d
Fix duplicate newlines when a whole file is novel
...
Broken in trunk but works fine in 0.29.1. Fixes #302
2022-06-29 21:36:52 +07:00
Jonathan Arnett
85c0753e8e
Version 0.22.1
2022-06-29 21:57:03 +07:00
Jonathan Arnett
08901b401c
Version 0.22.0
2022-06-29 21:57:03 +07:00
Jonathan Arnett
ac8c9438f8
Add scanner.c to files to be compiled for release
2022-06-29 21:57:03 +07:00
Tim Luo
1cdb6abb48
Support window definitions & window function calls
2022-06-29 10:58:25 +07:00
Tim Luo
bf3ea7293f
Improve function call to support aggregate expressions
2022-06-29 10:43:45 +07:00
Maksim Novikov
15ee655c3b
Merge branch 'improve-group-by-clause'
2022-06-28 20:52:23 +07:00
Maksim Novikov
5fcf2fd261
Merge branch 'improve-order-by-clause'
2022-06-28 20:46:41 +07:00
Maksim Novikov
a188ac6e94
Merge branch 'improve-values-clause'
2022-06-28 20:44:08 +07:00
Maksim Novikov
76cdf7cdb3
Merge branch 'support-create-view'
2022-06-28 20:37:53 +07:00
Max Brunsfeld
de221eccf9
0.20.2
2022-06-27 15:09:45 +07:00
Arthur Baars
5b305c3cd3
Merge pull request #220 from aibaars/parser-improvements-2
...
Parser improvements: `!=` operator and `key: [line_break]`
2022-06-27 12:03:05 +07:00
Tim Luo
abb393f693
Support select subexpressions in view body
2022-06-26 23:30:11 +07:00
Tim Luo
7d0f8f4602
Support CREATE MATERIALIZED VIEW statement
2022-06-26 23:29:00 +07:00
Tim Luo
a9b8dcea43
Support CREATE VIEW statement
2022-06-26 23:28:55 +07:00
lilydjwg
c72626808f
use unicode-width to align CJK characters
2022-06-26 21:51:26 +07:00
lilydjwg
f88cb8c018
fix that continuation line numbers (....) are colored when colors should not be used
2022-06-26 21:12:07 +07:00
Maksim Novikov
d0a47edcb1
Merge branch 'improve-drop-statement'
2022-06-25 18:12:56 +07:00
Maksim Novikov
f622fb6a0e
Merge branch 'improve-create-type-statement'
2022-06-25 18:05:40 +07:00
Max Brunsfeld
188b6b062d
Ensure dedent tokens are returned even amid syntax errors
2022-06-24 18:47:17 +07:00
Max Brunsfeld
ece74b2094
Fix infinite loops with unterminated strings ( #143 )
2022-06-24 15:38:28 +07:00
Max Brunsfeld
597c4bb7e2
Always allow dedents to be recognized during error recovery
2022-06-24 15:36:58 +07:00
Yoann Padioleau
391803ed80
Merge pull request #214 from tree-sitter/object_is
...
Support predefined types in type predicates
2022-06-24 15:05:21 +07:00
pad
5caf25eea2
npm build
2022-06-24 14:03:27 +07:00
Arthur Baars
72bf3a1424
Handle newlines after pair-keys
2022-06-24 13:22:14 +07:00
Yoann Padioleau
22167c22da
Merge pull request #213 from nmote/typeof-prec
...
Fix type_query precedence
2022-06-24 13:13:47 +07:00
pad
46e9c43848
Merge branch 'master' into object_is
2022-06-24 13:13:28 +07:00