Skip to content

Commit

Permalink
Overhaul unicode parsing
Browse files Browse the repository at this point in the history
It now instead iterates the actual unicode code points. This is better
than what it was previously doing but it is still not entirely correct
w.r.t to unicode sequences.

This handling of unicode code points does however make it slightly
easier to handle UTF-16 if needed in the future.

This also adds some long needed tests for buffer methods.
  • Loading branch information
abbec committed Sep 9, 2024
1 parent 991283f commit 0535de5
Show file tree
Hide file tree
Showing 19 changed files with 848 additions and 664 deletions.
5 changes: 5 additions & 0 deletions dged.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
, valgrind
, linkFarm
, fetchFromGitHub
, glibcLocalesUtf8
, strace
}:
stdenv.mkDerivation {
name = "dged";
Expand All @@ -32,6 +34,9 @@ stdenv.mkDerivation {
bmake docs
'';

# needed for tests to work in sandboxed builds
LOCALE_ARCHIVE = "${glibcLocalesUtf8}/lib/locale/locale-archive";

TREESITTER_GRAMMARS = with tree-sitter-grammars;
linkFarm "tree-sitter-grammars" rec {
"bash" = tree-sitter-bash;
Expand Down
Loading

0 comments on commit 0535de5

Please sign in to comment.